:root {
  --ink: #17201f;
  --navy: #0d2425;
  --navy-soft: #173536;
  --green: #b6cc00;
  --green-dark: #667400;
  --paper: #f2f2ed;
  --white: #fff;
  --muted: #596261;
  --line: rgba(23, 32, 31, .15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { scroll-padding-top: 96px; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
p { text-wrap: pretty; }
a, button, input, select, textarea { border-radius: 0; }

.hero > header {
  padding: 18px clamp(24px, 5vw, 84px);
  background: linear-gradient(180deg, rgba(4, 20, 21, .72), rgba(4, 20, 21, .08));
  border-bottom-color: rgba(255,255,255,.2);
}
.hero > header .brand img { width: 320px; max-height: 154px; transform: scale(1.12); transform-origin: left center; }
.hero > header nav { gap: clamp(16px, 2.3vw, 36px); font-size: 12px; }
.hero > header nav a { font-weight: 600; }
.hero > header nav a::after { background: rgba(255,255,255,.7); }

.hero#home {
  min-height: 94svh;
  background:
    linear-gradient(105deg, rgba(4, 20, 21, .82) 0%, rgba(4, 20, 21, .56) 48%, rgba(4, 20, 21, .24) 100%),
    url('hero-solar.jpg') center 46%/cover no-repeat;
}
.hero#home::after { border-color: rgba(182,204,0,.09); }
.hero-copy { max-width: 1180px; padding-top: 170px; }
.hero-copy h1 { font-size: clamp(58px, 7.5vw, 116px); line-height: .91; letter-spacing: -.055em; text-shadow: 0 8px 30px rgba(0,0,0,.22); }
.hero-copy p { max-width: 920px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.75; }
.eyebrow, .section-no { font-weight: 700; }

.button {
  padding: 16px 24px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--navy);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { background: #cadf19; border-color: #cadf19; transform: translateY(-2px); }
.button.alt:hover { background: #fff; color: var(--navy); border-color: #fff; }

main section { padding-top: clamp(78px, 9vw, 130px); padding-bottom: clamp(78px, 9vw, 130px); }
h2 { letter-spacing: -.045em; }
.lead { font-family: var(--serif); }
.copy, .section-head p, .digital-card p, .audience p { color: var(--muted); }
.intro { background: #fafaf7; }

.services { background: var(--navy); }
.service-grid { border-color: rgba(255,255,255,.16); }
.service { min-height: 315px; padding: 38px; border-color: rgba(255,255,255,.16); }
.service h3 { font-family: var(--serif); font-size: 29px; line-height: 1.1; }
.service:hover { background: transparent; }

.audiences, .digital, .about { background: #fafaf7; }
.audience-grid { gap: 16px; background: transparent; border: 0; }
.audience { min-height: 285px; border: 1px solid var(--line); background: var(--white); }
.audience h3, .digital-card h3 { font-family: var(--serif); }
.digital-card { padding: 42px; background: var(--white); box-shadow: 0 18px 48px rgba(13,36,37,.06); }

.portal { background: var(--navy); }
.incentives { background: #e9ebe4; }
.visual {
  min-height: 590px;
  background:
    linear-gradient(180deg, rgba(13,36,37,.04), rgba(13,36,37,.22)),
    url('edificio-efficiente.jpg') center/cover no-repeat;
}
.project-strip { min-height: 520px; }
.project-photo:nth-child(1) { background-image: url('hero-solar.jpg'); }
.project-photo:nth-child(2) { background-image: url('diagnosi-energetica.png'); background-position: center; }
.project-photo:nth-child(3) { background-image: url('edificio-efficiente.jpg'); }

.quote { font-family: var(--serif); }
.cta { background: var(--navy); color: #fff; border-top: 8px solid var(--green); }
.cta h2 { color: #fff; }
.cta .button { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta .button:hover { background: var(--green); border-color: var(--green); color: var(--navy); }
footer { background: #07191a; }
footer img { width: 250px; transform: scale(1.08); transform-origin: left center; }

body > header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  overflow: visible;
  min-height: 96px;
  padding: 12px clamp(22px, 5vw, 80px);
  background: rgba(13,36,37,.98);
}
body > header .brand { display: flex; align-items: center; }
body > header .brand img { width: 300px; max-height: 132px; object-fit: contain; display: block; transform: scale(1.08); transform-origin: left center; }
body > header nav { gap: clamp(14px, 2vw, 30px); font-size: 11px; font-weight: 600; }
body > header nav a { position: relative; padding: 12px 0; }
body > header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 2px; background: rgba(255,255,255,.7); transition: .25s; }
body > header nav a:hover { color: inherit; }
body > header nav a:hover::after { right: 0; }
body > header .mobile-menu { display: none; position: relative; z-index: 1001; }
body > header .mobile-menu summary { list-style: none; cursor: pointer; border: 1px solid rgba(255,255,255,.4); padding: 10px 13px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
body > header .mobile-menu summary::-webkit-details-marker { display: none; }
body > header .mobile-menu div { position: absolute; right: 0; top: 48px; z-index: 1002; width: min(78vw,310px); max-height: calc(100svh - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; background: var(--navy); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
body > header .mobile-menu a { display: block; padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

body > .hero:not(#home) {
  position: relative;
  overflow: hidden;
  padding-top: clamp(88px, 10vw, 140px);
  padding-bottom: clamp(88px, 10vw, 140px);
  background:
    linear-gradient(100deg, rgba(13,36,37,.97), rgba(13,36,37,.84)),
    url('hero-solar.jpg') center/cover no-repeat;
}
body > .hero:not(#home)::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -130px;
  bottom: -220px;
  border: 70px solid rgba(182,204,0,.11);
  transform: rotate(28deg);
}
body > .hero:not(#home) h1 { font-size: clamp(50px, 7vw, 94px); }

.index { position: sticky; top: 96px; z-index: 4; padding-top: 18px; padding-bottom: 18px; box-shadow: 0 10px 30px rgba(13,36,37,.06); }
.index a { background: #fff; }
.index a:hover, .index a:focus-visible { background: #fff; color: var(--ink); border-color: var(--line); outline: none; text-decoration: underline; text-decoration-color: #7a8280; text-underline-offset: 4px; }
.service .content { max-width: 840px; }
.service .block p { color: var(--muted); }
.law { background: #fafaf7; border-left-color: var(--green); }
.law a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.news-grid { gap: 28px; }
.card { min-height: 420px; padding: 38px; border: 0; box-shadow: 0 18px 48px rgba(13,36,37,.07); }
.card h2 { font-family: var(--serif); }

.request { padding: clamp(30px,4vw,48px); border: 0; box-shadow: 0 22px 60px rgba(13,36,37,.09); }
.request h2, .secure h2 { font-family: var(--serif); }
.form input, .form select, .form textarea { border-color: #c7ccca; background: #fdfdfb; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(182,204,0,.55); outline-offset: 1px; }
.secure { background: var(--navy); }

@media (max-width: 1050px) {
  .hero > header nav { gap: 14px; font-size: 10px; }
  .hero > header .brand img { width: 235px; }
  body > header nav { gap: 12px; font-size: 9px; }
  body > header .brand img { width: 225px; }
}

@media (max-width: 850px) {
  html { scroll-padding-top: 78px; }
  .hero#home { min-height: 88svh; background-position: 58% center; }
  .hero > header { padding: 14px 18px; }
  .hero > header .brand img { width: 230px; max-height: 108px; transform: scale(1.04); }
  .hero-copy { padding: 136px 20px 62px; }
  .hero-copy h1 { font-size: clamp(50px, 16vw, 78px); }
  .hero-copy p { font-size: 12px; line-height: 1.7; }
  main section { padding-left: 22px; padding-right: 22px; }
  .service { min-height: 0; padding: 30px 24px; }
  .audience, .digital-card { min-height: 0; padding: 30px 24px; }
  .visual { min-height: 420px; }
  .project-photo { min-height: 360px; }
  .cta { padding-left: 24px; padding-right: 24px; }
  body > header { min-height: 86px; flex-direction: row; align-items: center; gap: 16px; padding: 10px 18px; }
  body > header .brand img { width: 220px; max-height: 96px; transform: scale(1.04); }
  body > header nav { display: none !important; }
  body > header .mobile-menu { display: block !important; }
  .index { top: 86px; overflow-x: auto; flex-wrap: nowrap; }
  .index a { flex: 0 0 auto; }
  .index { scrollbar-width: none; -ms-overflow-style: none; }
  .index::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
