/* =========================================================================
   CONNESSO SRL — style.css
   Brand: blu #0058A8 · grigio #B0B0B0 · font display "Eight One"
   (Style guide: 100% Cyan + 60% Magenta = #0058A8 · 40% Black = grigio)
   ========================================================================= */

/* ---------- Font aziendale: Eight One (solo Regular) ---------- */
@font-face {
  font-family: "Eight One";
  src: url("../fonts/eight-one.woff2") format("woff2"),
       url("../fonts/eight-one.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Brand --- */
  --brand:        #0058A8;
  --brand-dark:   #0A3A70;
  --brand-darker: #06264A;
  --brand-tint:   #E7EFF7;
  --brand-tint-2: #F1F5FA;
  --grey:         #B0B0B0;

  /* --- Superfici e testo (tema chiaro) --- */
  --bg:        #FFFFFF;
  --bg-2:      #F4F7FA;
  --bg-3:      #EDF2F7;
  --surface:   #FFFFFF;
  --ink:       #0E1C2E;   /* titoli */
  --text:      #33414F;   /* corpo */
  --text-dim:  #667382;   /* secondario */
  --line:      #E3E8EE;
  --line-soft: #EEF1F5;

  /* --- Tipografia --- */
  --font-display: "Eight One", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius:      14px;
  --radius-lg:   22px;
  --maxw:        1180px;
  --pad-x:       clamp(1.1rem, 4vw, 2.5rem);
  --section-y:   clamp(3.5rem, 9vw, 7rem);
  --shadow:      0 24px 60px -28px rgba(14, 28, 46, 0.28);
  --shadow-soft: 0 12px 34px -18px rgba(14, 28, 46, 0.18);
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

h1, h2 { font-family: var(--font-display); line-height: 1.14; font-weight: 400; color: var(--ink); letter-spacing: 0.01em; }
h3 { font-family: var(--font-sans); line-height: 1.25; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.3vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); }

strong, b { font-weight: 700; color: var(--ink); }

.lead { font-size: clamp(1.06rem, 1rem + 0.45vw, 1.28rem); color: var(--text-dim); max-width: 60ch; line-height: 1.6; }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head p { color: var(--text-dim); margin-top: 0.9rem; }

.text-accent { color: var(--brand); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(0, 88, 168, 0.65);
}
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 20px 42px -14px rgba(0, 88, 168, 0.7); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--on-dark.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--on-dark.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.97); border-color: var(--line); box-shadow: var(--shadow-soft); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__mark img, .brand__mark svg { width: 100%; height: 100%; object-fit: contain; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand);
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand__name small { display: block; font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.2em; font-weight: 600; color: var(--text-dim); text-transform: uppercase; margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--brand); }
.nav__links a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.nav__cta { margin-left: 0.5rem; }
/* il bottone nel menu non deve ereditare il colore/verde-scuro dei link nav */
.nav__links .nav__cta a.btn--primary { color: #fff; background: var(--brand); padding: 0.7rem 1.3rem; }
.nav__links .nav__cta a.btn--primary:hover { color: #fff; background: var(--brand-dark); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%, 5px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--pad-x) 2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.9rem 1rem; font-size: 1.05rem; }
  .nav__cta { margin: 0.6rem 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 10vw, 7.5rem); overflow: hidden; background: var(--bg); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(760px 460px at 82% -8%, rgba(0, 88, 168, 0.12), transparent 62%),
    radial-gradient(600px 420px at 6% 108%, rgba(176, 176, 176, 0.18), transparent 60%),
    linear-gradient(180deg, var(--brand-tint-2), var(--bg) 55%);
}
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0.7; }
.hero .wrap { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 .grad { color: var(--brand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__trust {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 48ch;
}
.hero__trust strong { color: var(--ink); font-weight: 700; }

.hero__panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
}
.hero__panel h2 { font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; color: var(--text-dim); font-weight: 700; }
.hero__panel ul { display: grid; gap: 0.9rem; }
.hero__panel li { display: flex; align-items: flex-start; gap: 0.8rem; font-weight: 500; color: var(--text); }
.hero__panel li svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { order: 2; }
}

/* ---------- Stat bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats div { background: var(--bg); padding: clamp(1.4rem, 4vw, 2.3rem) var(--pad-x); text-align: center; }
.stats .num { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem); color: var(--brand); white-space: nowrap; line-height: 1.1; }
.stats .lbl { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.55rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Assurances ---------- */
.assurances { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 4vw, 2.6rem); }
.assurances > div { position: relative; padding-top: 1.1rem; border-top: 2px solid var(--brand); }
.assurances h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.assurances p { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 860px) { .assurances { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .assurances { grid-template-columns: 1fr; } }

/* ---------- Tech note ---------- */
.tech-note { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.95rem; max-width: 70ch; }
.tech-note strong { color: var(--ink); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Social ---------- */
.social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social a:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.08); }
.social svg { width: 19px; height: 19px; }

/* ---------- Concept / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.pillar__ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 1.2rem;
}
.pillar__ico svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--text-dim); font-size: 0.98rem; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Solutions grid ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.sol-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.sol-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.sol-card__ico { width: 46px; height: 46px; color: var(--brand); margin-bottom: 1rem; }
.sol-card__ico svg { width: 100%; height: 100%; }
.sol-card h3 { margin-bottom: 0.55rem; }
.sol-card p { color: var(--text-dim); font-size: 0.96rem; }
.sol-card ul { margin-top: 0.95rem; display: grid; gap: 0.45rem; }
.sol-card li { position: relative; padding-left: 1.3rem; font-size: 0.92rem; color: var(--text-dim); }
.sol-card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.sol-card__more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.1rem; font-size: 0.9rem; font-weight: 600; color: var(--brand); }
.sol-card__more:hover { text-decoration: underline; }
.sol-card__more span { transition: transform 0.2s; }
.sol-card:hover .sol-card__more span { transform: translateX(3px); }

/* ---------- Split / Why ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  background:
    linear-gradient(135deg, rgba(0,88,168,0.10), transparent 55%),
    repeating-linear-gradient(45deg, rgba(14,28,46,0.03) 0 12px, transparent 12px 24px),
    var(--bg-2);
  text-align: center;
  padding: 2rem;
}
.check-list { display: grid; gap: 1.05rem; margin-top: 1.7rem; }
.check-list li { display: flex; gap: 0.85rem; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 3px; }
.check-list strong { display: block; color: var(--ink); }
.check-list span { color: var(--text-dim); font-size: 0.96rem; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.step::before 