:root {
  --blue: #1F4A7C;
  --blue-dark: #0D2340;
  --gray: #707C88;
  --orange: #F28C30;
  --white: #ffffff;
  --light: #f4f7fb;
  --line: rgba(31, 74, 124, 0.12);
  --shadow: 0 24px 60px rgba(13, 35, 64, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--blue-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  width: 100%;
  padding: 22px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -2px;
}

.logo-mark::after {
  content: ".";
  color: var(--orange);
}

.logo strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -1px;
}

.logo span {
  font-size: 0.65rem;
  color: var(--gray);
  display: block;
}

.nav {
  display: flex;
  gap: 34px;
  font-size: 0.92rem;
  color: var(--blue-dark);
}

.nav a {
  position: relative;
}

.nav a:hover {
  color: var(--orange);
}

.btn-header,
.btn,
.outline-btn {
  border-radius: 999px;
  font-weight: 700;
  transition: 0.3s ease;
}

.btn-header {
  background: var(--orange);
  color: var(--white);
  padding: 14px 24px;
  font-size: 0.9rem;
}

.btn-header:hover,
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(242, 140, 48, 0.35);
}

.menu-btn {
  display: none;
  border: none;
  background: none;
  font-size: 1.8rem;
  color: var(--blue);
}

.hero {
  width: calc(100% - 48px);
  min-height: 720px;
  margin: 96px auto 24px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding: 70px;
  display: flex;
  align-items: center;
  background: var(--blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 42%, rgba(255,255,255,0.08) 100%),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1800&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.pill {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 6.3rem);
  line-height: 0.95;
  letter-spacing: -5px;
  color: var(--blue-dark);
  margin-bottom: 28px;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  max-width: 620px;
  color: #26384d;
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  padding: 16px 24px;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: var(--orange);
  color: var(--white);
}

.btn.secondary {
  background: var(--white);
  color: var(--blue-dark);
}

.btn.secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.floating-card.top {
  position: absolute;
  right: 8%;
  top: 90px;
  z-index: 2;
  width: 280px;
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.mini-img {
  height: 120px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: url("https://images.unsplash.com/photo-1556761175-4b46a572b786?q=80&w=800&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}

.floating-card p {
  font-size: 0.9rem;
  color: var(--blue-dark);
  line-height: 1.5;
}

.stats-card {
  position: absolute;
  right: 6%;
  bottom: -20px;
  z-index: 3;
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 520px;
}

.stats-card div {
  padding: 30px;
  border-right: 1px solid var(--line);
}

.stats-card div:last-child {
  border-right: none;
}

.stats-card strong {
  display: block;
  color: var(--blue-dark);
  font-size: 2.4rem;
  letter-spacing: -2px;
}

.stats-card span {
  color: var(--gray);
  font-size: 0.85rem;
}

.intro,
.services,
.potenzia,
.contact {
  width: calc(100% - 140px);
  margin: 0 auto;
}

.intro {
  padding: 90px 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-label {
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.4px;
  font-size: 0.76rem;
  margin-bottom: 14px;
  display: inline-block;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -2px;
}

.intro p {
  color: var(--gray);
  line-height: 1.8;
}

.pillars {
  width: calc(100% - 140px);
  margin: 30px auto 80px;
  padding: 36px;
  background: var(--light);
  border-radius: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.pillars article {
  background: var(--white);
  border-radius: 24px;
  padding: 34px;
  min-height: 260px;
  box-shadow: 0 14px 40px rgba(31, 74, 124, 0.08);
  transition: 0.3s ease;
}

.pillars article:hover {
  transform: translateY(-8px);
}

.icon {
  width: 54px;
  height: 54px;
  background: rgba(31, 74, 124, 0.1);
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 28px;
}

.icon.orange {
  background: rgba(242, 140, 48, 0.14);
  color: var(--orange);
}

.pillars h3 {
  margin-bottom: 12px;
  color: var(--blue-dark);
}

.pillars p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.92rem;
}

.services {
  padding: 40px 0 90px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 44px;
}

.outline-btn {
  border: 1px solid rgba(242, 140, 48, 0.45);
  color: var(--orange);
  padding: 14px 22px;
  white-space: nowrap;
}

.outline-btn:hover {
  background: var(--orange);
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-item {
  display: flex;
  gap: 18px;
}

.service-item span {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--light);
  color: var(--blue);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.service-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-image {
  min-height: 430px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(13,35,64,0.05), rgba(13,35,64,0.25)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?q=80&w=1200&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.dashboard-card {
  position: absolute;
  left: 26px;
  bottom: 26px;
  background: var(--blue);
  color: var(--white);
  border-radius: 20px;
  padding: 24px;
  width: 65%;
}

.dashboard-card h3 {
  margin-bottom: 10px;
}

.dashboard-card p {
  color: rgba(255,255,255,0.8);
}

.potenzia {
  background: var(--light);
  border-radius: 30px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.potenzia p {
  color: var(--gray);
  line-height: 1.7;
  margin: 18px 0;
}

.text-link {
  color: var(--orange);
  font-weight: 800;
}

.media-icons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.media-icons div {
  background: var(--white);
  min-height: 130px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 2rem;
  box-shadow: 0 12px 30px rgba(31, 74, 124, 0.08);
}

.media-icons span {
  display: block;
  font-size: 0.85rem;
  color: var(--blue-dark);
  font-weight: 600;
}

.contact {
  padding: 80px;
  background: var(--blue-dark);
  border-radius: 30px;
  color: var(--white);
  margin-bottom: 60px;
}

.contact p {
  color: rgba(255,255,255,0.75);
  margin: 18px 0 30px;
}

form {
  display: grid;
  gap: 16px;
  max-width: 700px;
}

input,
textarea {
  border: none;
  border-radius: 16px;
  padding: 17px 20px;
  font-family: inherit;
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

form button {
  border: none;
  cursor: pointer;
  width: fit-content;
}

footer {
  padding: 34px 5%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray);
}

@media (max-width: 1100px) {
  .floating-card.top {
    display: none;
  }

  .pillars,
  .services-grid,
  .potenzia,
  .intro {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
    min-width: auto;
    width: 100%;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 800px) {
  .header {
    padding: 18px 6%;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 6%;
    right: 6%;
    background: var(--white);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow);
    flex-direction: column;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    width: calc(100% - 28px);
    padding: 42px 26px;
    min-height: auto;
  }

  .hero h1 {
    letter-spacing: -3px;
  }

  .intro,
  .services,
  .potenzia,
  .contact,
  .pillars {
    width: calc(100% - 28px);
  }

  .pillars,
  .services-list,
  .media-icons,
  .stats-card {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-card {
    width: calc(100% - 52px);
  }

  .contact {
    padding: 42px 26px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}