/* =========================================================================
 * Suntech — Corporate design system
 *  Palette cool / institutional (distinta dalla palette Cattura warm/gold)
 *  Componenti modulari riutilizzabili tra tutte le pagine
 * ========================================================================= */

:root {
  --bg-deep:     #07091A;
  --bg-panel:    #0F1424;
  --bg-panel-2:  #151B2E;
  --border:      rgba(148,163,184,0.10);
  --border-2:    rgba(148,163,184,0.16);

  --text:        #F1F5F9;
  --text-muted:  #94A3B8;
  --text-dim:    #64748B;
  --text-faint:  #475569;

  --cyan:    #38BDF8;
  --teal:    #2DD4BF;
  --indigo:  #818CF8;
  --success: #4ADE80;
  --warn:    #FBBF24;

  --grad-brand: linear-gradient(120deg, #38BDF8 0%, #2DD4BF 55%, #818CF8 100%);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-1:  0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 30px -20px rgba(0,0,0,.8);
  --shadow-glow: 0 0 0 1px rgba(56,189,248,0.20), 0 12px 40px -12px rgba(56,189,248,0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
body {
  margin: 0; padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font: 400 16px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.4; }
p  { margin: 0; line-height: 1.65; }

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* -------------------------------------------------------------------------
 * Layout helpers
 * ------------------------------------------------------------------------- */
.wrap   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-sm{ max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--compact { padding: 64px 0; }
.section--hero    { padding: 120px 0 96px; overflow: hidden; }

/* Pagina /prodotti: le 3 sezioni Kazam/Cattura/Radaria sono concettualmente
   contigue (lista prodotti) e vanno più ravvicinate del default 96px. */
#kazam, #cattura, #radaria { padding-top: 48px; padding-bottom: 48px; }

.divider-top { border-top: 1px solid var(--border); }

/* Brand gradient text */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow / kicker micro */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.kicker::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--cyan);
}

/* Lead paragraph */
.lead { font-size: 1.125rem; color: var(--text-muted); line-height: 1.65; }

/* Mute text utilities */
.dim  { color: var(--text-dim); }
.muted{ color: var(--text-muted); }

/* -------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad-brand);
  color: #06131F;
  font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(56,189,248,0.45);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(56,189,248,0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(148,163,184,0.28); }

.btn-link {
  color: var(--cyan);
  padding: 4px 0;
  font-weight: 600;
  gap: 6px;
}
.btn-link:hover { color: var(--teal); }
.btn-link svg { transition: transform .15s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7,9,26,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }

main { padding-top: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background-image: url('/assets/suntech-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;  /* hides fallback text character */
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: -2px;
}

.nav-main {
  display: none;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
}
.nav-main a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav-main a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-main a[aria-current='page'] { color: var(--cyan); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-actions .btn { padding: 8px 16px; font-size: 0.88rem; }

.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .12s ease;
}
.lang-switch button.active { background: var(--bg-panel-2); color: var(--cyan); }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255,255,255,0.04);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 26px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
}
.lang-select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-color: var(--cyan);
  color: var(--cyan);
}
.lang-select option {
  background: #0F1424;
  color: #F1F5F9;
  font-weight: 600;
}

.lang-toggle {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
  line-height: 1;
}
.lang-toggle:hover {
  color: var(--cyan);
  border-color: rgba(56,189,248,.35);
  background: rgba(56,189,248,.06);
}

.mobile-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
  background: var(--bg-deep);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--text-muted);
  font-weight: 500;
}
.mobile-menu a[aria-current='page'] { color: var(--cyan); }
.mobile-menu-cta { display: flex; gap: 8px; padding: 12px 24px 4px; }

@media (max-width: 899px) {
  .site-header .wrap { gap: 10px; }
  .nav-actions .btn-primary { display: none !important; }
  .site-header {
    background: rgba(7,9,26,0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (min-width: 900px) {
  .nav-main { display: flex; }
  .mobile-toggle { display: none; }
}

/* -------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 100%, rgba(45,212,191,0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-grid .network-vis {
  position: relative;
  opacity: 0.9;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}

.hero h1 strong { font-weight: 700; }
.hero .subtitle {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-pills {
  margin-top: 44px;
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 640px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.hero-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* Hero Background network grid (SVG background pattern) */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,0,0,0.9), transparent);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
 * Section head (kicker + title + lead)
 * ------------------------------------------------------------------------- */
.section-head { max-width: 780px; }
.section-head h2 { margin-top: 14px; }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin: 0 auto; text-align: center; }

/* -------------------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------------------- */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover {
  border-color: rgba(56,189,248,0.3);
  background: var(--bg-panel-2);
  transform: translateY(-2px);
}
.card .card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(45,212,191,0.12));
  color: var(--cyan);
  border: 1px solid rgba(56,189,248,0.22);
  margin-bottom: 20px;
}
.card h3 { color: var(--text); }
.card p  { color: var(--text-muted); margin-top: 10px; font-size: 0.95rem; }
.card .card-link { display: inline-flex; margin-top: 18px; color: var(--cyan); font-weight: 600; gap: 6px; font-size: 0.9rem; }

/* Grid of cards */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}
@media (min-width: 640px)  { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }

.grid-cards-3 {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px;
}
@media (min-width: 768px)  { .grid-cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards-3 { grid-template-columns: repeat(3, 1fr); } }

/* Feature card hero (product feature) */
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 260px; height: 260px;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.15), transparent 70%);
  pointer-events: none;
}
.product-card h3 {
  font-size: 1.5rem;
  display: flex; align-items: center; gap: 12px;
}
.product-card .pc-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
}
.product-card p { color: var(--text-muted); }
.product-card .pc-cta {
  display: inline-flex;
  margin-top: auto;
  padding-top: 8px;
  color: var(--cyan);
  font-weight: 600;
  gap: 6px;
  align-items: center;
}

/* -------------------------------------------------------------------------
 * Trust strip / logos row
 * ------------------------------------------------------------------------- */
.trust-row {
  display: flex; flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center; justify-content: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item svg { color: var(--cyan); flex-shrink: 0; }

/* -------------------------------------------------------------------------
 * Stat blocks
 * ------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  text-align: left;
  padding: 20px 0;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.stat .num {
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat .lbl { display: block; margin-top: 8px; color: var(--text-muted); font-size: 0.88rem; }
.stat .stat-sub { display: block; margin-top: 6px; color: var(--text-dim, #475569); font-size: 0.75rem; line-height: 1.45; }

/* -------------------------------------------------------------------------
 * Decision picker (prodotti.html) — 3-card quick guide
 * ------------------------------------------------------------------------- */
.decision-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 40px 0 32px;
}
@media (min-width: 860px) {
  /* auto-fit gestisce naturalmente 3 o 4 card senza dover hardcodare il
     numero di colonne. Min-card 220px così su tablet portrait si stackano
     in 2x2, su laptop 4x1. */
  .decision-picker { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
}
.decision-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.decision-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: currentColor;
  opacity: .6;
}
.decision-card--kazam { color: #38BDF8; }
.decision-card--cattura { color: #2DD4BF; }
.decision-card--radaria { color: #00D9C0; }
.decision-card--custom { color: #818CF8; }
.decision-card:hover {
  transform: translateY(-2px);
  border-color: currentColor;
  background: var(--bg-panel-2);
}
.decision-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: currentColor;
  color: #0B1020;
  flex-shrink: 0;
  opacity: .95;
}
.decision-card--kazam .decision-icon { background: rgba(56,189,248,.14); color: #38BDF8; }
.decision-card--cattura .decision-icon { background: rgba(45,212,191,.14); color: #2DD4BF; }
.decision-card--radaria .decision-icon { background: rgba(0,217,192,.14); color: #00D9C0; }
.decision-card--custom .decision-icon { background: rgba(129,140,248,.14); color: #818CF8; }
.decision-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-top: 6px;
}
.decision-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}
.decision-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #CBD5E1;
  margin: 0;
  flex-grow: 1;
}
.decision-pick {
  font-size: 14px;
  font-weight: 600;
  color: currentColor;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,.12);
}
.decision-pick strong { color: currentColor; font-weight: 700; }

/* Collapsible detailed comparison */
.compare-details {
  margin-top: 8px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: var(--r-md);
  background: rgba(15,23,42,.3);
}
.compare-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-details > summary::-webkit-details-marker { display: none; }
.compare-details > summary::before {
  content: "▸";
  display: inline-block;
  transition: transform .2s ease;
  color: currentColor;
}
.compare-details[open] > summary::before { transform: rotate(90deg); }
.compare-details[open] > summary { border-bottom: 1px solid rgba(148,163,184,.08); color: #fff; }
.compare-details > .compare-wrap { padding: 20px; }

/* -------------------------------------------------------------------------
 * Comparison table (prodotti.html) — desktop table + mobile card fallback
 * ------------------------------------------------------------------------- */
.compare-wrap { margin-top: 40px; }

/* Desktop table */
.compare-table tbody tr:nth-child(even) { background: rgba(56,189,248,.025); }
.compare-table tbody td:first-child { font-weight: 500; color: #C7D2E0; }
.compare-table .cell-yes { color: #2DD4BF; font-weight: 700; }
.compare-table .cell-no { color: #64748B; }
.compare-table .cell-note { color: #94A3B8; font-size: .85em; font-style: italic; }
.compare-table .cell-ideal { color: #2DD4BF; font-weight: 700; }
.compare-table .cell-yes::before,
.compare-table .cell-ideal::before { content: "✓ "; }
.compare-table .cell-no::before { content: "— "; }

/* Mobile: hide table, show stacked cards */
.compare-cards { display: none; }
@media (max-width: 860px) {
  .compare-table-wrap { display: none; }
  .compare-cards {
    display: grid;
    gap: 18px;
    margin-top: 8px;
  }
  .compare-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
  }
  .compare-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #E2E8F0;
    line-height: 1.4;
  }
  .compare-card dl {
    margin: 0;
    display: grid;
    gap: 8px;
  }
  .compare-card dt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
  }
  .compare-card dd {
    margin: 0 0 10px;
    font-size: 14px;
    color: #CBD5E1;
    padding-left: 2px;
  }
  .compare-card dd.cell-yes { color: #2DD4BF; font-weight: 700; }
  .compare-card dd.cell-no { color: #64748B; }
  .compare-card dd.cell-note { color: #94A3B8; font-style: italic; }
  .compare-card dd.cell-yes::before,
  .compare-card dd.cell-ideal::before { content: "✓ "; }
  .compare-card dd.cell-no::before { content: "— "; }
  .compare-card .compare-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148,163,184,.08);
  }
  .compare-card .compare-card-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
  }
  .compare-card .compare-card-col .col-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
  }
  .compare-card .compare-card-col.col-kazam .col-name { color: var(--cyan); }
  .compare-card .compare-card-col.col-cattura .col-name { color: var(--teal); }
  .compare-card .compare-card-col.col-custom .col-name { color: var(--indigo); }
}

/* -------------------------------------------------------------------------
 * Content blocks (two-col text+visual)
 * ------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split--reverse > *:first-child { order: 2; }
@media (min-width: 1024px) { .split--reverse > *:first-child { order: 0; } }

.split .visual {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
 * Forms (contatti)
 * ------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.form-grid label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.form-grid textarea { resize: vertical; min-height: 120px; }

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-row input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--cyan); }

/* -------------------------------------------------------------------------
 * CTA block
 * ------------------------------------------------------------------------- */
.cta-block {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(56,189,248,0.08), rgba(129,140,248,0.04)),
    var(--bg-panel);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.15), transparent 60%);
  pointer-events: none;
}
.cta-block h2 { max-width: 640px; position: relative; }
.cta-block .lead { margin-top: 16px; max-width: 620px; position: relative; }
.cta-block .btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

/* -------------------------------------------------------------------------
 * Timeline (services / process)
 * ------------------------------------------------------------------------- */
.timeline {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-top: 48px;
  position: relative;
}
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.timeline-step {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.timeline-step .step-n {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(56,189,248,0.12);
  color: var(--cyan);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(56,189,248,0.28);
  margin-bottom: 12px;
}
.timeline-step h4 { color: var(--text); }
.timeline-step p { color: var(--text-muted); margin-top: 6px; font-size: 0.92rem; }

/* -------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */
.site-footer {
  background: #04050F;
  border-top: 1px solid var(--border);
  padding: 72px 0 28px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }

.footer-col h5 {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }

/* -------------------------------------------------------------------------
 * Reveal on scroll
 * ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Spinner animation (used dal form contatti) */
@keyframes suntech-spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------
 * Solution facts (Problema / Approccio / Risultato / Dove)
 * Usato nelle pagine Soluzioni, Servizi, Settori, Partner
 * ------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; gap: 14px; } }

.fact {
  background: rgba(56,189,248,0.04);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.fact-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fact p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #D9E0EB;
  margin: 0;
}

/* Servizio: blocco "Cosa include / Quando serve / Come / Valore" */
.service-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.service-item:hover { border-color: rgba(56,189,248,.25); background: var(--bg-panel-2); transform: translateY(-2px); }
.service-item .s-head {
  display: flex; align-items: center; gap: 12px;
}
.service-item .card-icon { margin: 0; }
.service-item h3 { font-size: 1.1rem; }
.service-item .s-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}
@media (min-width: 560px) { .service-item .s-row { grid-template-columns: 1fr 1fr; } }
.service-item .s-row > div {
  font-size: 12.5px;
  line-height: 1.55;
  color: #D9E0EB;
}
.service-item .s-row strong {
  display: block;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Kicker alternative (teal/indigo) per differenziare sezioni pagina Soluzioni */
.kicker.kicker--teal { color: var(--teal); }
.kicker.kicker--teal::before { background: var(--teal); }
.kicker.kicker--indigo { color: var(--indigo); }
.kicker.kicker--indigo::before { background: var(--indigo); }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------------------
 * Partners ecosystem grid (partner.html)
 * ------------------------------------------------------------------------- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}
.partner-item {
  flex: 0 0 calc(50% - 7px);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.partner-item:hover {
  border-color: var(--border-2);
  background: var(--bg-panel-2);
}
.partner-item.no-logo {
  border-style: dashed;
  border-color: rgba(148,163,184,0.09);
}
.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}
.partner-logo {
  max-height: 52px;
  max-width: 140px;
  width: auto;
  opacity: 1;
  transition: opacity .2s ease;
}
.partner-item:hover .partner-logo { opacity: 1; }
.partner-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1;
}
.partner-item.no-logo .partner-name {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
@media (min-width: 600px) {
  .partner-item { flex: 0 0 180px; }
}

/* -------------------------------------------------------------------------
 * Proof section (case studies / testimonials / screenshots)
 * Disabilitabile con data-proof="off" finché non c'è contenuto reale
 * ------------------------------------------------------------------------- */
.proof-section[data-proof="off"] { display: none; }

.proof-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proof-card .proof-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(45,212,191,0.25);
  background: rgba(45,212,191,0.06);
  padding: 3px 9px;
  border-radius: 999px;
  align-self: flex-start;
}
.proof-card blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid rgba(56,189,248,0.3);
  padding-left: 16px;
}
.proof-card .proof-author {
  font-size: 12px;
  color: var(--text-dim);
}
.proof-card .proof-author strong {
  color: var(--text-muted);
  font-weight: 600;
}

/* Trust logos strip (horizontal compact row) */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  padding: 28px 0;
}
.trust-logos-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
}
.trust-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 40px;
  opacity: 0.75;
  transition: opacity .2s ease;
  flex-shrink: 0;
}
.trust-logo-item:hover { opacity: 1; }
.trust-logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.trust-logo-item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
 * Indice di sezione — pagine lunghe (/soluzioni, /partner, /azienda)
 * Dà accesso diretto agli argomenti su pagine che su mobile superano le
 * dieci schermate; costa una riga di altezza e non altera il layout.
 * ------------------------------------------------------------------------- */
.section-index {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-index::-webkit-scrollbar { display: none; }
.section-index a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.section-index a:hover,
.section-index a:focus-visible {
  color: var(--cyan);
  border-color: rgba(56,189,248,.4);
  background: rgba(56,189,248,.07);
}
/* L'header è fixed: senza questo margine l'ancora finisce sotto la barra. */
.section-index-target { scroll-margin-top: 86px; }

/* Variante per la home: l'hero ha già una fila di chip (le competenze), quindi
   l'indice vive fuori, in una fascia propria, con un'etichetta che ne dichiara
   la funzione — senza questa distinzione le due file di chip si confondono. */
.section-index-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.section-index-bar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
/* min-width:0 impedisce al nav di rifiutarsi di restringere sotto la larghezza
   dei suoi chip: senza, il flex parent lo lascia sbordare invece di farlo
   scorrere, e la pagina prende uno scroll orizzontale. */
.section-index-bar .section-index {
  margin-top: 0;
  padding-bottom: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.section-index-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 767px) {
  .section-index-bar .wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .section-index-bar .section-index { width: 100%; }
  .section-index-label { font-size: 12px; }
}

@media (min-width: 768px) {
  .section-index { flex-wrap: wrap; overflow-x: visible; }
}

/* -------------------------------------------------------------------------
 * Modello di collaborazione (catena Suntech → Partner → Cliente)
 * Sostituisce il diagramma SVG a coordinate fisse: testo reale, scalabile,
 * leggibile anche nella colonna stretta dello split.
 * ------------------------------------------------------------------------- */
/* Il contenitore .visual nasce con aspect-ratio 4/3 e overflow:hidden per le
   illustrazioni: con contenuto testuale va lasciato crescere in altezza. */
.split .visual--flow {
  aspect-ratio: auto;
  overflow: visible;
  align-items: stretch;
  justify-content: flex-start;
}
.flow-model {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.flow-model-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.flow-node {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.02);
  padding: 16px 18px;
}
.flow-node--vendor  { border-left-color: var(--cyan); }
.flow-node--partner { border-left-color: var(--indigo); }
.flow-node--client  { border-left-color: rgba(148,163,184,.5); }

.flow-role {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.flow-node h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  color: #F1F5F9;
  margin: 0 0 4px;
}
.flow-node--vendor h4  { color: var(--cyan); }
.flow-node--partner h4 { color: var(--indigo); }
.flow-node p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.flow-tags span {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
/* Connettore fra due nodi: la label sta accanto alla freccia, mai sopra i box */
.flow-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 8px 22px;
  color: var(--teal);
}
.flow-link svg { flex-shrink: 0; }
.flow-link span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * Leggibilità mobile
 * ------------------------------------------------------------------------- */

/* Un bottone non deve mai eccedere il proprio contenitore: con etichette
   descrittive lunghe il white-space:nowrap portava la CTA fuori dalla card. */
.btn { max-width: 100%; }

@media (max-width: 767px) {
  /* Densità verticale: 96px di padding per lato valgono su desktop, ma su uno
     schermo alto ~800px sottraggono un quarto di schermata a ogni sezione. */
  .section { padding: 56px 0; }
  .section--compact { padding: 40px 0; }
  .section--hero { padding: 72px 0 56px; }
  #kazam, #cattura, #radaria { padding-top: 36px; padding-bottom: 36px; }

  /* Soglia di leggibilità: il testo che veicola contenuto non scende sotto i
     14px; restano a 12px solo le etichette di servizio (kicker, tag, badge). */
  .muted,
  .card p,
  .service-item p,
  .timeline-step p,
  .compare-card .cell-yes,
  .compare-card .cell-no,
  .compare-card .cell-note,
  .compare-card .cell-ideal,
  .decision-desc,
  .footer-col p,
  .footer-col ul a { font-size: 14px; }
  .footer-bottom { font-size: 13px; }

  .btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.35;
  }
  .decision-tag { font-size: 12px; }
  .compare-card .col-name { font-size: 12px; }
  .pc-badge { font-size: 11.5px; }
}

/* Fino a 899px il menu è ancora a scomparsa (vedi .mobile-toggle): il tablet
   verticale va trattato come schermo stretto anche per tipografia e CTA,
   altrimenti a 768px si torna di colpo alle misure desktop. */
@media (max-width: 899px) {
  .kicker { font-size: 12px; letter-spacing: 0.14em; }
  .product-card .pc-cta,
  .btn-link {
    display: inline;
    line-height: 1.45;
  }
  .product-card .pc-cta svg,
  .btn-link svg {
    display: inline;
    vertical-align: -2px;
    margin-left: 6px;
  }
}

/* Touch target: minimo 44px su tutti i controlli dell'header */
.lang-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.mobile-toggle { width: 44px; height: 44px; }

/* Il testo di servizio del footer non raggiungeva 4.5:1 sul fondo scuro */
.footer-bottom { color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--cyan); }

/* -------------------------------------------------------------------------
 * Utilities
 * ------------------------------------------------------------------------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
