:root {
  --blue: #3c8ce8;
  --dark: #252f78;
  --text: #142264;
  --software: #5a8cca;
  --consulting: #3889ea;
  --solutions: #242f78;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.page2 {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  box-shadow: none;
}
.site-header {
  height: 64px;
  background: var(--blue);
  position: relative;
  z-index: 5;
}

.hero-logo-link {
  position: absolute;
  left: 19px;
  top: 19px;
  z-index: 10;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}

.hero-logo-link:hover,
.hero-logo-link:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
  outline: none;
}

.logo-top {
  width: 206px;
  height: auto;
  display: block;
}

nav {
  height: 64px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 34px;
  padding-right: 48px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

nav a {
  color: #10205f;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover { text-decoration: underline; }

.hero {
  min-height: 350px;
  background: url("immagini/hero.png") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #1d2d79;
  font-size: 54px;
  line-height: 1;
  font-weight: 400;
}

.content {
  padding: 36px 36px 38px;
}

.content h2 {
  text-align: center;
  margin: 0 0 28px;
  color: #202d79;
  font-size: 40px;
  font-weight: 400;
}

.intro-text {
  max-width: 100%;
  margin: 0 auto 36px;
  text-align: justify;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.intro-text p { margin: 0; }

.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "software consulenza"
    "soluzioni soluzioni";
  gap: 36px 250px;
  align-items: start;
}

.project-card {
  position: relative;
  width: 305px;
  justify-self: center;
}

.software-card { grid-area: software; }
.consulenza-card { grid-area: consulenza; }
.soluzioni-card { grid-area: soluzioni; }

.project-toggle {
  width: 100%;
  min-height: 305px;
  border: 0;
  border-radius: 26px;
  padding: 24px 20px 44px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.software-card .project-toggle { background: var(--software); }
.consulenza-card .project-toggle { background: var(--consulting); }
.soluzioni-card .project-toggle { background: var(--solutions); }

.project-toggle span {
  display: block;
  margin-bottom: 28px;
  font-size: 29px;
}

.project-toggle img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
}

.project-card:hover .project-toggle,
.project-card:focus-within .project-toggle {
  transform: translateY(-6px);
  box-shadow: 0 18px 28px rgba(36, 47, 120, .24);
  filter: brightness(1.04);
}

.dropdown-menu {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  text-align: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-12px);
  transition: max-height .45s ease, opacity .3s ease, transform .35s ease;
}

.project-card:hover .dropdown-menu,
.project-card:focus-within .dropdown-menu {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li { margin: 0 0 17px; }

.dropdown-menu a {
  color: #132267;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible { text-decoration: underline; }

footer {
  background: var(--dark);
  color: #fff;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px 88px;
  padding: 48px 36px 35px;
  font-size: 15px;
  line-height: 1.22;
}

.footer-brand img {
  width: 92px;
  height: auto;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-details p { margin: 0; }
.footer-details p { margin-bottom: 24px; }

@media (max-width: 760px) {
  .page { max-width: none; }
  .site-header { height: auto; padding-top: 105px; }
  .hero-logo-link { left: 50%; transform: translateX(-50%); }
  .hero-logo-link:hover,
  .hero-logo-link:focus-visible { transform: translateX(-50%) translateY(-2px) scale(1.02); }
  nav { height: auto; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 12px; }
  .hero { min-height: 260px; }
  .hero h1 { font-size: 42px; }
  .content { padding: 30px 22px 42px; }
  .content h2 { font-size: 32px; }
  .intro-text { font-size: 16px; }
  .project-layout { display: block; }
  .project-card { width: min(305px, 100%); margin: 0 auto 32px; }
  footer { grid-template-columns: 1fr; gap: 25px; text-align: center; }
}
