/* ================================================================
   dt-style.css — HarbourMate Website
   Schema colore: Split-Complementare da #DC651B (hue 23°)
     Primary  : #DC651B / #FD8C45      (hue  23° — arancione brand)
     Split-1  : #1B9E8C                (hue 173° — acqua/petrolio)
     Split-2  : #2B3FA8                (hue 233° — indaco marino)
   Fonts: Outfit (display) + DM Sans (body) via Google Fonts
   Hosting: Aruba Windows/IIS · path: css/dt-style.css dalla root
   ================================================================ */

/* ----------------------------------------------------------------
   CUSTOM PROPERTIES — design system palette v3
   ---------------------------------------------------------------- */
:root {
  /* ════════════════════════════════════════════════════════════
     PART 1 — Brand scale (orange · hue 23°)
     ════════════════════════════════════════════════════════════ */
  --orange-50:  #FFF5EE;
  --orange-100: #FFE4CC;
  --orange-200: #FFCA99;
  --orange-300: #FEAA66;
  --orange-400: #FD8C45;
  --orange-500: #DC651B;
  --orange-600: #A84A10;
  --orange-700: #7A3509;
  --orange-800: #4E2106;
  --orange-900: #271103;

  /* Legacy aliases — DO NOT DELETE */
  --orange:        var(--orange-500);
  --orange-light:  var(--orange-400);
  --orange-dark:   var(--orange-600);
  --orange-subtle: rgba(220,101,27,0.08);
  --orange-mid:    rgba(220,101,27,0.18);
  --orange-border: rgba(220,101,27,0.25);

  /* ════════════════════════════════════════════════════════════
     PART 2 — Neutral scale
     ════════════════════════════════════════════════════════════ */
  --gray-50:  #F6F4F1;
  --gray-100: #EDE9E4;
  --gray-200: #E2DDD8;
  --gray-300: #C8C2BB;
  --gray-400: #A0AEC0;
  --gray-500: #718096;
  --gray-600: #4A5568;
  --gray-700: #3A4156;
  --gray-800: #2C3548;
  --gray-900: #1A1F2E;

  /* Legacy aliases — DO NOT DELETE */
  --ink:    var(--gray-900);
  --slate:  var(--gray-800);
  --mid:    var(--gray-600);
  --dim:    var(--gray-500);
  --muted:  var(--gray-400);
  --border: var(--gray-200);
  --bg:     var(--gray-50);
  --white:  #FFFFFF;

  /* ════════════════════════════════════════════════════════════
     PART 3 — Accent scales
     ════════════════════════════════════════════════════════════ */

  /* Teal (hue 173°) */
  --teal-100: #C8F0EB;
  --teal-300: #2DC5B0;
  --teal-500: #1B9E8C;
  --teal-700: #13756A;

  /* Legacy aliases — DO NOT DELETE */
  --teal:        var(--teal-500);
  --teal-light:  var(--teal-300);
  --teal-dark:   var(--teal-700);
  --teal-subtle: rgba(27,158,140,0.08);
  --teal-border: rgba(27,158,140,0.25);

  /* Indigo (hue 233°) */
  --indigo-100: #C8CEF0;
  --indigo-300: #4A5FC4;
  --indigo-500: #2B3FA8;
  --indigo-700: #1E2D7A;

  /* Legacy aliases — DO NOT DELETE */
  --indigo:        var(--indigo-500);
  --indigo-light:  var(--indigo-300);
  --indigo-dark:   var(--indigo-700);
  --indigo-subtle: rgba(43,63,168,0.08);
  --indigo-border: rgba(43,63,168,0.25);

  /* ════════════════════════════════════════════════════════════
     PART 4 — Semantic UI colours
     ════════════════════════════════════════════════════════════ */
  --success:        #1A7A3A;
  --success-subtle: rgba(26,122,58,0.08);
  --success-border: rgba(26,122,58,0.25);

  --warning:        #B45309;
  --warning-subtle: rgba(180,83,9,0.08);
  --warning-border: rgba(180,83,9,0.25);

  --error:        #C0392B;
  --error-subtle: rgba(192,57,43,0.08);
  --error-border: rgba(192,57,43,0.25);

  --info:        var(--indigo-500);
  --info-subtle: var(--indigo-subtle);
  --info-border: var(--indigo-border);

  /* ════════════════════════════════════════════════════════════
     PART 5 — Interaction tokens
     ════════════════════════════════════════════════════════════ */
  --primary:        var(--orange-500);
  --primary-hover:  var(--orange-400);
  --primary-active: var(--orange-600);

  /* ════════════════════════════════════════════════════════════
     PART 6 — Surface tokens
     ════════════════════════════════════════════════════════════ */
  --surface-page:   var(--gray-50);
  --surface-card:   var(--white);
  --surface-muted:  var(--gray-100);
  --surface-border: var(--gray-200);

  /* ════════════════════════════════════════════════════════════
     Gradienti (referenziano la scala)
     ════════════════════════════════════════════════════════════ */
  --grad:        linear-gradient(135deg, var(--orange-500), var(--orange-400));
  --grad-dark:   linear-gradient(135deg, var(--orange-600), var(--orange-500));
  --grad-teal:   linear-gradient(135deg, var(--teal-700),   var(--teal-300));
  --grad-indigo: linear-gradient(135deg, var(--indigo-700), var(--indigo-300));

  /* ════════════════════════════════════════════════════════════
     Ombre, Radii, Spaziatura, Tipografia, Transizioni
     ════════════════════════════════════════════════════════════ */
  --shadow-sm:     0 2px 8px  rgba(26,31,46,0.08);
  --shadow-md:     0 6px 24px rgba(26,31,46,0.12);
  --shadow-lg:     0 16px 48px rgba(26,31,46,0.16);
  --shadow-orange: 0 4px 20px rgba(220,101,27,0.30);

  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 28px;

  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  --text-xs:   0.80rem;
  --text-sm:   0.95rem;
  --text-base: 1rem;
  --text-lg:   1.2rem;
  --text-xl:   1.45rem;
  --text-2xl:  1.85rem;
  --text-3xl:  2.4rem;
  --text-4xl:  3.2rem;

  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.45s ease;

  /* Wireframe placeholder (solo per wireframe) */
  --wire-border: 2px dashed rgba(220,101,27,0.35);
  --wire-bg:     rgba(220,101,27,0.05);
  --wire-label:  rgba(220,101,27,0.65);
}

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--orange-dark); }

ul, ol { list-style: none; }

/* ----------------------------------------------------------------
   TIPOGRAFIA
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2rem,    5vw,   var(--text-4xl)); }
h2 { font-size: clamp(1.5rem,  3.5vw, var(--text-3xl)); }
h3 { font-size: clamp(1.2rem,  2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 700; }
h6 { font-size: var(--text-base); font-weight: 700; }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

.text-sm    { font-size: var(--text-sm); }
.text-xs    { font-size: var(--text-xs); }
.text-lg    { font-size: var(--text-lg); }
.text-muted { color: var(--dim); }
.text-white { color: var(--white); }

/* eyebrow */
.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow--orange { color: var(--orange-light); }
.eyebrow--teal   { color: var(--teal-light); }

/* ----------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}
.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}
section { padding: var(--sp-3xl) 0; }

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}
.section-header h2 { margin-bottom: var(--sp-sm); }
.section-header p {
  font-size: var(--text-lg);
  color: var(--mid);
  max-width: 560px;
  margin: 0 auto;
}
.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: rgba(255,255,255,0.55); }

/* Section label badge */
.section-label {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-xs);
  margin-bottom: var(--sp-md);
}
.section-label--dark {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* Griglia helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-md); }

/* Sfondi helper */
.bg-white  { background: var(--white); }
.bg-light  { background: var(--bg); }
.bg-dark   { background: var(--ink); }
.bg-slate  { background: var(--slate); }
.bg-grad   { background: var(--grad); }

/* ----------------------------------------------------------------
   WIREFRAME PLACEHOLDER — solo per wireframe_v*.html
   ---------------------------------------------------------------- */
.ph-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--wire-bg);
  border: var(--wire-border);
  border-radius: var(--r-md);
  color: var(--wire-label);
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  padding: var(--sp-md);
  width: 100%;
}
.ph-img::before {
  content: '📐';
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.ph-img .ph-size {
  font-size: var(--text-xs);
  opacity: 0.65;
  margin-top: 4px;
}

.ph-text {
  background: var(--wire-bg);
  border-left: 3px solid var(--orange);
  color: var(--wire-label);
  font-size: var(--text-sm);
  font-style: italic;
  padding: 4px 10px;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  display: block;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1;
  padding: 13px 28px;
  min-height: 48px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background var(--t-base), color var(--t-base),
              box-shadow var(--t-base), transform var(--t-base),
              border-color var(--t-base);
}

/* Primary — gradiente orange */
.btn-primary,
.btn--primary {
  background: var(--grad);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover,
.btn--primary:hover {
  background: var(--grad-dark);
  transform: translateY(-1px);
  color: var(--white);
}

/* Outline — bordo orange */
.btn-outline,
.btn--outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}
.btn-outline:hover,
.btn--outline:hover {
  background: var(--orange);
  color: var(--white);
}

/* Ghost — su sfondi scuri */
.btn-ghost,
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover,
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
  color: var(--white);
}

/* White — su gradiente */
.btn-white,
.btn--white {
  background: var(--white);
  color: var(--orange);
  border: none;
}
.btn-white:hover,
.btn--white:hover {
  background: var(--bg);
  color: var(--orange-dark);
}

/* Teal — azione secondaria */
.btn--teal {
  background: var(--teal);
  color: var(--white);
  border: none;
}
.btn--teal:hover { background: var(--teal-dark); color: var(--white); }

/* Sizes */
.btn--sm { font-size: var(--text-sm); padding: 8px 16px; border-radius: var(--r-sm); }
.btn--lg { font-size: var(--text-lg); padding: 16px 36px; border-radius: var(--r-lg); }

/* Nav CTA */
.btn-cta-nav {
  background: var(--grad);
  color: var(--white);
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.btn-cta-nav:hover {
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   01 — NAVBAR
   ---------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26,31,46,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 var(--sp-lg);
}
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
}
.navbar__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.navbar__logo span { color: var(--orange-light); }
.navbar__logo img  { height: 32px; width: auto; }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.navbar__nav a {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.navbar__nav a:hover  { color: var(--white); }
.navbar__nav a.active { color: var(--orange-light); }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

/* Lang switch */
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all var(--t-fast);
}
.lang-switch button.active,
.lang-switch button:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ----------------------------------------------------------------
   02 — HERO (split 58/42)
   ---------------------------------------------------------------- */
.hero {
  background: var(--ink);
  padding: 100px var(--sp-lg) 80px;
  overflow: hidden;
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,52fr) minmax(0,48fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "head head"
    "copy device";
  gap: var(--sp-xl) var(--sp-xl);
  align-items: start;
}
.hero__head {
  grid-area: head;
  padding-bottom: var(--sp-md);
}
.hero__copy   { grid-area: copy; }
.hero__device { grid-area: device; position: relative; }
.hero__eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: var(--sp-md);
}
.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: var(--sp-lg);
}
.hero__title .accent { color: var(--orange-light); }
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  max-width: 520px;
}
.hero__kpis {
  display: flex;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}
.hero__kpi-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange-light);
  line-height: 1;
}
.hero__kpi-lbl {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.48);
  margin-top: 4px;
}
.hero__ctas {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.hero__device { position: relative; }
.hero__device .ph-img {
  aspect-ratio: 16/10;
  border-radius: var(--r-lg);
  background: rgba(220,101,27,0.07);
  border: 2px dashed rgba(253,140,69,0.40);
}
.hero__device .ph-img::before { content: '🖥️'; font-size: 2rem; }
.hero__device-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.hero__claims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}
.hero__claim-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r);
  padding: var(--sp-md) var(--sp-lg);
}
.hero__claim-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange-light);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__claim-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.hero__claim-body {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.48);
  line-height: 1.5;
}
.hero__badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26,31,46,0.95);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  white-space: nowrap;
}
.hero__badge span { color: var(--teal-light); }

/* ----------------------------------------------------------------
   03 — TAGLINE BAND
   ---------------------------------------------------------------- */
.tagline-band {
  background: var(--grad);
  padding: 22px var(--sp-lg);
}
.tagline-band__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.tagline-band p {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
   04 — VALUE PILLARS (3 card)
   ---------------------------------------------------------------- */
.pillars { background: var(--white); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  margin-top: var(--sp-2xl);
}
.pillar-card {
  background: var(--bg);
  border: 1px solid var(--orange-border);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.pillar-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pillar-card__icon {
  width: 52px;
  height: 52px;
  background: var(--grad);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.pillar-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}
.pillar-card__body {
  font-size: var(--text-sm);
  color: var(--mid);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   05 — HOW IT WORKS (4 step)
   ---------------------------------------------------------------- */
.how { background: var(--bg); }
.how__steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
  position: relative;
}
.how__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: var(--grad);
}
.how__step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.how__step-num {
  width: 64px;
  height: 64px;
  background: var(--grad);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
  box-shadow: var(--shadow-orange);
}
.how__step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}
.how__step-body {
  font-size: var(--text-sm);
  color: var(--mid);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   06 — PLATFORM SNAPSHOT (3 workspace)
   ---------------------------------------------------------------- */
.platform { background: var(--white); }
.platform__tabs {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}
.platform__tab {
  background: var(--bg);
  border: 1.5px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 10px 22px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--mid);
  transition: all var(--t-base);
}
.platform__tab.active,
.platform__tab:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-subtle);
}
.platform__workspace {
  display: grid;
  grid-template-columns: minmax(0,52fr) minmax(0,48fr);
  gap: var(--sp-2xl);
  align-items: center;
}
.platform__screen .ph-img {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  border: 2px dashed var(--orange-border);
}
.platform__screen .ph-img::before { content: '🗺️'; font-size: 2rem; }
.platform__desc h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}
.platform__desc p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--text-sm);
  color: var(--ink);
}
.feature-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ----------------------------------------------------------------
   07 — 4-PHASE OVERVIEW (dark section)
   ---------------------------------------------------------------- */
.phases { background: var(--ink); }
.phases__tabs {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--sp-sm);
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-xl);
}
.phase-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  padding: 20px 16px;
  cursor: pointer;
  text-align: left;
  transition: all var(--t-base);
}
.phase-tab:hover {
  background: var(--orange-subtle);
  border-color: var(--orange-border);
}
.phase-tab.active {
  background: var(--orange-mid);
  border-color: var(--orange);
}
.phase-tab__num {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 6px;
}
.phase-tab__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.phase-tab__sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.phase-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: 36px;
  align-items: center;
}
.phase-detail__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--sp-sm);
}
.phase-detail__body {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.phase-detail .ph-img {
  aspect-ratio: 16/9;
  background: rgba(220,101,27,0.08);
  border-color: var(--orange-border);
}
.phase-detail .ph-img::before { content: '📊'; font-size: 2rem; }
.phase-detail__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* KPI chips — usano il teal (split-1) per differenziarsi dall'arancione */
.kpi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}
.kpi-chip {
  background: var(--teal-subtle);
  border: 1px solid var(--teal-border);
  color: var(--teal-light);
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ----------------------------------------------------------------
   08 — ADD-ONS SNAPSHOT (3 cluster)
   ---------------------------------------------------------------- */
.addons { background: var(--bg); }
.addons__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
}
.addon-card {
  background: var(--white);
  border: 1px solid var(--orange-border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.addon-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.addon-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.addon-card__icon {
  width: 44px;
  height: 44px;
  background: var(--grad);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.addon-card__cluster {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* indigo (split-2) come differenziatore visivo rispetto all'arancione */
  color: var(--indigo);
  margin-bottom: 2px;
}
.addon-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.addon-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.addon-items li {
  font-size: var(--text-sm);
  color: var(--mid);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.addon-items li::before {
  content: '→';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   09 — SOLUTIONS TEASER (3 persona card)
   ---------------------------------------------------------------- */
.solutions { background: var(--white); }
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
}
.solution-card {
  border: 1px solid var(--orange-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.solution-card__thumb .ph-img {
  aspect-ratio: 16/7;
  border-radius: 0;
  border: none;
  border-bottom: var(--wire-border);
}
.solution-card__thumb .ph-img::before { content: '🏛️'; }
.solution-card__img {
  width: 100%;
  height: 175px;
  display: block;
  object-fit: cover;
  border-radius: var(--r) var(--r) 0 0;
}
.solution-card__body { padding: 24px; }
.solution-card__persona {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* teal (split-1) per le personas — differenziatore dall'arancione */
  color: var(--teal);
  margin-bottom: 6px;
}
.solution-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}
.solution-card__desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}
.solution-card__link {
  display: inline-block;
  margin-top: var(--sp-md);
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  transition: color var(--t-fast);
}
.solution-card__link::after  { content: ' →'; }
.solution-card__link:hover   { color: var(--orange-dark); }

/* ----------------------------------------------------------------
   10 — RESOURCES TEASER (3 card)
   ---------------------------------------------------------------- */
.resources { background: var(--bg); }
.resources__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--orange-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-base);
}
.resource-card:hover { box-shadow: var(--shadow-md); }
.resource-card__thumb .ph-img {
  aspect-ratio: 16/7;
  border-radius: 0;
  border: none;
  border-bottom: var(--wire-border);
}
.resource-card__thumb .ph-img::before { content: '📄'; }
.resource-card__body  { padding: 20px; }
.resource-card__type {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.resource-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
  line-height: 1.35;
}
.resource-card__excerpt {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   11 — CTA BAND
   ---------------------------------------------------------------- */
.cta-band {
  background: var(--grad);
  padding: 80px var(--sp-lg);
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: var(--sp-md);
}
.cta-band p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto var(--sp-xl);
}
.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   12 — FOOTER (5 colonne)
   ---------------------------------------------------------------- */
.footer {
  background: var(--ink);
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__grid {
  max-width: 1200px;
  margin: 0 auto var(--sp-2xl);
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
  gap: var(--sp-xl);
}
.footer__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.footer__logo span { color: var(--orange-light); }
.footer__logo img  { height: 28px; width: auto; }
.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: var(--sp-md);
}
.footer__social {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background var(--t-base), color var(--t-base);
}
.footer__social-link:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.footer__col-title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-md);
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.33);
  margin-bottom: 0;
}
.footer__cert { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }
.footer__cert span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 9px;
  border-radius: var(--r-xs);
}

/* ----------------------------------------------------------------
   UTILITY — badge, divider, fade-in
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge--orange { background: var(--orange-subtle); color: var(--orange); border: 1px solid var(--orange-border); }
.badge--teal   { background: var(--teal-subtle);   color: var(--teal);   border: 1px solid var(--teal-border);   }
.badge--indigo { background: var(--indigo-subtle); color: var(--indigo); border: 1px solid var(--indigo-border); }
.badge--dark   { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.70); border: 1px solid rgba(255,255,255,0.12); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-xl) 0;
}

/* Visibilità tab-panel — batte qualsiasi display:grid/flex */
.is-hidden { display: none !important; }

/* Fade-in via classe (IntersectionObserver aggiunge .visible) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner         { grid-template-columns: 1fr; grid-template-areas: "head" "device" "copy"; }
  .hero__device        { display: block; }
  .platform__workspace { grid-template-columns: 1fr; }
  .phase-detail        { grid-template-columns: 1fr; }
  .footer__grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section              { padding: var(--sp-2xl) 0; }
  .pillars__grid,
  .addons__grid,
  .solutions__grid,
  .resources__grid     { grid-template-columns: 1fr; }
  .how__steps          { grid-template-columns: repeat(2,1fr); }
  .how__steps::before  { display: none; }
  .phases__tabs        { grid-template-columns: repeat(2,1fr); }
  .navbar__nav         { display: none; }
  .footer__grid        { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .how__steps          { grid-template-columns: 1fr; }
  .phases__tabs        { grid-template-columns: 1fr; }
  .hero__kpis          { gap: var(--sp-lg); }
  .cta-band__actions   { flex-direction: column; align-items: center; }
}

/* Social placeholder (wireframe footer) */
.ph-social {
  width: 32px;
  height: 32px;
  aspect-ratio: 1;
  font-size: 0.75rem;
  font-style: normal;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}
.ph-social::before { display: none; }

/* ================================================================
   PLATFORM PAGE — componenti specifici
   ================================================================ */

/* ----------------------------------------------------------------
   PAGE HERO — hero interno pagina (più compatta dell'homepage)
   ---------------------------------------------------------------- */
.page-hero {
  background: var(--ink);
  padding: 90px var(--sp-lg) 72px;
  overflow: hidden;
}
.page-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,55fr) minmax(0,45fr);
  gap: var(--sp-2xl);
  align-items: center;
}
.page-hero__copy .eyebrow {
  display: block;
  margin-bottom: var(--sp-md);
}
.page-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: var(--sp-lg);
}
.page-hero__title .accent { color: var(--orange-light); }
.page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  max-width: 500px;
}
.page-hero__ctas {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.page-hero__visual { position: relative; }
/* Hero senza immagine — testo full width centrato */
.page-hero__inner--full {
  grid-template-columns: 1fr;
  max-width: 860px;
  text-align: center;
}
.page-hero__inner--full .page-hero__sub {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero__inner--full .page-hero__ctas {
  justify-content: center;
}
.ph-img--hero16x9 {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
}
.page-hero__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}

/* ----------------------------------------------------------------
   ARCH STRIP — 5 layer progressivi
   ---------------------------------------------------------------- */
.arch-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px var(--sp-lg);
}
.arch-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}
.arch-strip__label {
  font-size: var(--text-xs);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}
.arch-layers {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
}
.arch-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  min-width: 100px;
  text-align: center;
}
.arch-layer__tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
}
.arch-layer__name {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
}
.arch-layer__note { font-size: 0.78rem; }

.arch-layer--s   { background: var(--orange-subtle);  border-color: var(--orange-border); color: var(--orange-dark); }
.arch-layer--o   { background: var(--teal-subtle);    border-color: var(--teal-border);   color: var(--teal-dark); }
.arch-layer--m   { background: var(--indigo-subtle);  border-color: var(--indigo-border); color: var(--indigo); }
.arch-layer--e   { background: var(--teal-subtle);    border-color: var(--teal-border);   color: var(--teal); }
.arch-layer--amb { background: rgba(43,168,63,0.08);  border-color: rgba(43,168,63,0.25); color: #1a7a2a; }

.arch-layer__arrow {
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   WORKSPACE SECTION — alternating layout (immagine + desc)
   ---------------------------------------------------------------- */
.workspace-section {
  background: var(--bg);
  padding: var(--sp-3xl) 0;
}
.workspace-section--alt {
  background: var(--white);
}
.workspace-block {
  display: grid;
  grid-template-columns: minmax(0,55fr) minmax(0,45fr);
  gap: var(--sp-2xl);
  align-items: center;
}
.workspace-block--reverse {
  grid-template-columns: minmax(0,45fr) minmax(0,55fr);
}
.workspace-block--reverse .workspace-block__visual { order: 2; }
.workspace-block--reverse .workspace-block__desc   { order: 1; }
.workspace-block__visual { position: relative; }
.ph-img--ws {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
}

/* Workspace badge — numero workspace */
.ws-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-xs);
  margin-bottom: var(--sp-sm);
}
.ws-badge--orange { background: var(--orange-subtle); color: var(--orange); border: 1px solid var(--orange-border); }
.ws-badge--teal   { background: var(--teal-subtle);   color: var(--teal);   border: 1px solid var(--teal-border); }
.ws-badge--indigo { background: var(--indigo-subtle); color: var(--indigo); border: 1px solid var(--indigo-border); }

/* Section label varianti colore */
.section-label--teal   { background: var(--teal); }
.section-label--indigo { background: var(--indigo); }

.workspace-block__desc h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  margin-top: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.workspace-block__desc > p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
}

/* Feature grid 2-col dentro workspace */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}
.feature-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.feature-item__icon--orange { background: var(--orange-subtle); }
.feature-item__icon--teal   { background: var(--teal-subtle); }
.feature-item__icon--indigo { background: var(--indigo-subtle); }

.feature-item__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.feature-item__body {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Module pills (8 tab del dashboard) */
.module-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.module-pill {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
/* Tier S — arancione */
#tier-s {
  border: 2px solid var(--orange);
  color: var(--orange);
}
#tier-s:hover { background: var(--orange-subtle); }
#tier-s.active {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(220,101,27,0.45);
  font-weight: 700;
}
/* Tier M — teal */
#tier-m {
  border: 2px solid var(--teal);
  color: var(--teal);
}
#tier-m:hover { background: rgba(27,158,140,0.08); }
#tier-m.active {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(27,158,140,0.45);
  font-weight: 700;
}
/* Tier L — indigo */
#tier-l {
  border: 2px solid var(--indigo);
  color: var(--indigo);
}
#tier-l:hover { background: rgba(43,63,168,0.08); }
#tier-l.active {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(43,63,168,0.45);
  font-weight: 700;
}
/* Prezzi attivazione colorati per tier */
.pricing-price.tier-color-s { color: var(--orange); }
.pricing-price.tier-color-m { color: var(--teal); }
.pricing-price.tier-color-l { color: var(--indigo); }

/* Stat row (admin) */
.stat-row {
  display: flex;
  gap: var(--sp-xl);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-md);
}
.stat-item__val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat-item__lbl {
  font-size: var(--text-xs);
  color: var(--dim);
  margin-top: 4px;
}

/* SkipperLink flow — 3 step inline */
.skipperlink-flow {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  background: var(--indigo-subtle);
  border: 1px solid var(--indigo-border);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}
.sl-step {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex: 1;
  min-width: 120px;
}
.sl-step__num {
  width: 28px;
  height: 28px;
  background: var(--indigo);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sl-step__text { font-size: 0.85rem; color: var(--indigo); }
.sl-step__arrow { color: var(--indigo); font-weight: 700; flex-shrink: 0; }

/* ----------------------------------------------------------------
   INTEGRATIONS
   ---------------------------------------------------------------- */
.integrations { background: var(--bg); }
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-xl);
}
.integration-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.integration-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--orange-border);
}
.integration-card--custom {
  border-style: dashed;
  border-color: var(--indigo-border);
  background: var(--indigo-subtle);
}
.integration-card__icon {
  font-size: 1.6rem;
  margin-bottom: var(--sp-sm);
}
.integration-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.integration-card__body {
  font-size: var(--text-sm);
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: var(--sp-sm);
}
.integration-card__badge { margin-top: auto; }

/* API callout */
.api-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  background: var(--white);
  border: 1.5px solid var(--orange-border);
  border-left: 4px solid var(--orange);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-xl);
}
.api-callout__icon { font-size: 1.6rem; flex-shrink: 0; }
.api-callout__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
  display: block;
}
.api-callout__text {
  font-size: var(--text-sm);
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
   TECH SPECS — dark section, grid card
   ---------------------------------------------------------------- */
.tech-specs {
  background: var(--ink);
  padding: var(--sp-3xl) 0;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
}
.spec-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  padding: 20px;
  transition: background var(--t-base);
}
.spec-card:hover { background: rgba(255,255,255,0.08); }
.spec-card__label {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 8px;
}
.spec-card__value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.62);
  line-height: 1.55;
}

/* ----------------------------------------------------------------
   RESPONSIVE — platform page
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-hero__inner      { grid-template-columns: 1fr; }
  .page-hero__visual     { display: none; }
  .workspace-block,
  .workspace-block--reverse { grid-template-columns: 1fr; }
  .workspace-block--reverse .workspace-block__visual,
  .workspace-block--reverse .workspace-block__desc { order: unset; }
  .specs-grid            { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .feature-grid          { grid-template-columns: 1fr; }
  .integrations-grid     { grid-template-columns: 1fr; }
  .specs-grid            { grid-template-columns: 1fr 1fr; }
  .arch-layers           { gap: 6px; }
  .arch-layer            { min-width: 70px; padding: 8px 10px; }
  .stat-row              { gap: var(--sp-lg); }
  .skipperlink-flow      { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .specs-grid            { grid-template-columns: 1fr; }
  .module-pills          { gap: 4px; }
}

/* api-callout__body — wrapper testo callout */
.api-callout__body { flex: 1; }

/* stat-item — wrapper singola stat nella stat-row */
.stat-item { display: flex; flex-direction: column; }

/* ================================================================

/* ================================================================
   CONTACT FORM — company.html
   v5.1 — iOS/Android hardened, zero inline styles
   ================================================================ */

/* ── Sezione wrapper ── */
.contact-section {
  background: var(--white);
}

/* ── Grid: info sinistra + card destra ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

/* ── Info contatti (colonna sinistra) ── */
.contact-info__label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-subtle);
  border: 1px solid var(--orange-border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  margin-bottom: var(--sp-md);
}

.contact-info__h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--sp-md);
}

.contact-info__sub {
  font-size: var(--text-base);
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: var(--sp-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail__icon--orange { background: var(--orange-subtle); }
.contact-detail__icon--teal   { background: var(--teal-subtle); }
.contact-detail__icon--indigo { background: var(--indigo-subtle); }

.contact-detail__text {
  font-size: var(--text-sm);
  color: var(--mid);
  line-height: 1.5;
}

.contact-detail__text a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t-fast);
}

.contact-detail__text a:hover { color: var(--orange-dark); }

/* ── Form card (colonna destra) ── */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-md);
}

.contact-form-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-xl);
}

/* ── Form elements ── */
.form-honey { display: none; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-lg);
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

/*
  NOTA iOS: font-size minimo 16px sugli input per evitare
  l'auto-zoom di Safari su focus. NON usare var(--text-sm).
*/
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;          /* 16px — soglia anti-zoom iOS */
  color: var(--ink);
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast);
  box-sizing: border-box;
  /* Reset apparenza nativa cross-browser */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--orange-subtle);
}

.form-input::placeholder {
  color: var(--muted);
  font-size: 0.95rem;  /* placeholder può essere più piccolo */
}

/*
  Select custom: la freccia SVG è resa inline come data URI
  per evitare richieste HTTP aggiuntive.
  Su iOS Safari, -webkit-appearance:none + background-image
  funziona correttamente da iOS 13+.
*/
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23718096' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Rimuove la freccia nativa su IE/Edge legacy */
.form-select::-ms-expand { display: none; }

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ── Due colonne nome + email ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

/* ── Errore ── */
.form-error {
  font-size: var(--text-sm);
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin: 0 0 var(--sp-md);
}

/* ── Submit ── */
.form-submit {
  width: 100%;
  margin-top: var(--sp-sm);
  /* Altezza minima 44px per target touch iOS HIG */
  min-height: 44px;
}

/* ── Success state ── */
.form-success {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}

.form-success__icon {
  width: 64px;
  height: 64px;
  background: var(--success-subtle);
  border: 2px solid var(--success-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--success);
  margin: 0 auto var(--sp-lg);
}

.form-success__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.form-success__p {
  font-size: var(--text-sm);
  color: var(--mid);
  line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: var(--sp-xl) var(--sp-lg);
    /* Su mobile rimuoviamo bordo/ombra — si integra nella pagina */
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   BOOKING CARD + CALENDLY OVERLAY — company.html v5.2
   ================================================================ */

/* ── Booking card (due opzioni impilate) ── */
.booking-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.booking-option {
  border-radius: var(--r-xl);
  padding: var(--sp-xl) var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.booking-option--primary {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.06);
}

.booking-option--secondary {
  background: var(--white);
  border: 1.5px solid var(--border);
}

.booking-option__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: 4px;
}

.booking-option__tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  padding: 3px 9px;
}

.booking-option__tag--orange {
  background: var(--orange-subtle);
  color: var(--orange);
  border: 1px solid var(--orange-border);
}

.booking-option__tag--indigo {
  background: var(--indigo-subtle);
  color: var(--indigo-light);
  border: 1px solid var(--indigo-border);
}

/* override per tag su sfondo scuro */
.booking-option--primary .booking-option__tag--orange {
  background: rgba(220,101,27,0.2);
  border-color: rgba(220,101,27,0.4);
}

.booking-option__duration {
  font-size: var(--text-xs);
  color: var(--muted);
}

.booking-option--primary .booking-option__duration {
  color: rgba(255,255,255,0.45);
}

.booking-option__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.booking-option--primary .booking-option__title {
  color: var(--white);
}

.booking-option__desc {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.6;
  margin: 0;
}

.booking-option--primary .booking-option__desc {
  color: rgba(255,255,255,0.62);
}

.booking-option__btn {
  margin-top: var(--sp-sm);
  align-self: flex-start;
  min-height: 44px; /* iOS touch target */
}

/* ── Calendly overlay modal ── */
.calendly-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendly-overlay[hidden] { display: none; }

.calendly-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 46, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.calendly-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(900px, 96vw);
  height: min(700px, 90vh);
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}

.calendly-overlay__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}

.calendly-overlay__close:hover {
  background: var(--gray-200);
  color: var(--ink);
}

.calendly-overlay__iframe {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .booking-card { gap: var(--sp-md); }
}

@media (max-width: 640px) {
  .booking-option {
    padding: var(--sp-lg);
  }
  .booking-option__btn {
    align-self: stretch;
    text-align: center;
  }
  .calendly-overlay__panel {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .calendly-overlay__close {
    top: 10px;
    right: 10px;
  }
}

/* ══════════════════════════════════════════════════
   IMAGE ROTATOR — img-rotator.js
   ══════════════════════════════════════════════════ */

.img-rotator {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--wire-bg);
  aspect-ratio: 16/9;
}

.img-rotator__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  border-radius: var(--r-lg);
}

.img-rotator__slide.is-active {
  opacity: 1;
}

.img-rotator__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.img-rotator__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.img-rotator__dot.is-active {
  background: rgba(255,255,255,0.95);
}

/* ================================================================
   PRICING PAGE
   ================================================================ */

/* ── Tier switcher ── */
.pricing-tier {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}
.pricing-tier--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pricing-tier span {
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 500;
}

/* ── Pricing block wrapper ── */
.pricing-block {
  overflow-x: auto;
}

/* ── Pricing table ── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.pricing-table thead th {
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--ink);
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: rgba(220,101,27,0.03); }

/* column widths */
.pt-feat { width: 64%; }
.pt-f1, .pt-f2, .pt-f3, .pt-f4 { width: 9%; text-align: center; }
.pt-price { width: 15%; text-align: center; }
/* tabella piani: colonne descrizione più larghe */
.pricing-table--plans .pt-feat { width: 35%; }
.pricing-table--plans .pt-price { width: 15%; }

/* group header row */
.pt-group td {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

/* check marks */
.pt-check--f1,
.pt-check--f2,
.pt-check--f3,
.pt-check--f4 {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
}
.pt-check--f1 { color: var(--orange); }
.pt-check--f2 { color: var(--teal); }
.pt-check--f3 { color: var(--indigo); }
.pt-check--f4 { color: var(--orange); }
.pt-empty { color: var(--border); font-size: 1rem; }

/* pricing price cells */
.pricing-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--orange);
}
.pricing-renewal {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--ink);
}
.pricing-note {
  margin-top: var(--sp-lg);
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

/* narrower container for features table */
.container--narrow { max-width: 900px; }
.pricing-features-section .section-header { margin-bottom: var(--sp-xl); }

/* ── Accordion FAQ ── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.accordion__item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.accordion__item:last-child { border-bottom: none; }

.accordion__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  gap: var(--sp-md);
  transition: background var(--t-base);
}
.accordion__trigger:hover { background: var(--bg); }
.accordion__item.open .accordion__trigger { background: var(--bg); color: var(--orange); }

.accordion__icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--t-base);
}
.accordion__item.open .accordion__icon { transform: rotate(45deg); }

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion__item.open .accordion__body { max-height: 400px; }

.accordion__body-inner {
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── Responsive pricing ── */
@media (max-width: 768px) {
  .pricing-tier { flex-direction: column; align-items: flex-start; }
  .pricing-table { font-size: 0.8rem; }
  .pricing-table td, .pricing-table th { padding: 10px 10px; }
  .pt-feat { width: 64%; }
}
