body {
  background: #f7f2e8;
}

.site-header {
  min-height: 104px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(4, 38, 70, 0.08);
  border-bottom: 0;
}

.brand-logo {
  width: 170px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.brand-text {
  display: none;
}

.main-nav {
  gap: clamp(14px, 2.4vw, 34px);
  color: #082a4f;
  font-size: 0.96rem;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(420px, 1.22fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  background-image: linear-gradient(90deg, rgba(255, 249, 235, 0.98) 0%, rgba(255, 249, 235, 0.9) 32%, rgba(255, 249, 235, 0.05) 55%), url('assets/hero-zeus-agri.svg');
  background-size: cover;
  background-position: center right;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: clamp(64px, 8vw, 110px) 0 150px clamp(42px, 6vw, 86px);
}

.hero .eyebrow {
  color: #d5a31d;
}

.hero h1 {
  color: #05264b;
  font-size: clamp(2.65rem, 4.7vw, 5.05rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
}

.hero h1::after {
  content: '';
  display: block;
  width: 68px;
  height: 4px;
  margin-top: 24px;
  border-radius: 999px;
  background: #d9a21f;
}

.hero-copy {
  max-width: 520px;
  color: #08345f;
  font-size: 1.12rem;
  line-height: 1.72;
}

.button-primary {
  background: #073865;
  color: #fff;
  box-shadow: 0 16px 30px rgba(7, 56, 101, 0.24);
}

.button-secondary {
  border: 0;
  background: linear-gradient(135deg, #e4a924, #f1c96a);
  color: #072342;
  box-shadow: 0 16px 30px rgba(214, 156, 28, 0.25);
}

.hero-image {
  display: none;
}

.intro {
  display: none;
}

.cards-grid {
  position: relative;
  z-index: 4;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0 clamp(34px, 5vw, 78px) 48px;
  margin-top: -86px;
}

.service-card {
  min-height: 270px;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  gap: 16px;
  border: 1px solid rgba(5, 38, 75, 0.09);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.95);
  box-shadow: 0 18px 42px rgba(5, 38, 75, 0.17);
}

.card-number {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #5f8e5e, #275f38 72%);
  color: transparent;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.38), 0 10px 24px rgba(16, 75, 46, 0.2);
}

.card-number::before {
  color: white;
  font-size: 1.68rem;
  font-weight: 800;
}

#gse .card-number::before { content: '⚡'; }
#agricoltura-ismea .card-number::before { content: '☘'; }
#bandi-incentivi .card-number::before { content: '€'; }
#transizione-5-0 .card-number::before { content: '5.0'; font-size: 1.1rem; }
#efficienza-energetica .card-number::before { content: '↗'; }

.service-card h3 {
  margin: 0 0 6px;
  color: #145132;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
}

#bandi-incentivi h3,
#transizione-5-0 h3 {
  color: #052c55;
}

.service-card p {
  color: #1f2f36;
  font-size: 0.98rem;
  line-height: 1.62;
}

.opportunities {
  position: relative;
  padding-top: 64px;
  padding-bottom: 70px;
  background: radial-gradient(circle at 80% 10%, rgba(37, 125, 177, 0.22), transparent 36%), linear-gradient(135deg, #031f39, #06446e 58%, #03233e);
  overflow: hidden;
}

.opportunities::after {
  content: '';
  position: absolute;
  inset: auto -120px -200px auto;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.opportunities .section-heading,
.opportunities .section-lead,
.opportunity-controls {
  position: relative;
  z-index: 2;
}

.opportunities .section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.opportunity-controls {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.slider-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.news-grid {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 22px;
  width: max-content;
  margin-top: 28px;
  animation: zeusSlide 24s linear infinite;
}

.news-grid:hover,
.news-grid:focus {
  animation-play-state: paused;
}

.news-card {
  flex: 0 0 310px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0 38%, #fffdf8 39% 100%), #ffffff;
  color: #05264b;
  border: 1px solid rgba(255,255,255,0.18);
}

.news-card::before {
  content: '';
  display: block;
  height: 132px;
  margin: -24px -24px 20px;
  background-size: cover;
  background-position: center;
}

.news-card:nth-child(1)::before,
.news-card:nth-child(5)::before { background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=700&q=75'); }
.news-card:nth-child(2)::before,
.news-card:nth-child(6)::before { background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=700&q=75'); }
.news-card:nth-child(3)::before,
.news-card:nth-child(7)::before { background-image: url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&w=700&q=75'); }
.news-card:nth-child(4)::before,
.news-card:nth-child(8)::before { background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=700&q=75'); }

.news-card h3 {
  color: #05264b;
  font-size: 1.38rem;
}

.news-card p {
  color: #24323d;
}

.news-card .tag {
  width: fit-content;
  margin-bottom: 12px;
  background: #073865;
  color: #fff;
}

@keyframes zeusSlide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 11px)); }
}

.method {
  display: none;
}

.site-footer {
  border-top: 2px solid rgba(220, 161, 31, 0.75);
  background: radial-gradient(circle at 90% 80%, rgba(45, 123, 184, 0.24), transparent 35%), #02213c;
}

.footer-logo {
  width: 210px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    background-position: center right;
  }

  .hero-content {
    padding-right: clamp(28px, 6vw, 70px);
    background: rgba(255, 249, 235, 0.62);
    backdrop-filter: blur(1px);
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
  }

  .brand-logo {
    width: 132px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding: 46px 22px 125px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    margin-top: -62px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .news-grid {
    animation: none;
    width: auto;
    flex-direction: column;
  }

  .news-card {
    flex-basis: auto;
  }
}
