:root {
  --brand-blue: #69b8e8;
  --brand-blue-dark: #2487c0;
  --brand-blue-soft: #eaf6fd;
  --brand-gray: #555b5d;
  --ink: #111417;
  --muted: #66747c;
  --line: #d9e6ec;
  --surface: #ffffff;
  --surface-muted: #f4f8fb;
  --shadow: 0 18px 45px rgba(17, 20, 23, 0.12);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 230, 236, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 84px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--brand-gray);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--brand-blue);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta,
.button-primary {
  color: #fff;
  background: var(--brand-blue-dark);
  box-shadow: 0 12px 28px rgba(36, 135, 192, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: var(--brand-blue-soft);
}

.button-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-home .hero-media {
  background: url("../img/team-store.jpg") center / cover no-repeat;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(17, 20, 23, 0.82), rgba(17, 20, 23, 0.52), rgba(17, 20, 23, 0.14));
}

.hero-content {
  position: relative;
  padding: 90px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.on-blue {
  color: #d7f0ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-blue {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue-dark), #5ab0de);
}

.section-heading {
  max-width: 750px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.audience-grid,
.service-grid,
.business-grid,
.offer-grid,
.role-grid,
.values-grid {
  display: grid;
  gap: 18px;
}

.audience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-card,
.business-card,
.offer-card,
.role-grid article,
.values-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audience-card:hover,
.business-card:hover,
.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 184, 232, 0.7);
  box-shadow: var(--shadow);
}

.card-kicker,
.offer-label,
.number {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brand-blue-dark);
  background: var(--brand-blue-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand-blue-dark);
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 50px;
}

.split-layout.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.proof-item {
  min-height: 138px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 20, 23, 0.06);
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.proof-item span,
p,
li {
  color: var(--muted);
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-card div {
  padding: 20px;
}

.method-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  color: #fff;
  font-size: 1.12rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 128px 0 92px;
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.page-hero-private {
  background: linear-gradient(90deg, rgba(17, 20, 23, 0.78), rgba(17, 20, 23, 0.42)), url("../img/telefonia.jpg") center / cover;
}

.page-hero-business {
  background: linear-gradient(90deg, rgba(17, 20, 23, 0.78), rgba(17, 20, 23, 0.42)), url("../img/telecomunicazioni.jpg") center / cover;
}

.simple-hero {
  color: var(--ink);
  background: linear-gradient(135deg, var(--brand-blue-soft), #fff);
}

.simple-hero p {
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.service-list article {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.rounded-img {
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-gray);
  font-weight: 800;
}

.business-grid,
.offer-grid,
.role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-list {
  margin: 20px 0 0;
  padding-left: 20px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-item {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 20, 23, 0.06);
}

.timeline-item span {
  display: block;
  margin-bottom: 14px;
  color: var(--brand-blue-dark);
  font-size: 1.6rem;
  font-weight: 900;
}

.timeline-item h2,
.values-grid h2,
.role-grid h2,
.business-card h2,
.offer-card h2,
.service-list h2 {
  font-size: 1.34rem;
}

.values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  align-items: start;
}

.contact-panel,
.form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 20, 23, 0.06);
}

.contact-panel a,
.contact-panel div {
  display: grid;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-panel span {
  color: var(--muted);
}

.form-card {
  display: grid;
  gap: 16px;
}

.form-card label {
  display: grid;
  gap: 7px;
  color: var(--brand-gray);
  font-weight: 800;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.form-card textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer {
  color: #dce7ec;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-logo {
  width: 140px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #dce7ec;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #adbdc5;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-grid;
    justify-self: end;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .nav-toggle span {
    height: 2px;
    background: var(--ink);
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .header-cta {
    display: none;
  }

  .service-grid,
  .business-grid,
  .offer-grid,
  .role-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 72px;
  }

  .hero {
    min-height: 620px;
  }

  .section {
    padding: 64px 0;
  }

  .audience-grid,
  .split-layout,
  .split-layout.reverse,
  .proof-grid,
  .service-grid,
  .method-grid,
  .steps,
  .service-list,
  .business-grid,
  .offer-grid,
  .timeline,
  .values-grid,
  .contact-layout,
  .role-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    display: grid;
    padding: 24px;
  }

  .page-hero {
    padding: 96px 0 68px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }
}
