:root {
  --green-dark: #005c36;
  --green-mid: #245b12;
  --green-bright: #8bd000;
  --footer: #103f00;
  --text: #666666;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.84);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

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

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #ffffff;
  padding: 34px 20px 0;
}

.brand {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  text-align: center;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand-logo {
  width: 76px;
  height: auto;
}

.brand-title {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.company-name {
  margin: 18px auto 24px;
  color: var(--green-bright);
  font-size: clamp(1.55rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.12;
  text-align: left;
}

.nav-wrap {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.menu-button {
  width: 58px;
  height: 54px;
  border: 2px solid #111111;
  background: #ffffff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 31px;
  height: 5px;
  background: #111111;
}

.menu-button span {
  margin: 5px 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 22px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 18px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--green-bright);
  border-bottom-color: var(--green-bright);
}

.hero-panels {
  min-height: 390px;
  background-image: url('../img/pannelli-fotovoltaici.jpg');
  background-position: center;
  background-size: cover;
}

.section-title {
  margin: 0 0 28px;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.data-section {
  padding: 94px 24px;
  background:
    linear-gradient(rgba(65, 149, 213, 0.62), rgba(255, 255, 255, 0.48)),
    url('../img/pannelli-fotovoltaici.jpg') center / cover fixed;
}

.data-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 62px 46px 54px;
  background: rgba(246, 249, 250, 0.86);
}

.data-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  margin-bottom: 42px;
}

.company-data {
  margin: 0;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.55;
}

.company-data p {
  margin: 0;
}

.company-data strong {
  color: #2b651d;
  text-decoration: underline;
}

.incentives-section {
  min-height: 900px;
  padding: 72px 24px 110px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 246, 232, 0.18)),
    url('../img/paesaggio-sfondo.jpg') center / cover no-repeat;
}

.incentives-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 56px 66px 68px;
  background: var(--soft-white);
  min-height: 700px;
}

.incentives-card .section-title {
  text-align: left;
  margin-bottom: 4px;
}

.incentives-subtitle {
  margin: 0 0 36px;
  color: var(--green-dark);
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  line-height: 1.25;
}

.incentive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #214f0f;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.42;
}

.incentive-list li {
  white-space: nowrap;
}

.content-section {
  padding: 90px 24px 120px;
  background: #ffffff;
}

.content-inner {
  width: min(100%, 960px);
  margin: 0 auto;
}

.content-section .section-title {
  color: var(--green-bright);
}

.content-text {
  margin: 0;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.55;
}

.contact-details {
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.12rem, 2.35vw, 1.55rem);
  line-height: 1.48;
}

.contact-details p {
  margin: 0.2rem 0;
}

.contact-details a {
  color: #2b651d;
  font-weight: 700;
  text-decoration: underline;
}

.site-footer {
  min-height: 300px;
  padding: 70px 20px 50px;
  background: var(--footer);
  color: #ffffff;
  text-align: center;
}

.copyright {
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.copyright a {
  font-weight: 700;
}

.hosting-logo {
  width: 185px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 34px 34px 0;
  }

  .brand-line {
    gap: 11px;
  }

  .brand-logo {
    width: 74px;
  }

  .brand-title {
    font-size: 2rem;
  }

  .company-name {
    margin-top: 18px;
    font-size: 1.72rem;
  }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    z-index: 22;
  }

  .main-nav {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: min(94vw, 390px);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  }

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

  .main-nav a {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid #ececec;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero-panels {
    min-height: 360px;
  }

  .data-section {
    padding: 70px 34px 80px;
    background-attachment: scroll;
  }

  .data-card {
    padding: 46px 35px 42px;
  }

  .data-image {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 2rem;
  }

  .company-data {
    font-size: 1.17rem;
    line-height: 1.55;
  }

  .incentives-section {
    min-height: 760px;
    padding: 58px 34px 86px;
  }

  .incentives-card {
    min-height: 620px;
    padding: 45px 42px 54px;
  }

  .incentives-card .section-title {
    font-size: 1.9rem;
  }

  .incentives-subtitle {
    font-size: 1.15rem;
    margin-bottom: 28px;
  }

  .incentive-list {
    font-size: 1.55rem;
    line-height: 1.45;
  }

  .content-section {
    padding: 86px 68px 112px;
  }

  .content-text,
  .contact-details {
    font-size: 1.16rem;
  }

  .site-footer {
    min-height: 300px;
    padding-top: 70px;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-logo {
    width: 62px;
  }

  .brand-title {
    font-size: 1.7rem;
  }

  .company-name {
    font-size: 1.5rem;
  }

  .data-section,
  .incentives-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .data-card,
  .incentives-card {
    padding-left: 24px;
    padding-right: 24px;
  }

  .incentive-list {
    font-size: 1.32rem;
  }

  .content-section {
    padding-left: 26px;
    padding-right: 26px;
  }
}
