/* ===== Fonts — materiale/font ===== */
@font-face {
  font-family: "Open Sans";
  src: url("../materiale/font/open-sans/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../materiale/font/open-sans/OpenSans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../materiale/font/open-sans/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Krona One";
  src: url("../materiale/font/KronaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens — palette Lenia ===== */
:root {
  --lenia-blue: #2653a0;
  --lenia-blue-light: #4eace1;
  --lenia-green: #005d34;
  --lenia-lime: #b9ce00;
  --lenia-green-dark: #014a3d;

  --blue-dark: var(--lenia-blue);
  --blue-mid: var(--lenia-blue);
  --blue-light: var(--lenia-blue-light);
  --blue-pale: #e9f3fa;
  --green-dark: var(--lenia-green-dark);
  --green-mid: var(--lenia-green);
  --green-bright: var(--lenia-lime);
  --green-lime: var(--lenia-lime);
  --white: #ffffff;
  --text-dark: var(--lenia-blue);
  --text-muted: #5a7294;
  --gradient-cta: linear-gradient(90deg, var(--lenia-green) 0%, var(--lenia-lime) 100%);
  --gradient-blue: linear-gradient(90deg, var(--lenia-blue) 0%, var(--lenia-blue-light) 100%);
  --gradient-green: linear-gradient(90deg, var(--lenia-green-dark) 0%, var(--lenia-lime) 100%);
  --radius-pill: 999px;
  --radius-leaf: clamp(5rem, 4vw, 3rem);
  --shadow-card: 0 12px 40px rgba(38, 83, 160, 0.12);
  --container: min(1140px, 92vw);
  --header-h: 80px;
  --header-radius-br: clamp(3.75rem, 3.5vw, 3rem);
  --section-pad-y: clamp(3rem, 8vw, 5rem);
  --section-pad-x: clamp(1rem, 4vw, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Krona One", "Open Sans", sans-serif;
  font-weight: 400;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  width: var(--container);
  margin-inline: auto;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-label--blue {
  color: var(--blue-mid);
}

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

.section-label--lime {
  color: var(--lenia-lime);
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn--outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--blue {
  background: var(--blue-mid);
  color: var(--white);
}

.btn--gradient {
  background: var(--gradient-cta);
  color: var(--green-dark);
  border: none;
}

.btn--leaf {
  background: var(--gradient-blue);
  color: var(--white);
  border: none;
  border-radius: 3rem 0 3rem 0;
  padding: 0.9rem 2.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 220px;
}

.btn--leaf-green {
  background: var(--gradient-green);
  color: var(--white);
  border: none;
  border-radius: 3rem 0 3rem 0;
  padding: 0.9rem 2.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 220px;
}

/* Asymmetric rounded corners (top-left + bottom-right) */
.clip-organic {
  border-radius: 48px 0 48px 0;
  overflow: hidden;
}

.clip-organic--sm {
  border-radius: 32px 0 32px 0;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-radius: 0 0 var(--header-radius-br) 0;
  box-shadow: 0 2px 20px rgba(38, 83, 160, 0.08);
  /* visible: il taglio BR lascia vedere il banner sotto */
  overflow: visible;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  height: 100%;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  width: min(1320px, 96vw);
}

.site-header__logo {
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
}

.site-header__logo img {
  height: clamp(36px, 4.5vw, 48px);
  width: auto;
  max-width: min(180px, 42vw);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1vw, 1rem);
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.site-nav .site-nav__link {
  font-size: clamp(0.68rem, 0.82vw, 0.8rem);
  font-weight: 600;
  color: var(--lenia-green);
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav .site-nav__link:hover {
  color: var(--green-dark);
}

.site-nav__link.is-active {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--lenia-lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.site-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  grid-column: 3;
  grid-row: 1;
}

.site-header__actions .btn {
  padding: 0.55rem clamp(0.65rem, 1.1vw, 1.1rem);
  font-size: clamp(0.62rem, 0.72vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  border: none;
  white-space: nowrap;
}

.btn--header-dark,
.btn--header-light {
  background: var(--lenia-blue);
  color: var(--white);
}

.btn--header-dark:hover,
.btn--header-light:hover {
  opacity: 0.92;
  color: var(--white);
}

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 102;
  flex-shrink: 0;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.site-header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--lenia-green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-menu-open .site-header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .site-header__burger-line:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__actions {
  display: none;
}

.site-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(38, 83, 160, 0.45);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-nav-backdrop.is-visible {
  display: block;
  opacity: 1;
}

body.is-nav-open {
  overflow: hidden;
}

/* ===== Page hero (banner sotto header fisso, immagine visibile sotto il raggio BR) ===== */
.page-hero {
  --page-hero-visible: clamp(280px, 42vw, 520px);
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  line-height: 0;
  background: var(--blue-pale);
}

.page-hero img {
  width: 100%;
  /* Altezza = header + area visibile: l’immagine sale dietro l’header */
  height: calc(var(--header-h) + var(--page-hero-visible));
  max-height: calc(var(--header-h) + min(56vw, 560px));
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== Hero slider (immagine sotto header fisso, come page-hero) ===== */
.hero {
  --hero-height: clamp(500px, 85vh, 820px);
  position: relative;
  z-index: 1;
  min-height: var(--hero-height);
  padding-top: 0;
  color: var(--white);
  overflow: hidden;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  min-height: var(--hero-height);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.hero-slide--blue .hero-slide__bg {
  background-image: url("../materiale/img/HEADER1_750_new.jpg");
  background-position: center center;
}

.hero-slide--green .hero-slide__bg {
  background-image: url("../materiale/header/HEADER_750_OFFERTA.jpg");
  background-position: center center;
}

.hero-slide--blue .hero-slide__bg::after,
.hero-slide--green .hero-slide__bg::after {
  content: none;
}

/* Prima slide: solo CTA allineato alla scritta nell'immagine */
.hero-slide--cta-only {
  justify-content: center;
  text-align: center;
}

.hero-slide--cta-only .hero-slide__content {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(10rem, 24vw, 14rem)) 1.5rem 6rem;
}

.hero-slider--single .hero-slider__nav {
  display: none;
}

.hero-slider__cta-mobile {
  display: none;
}

.hero-slide__image {
  display: none;
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: calc(var(--header-h) + 2.5rem) 1.5rem 6rem;
}

.hero-slide__title {
  font-family: "Krona One", "Open Sans", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 18px rgba(0, 0, 0, 0.55);
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.25);
}

.hero-slide__title-line {
  display: block;
  white-space: nowrap;
}

.hero-slide__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  opacity: 1;
  margin-bottom: 2rem;
  max-width: 620px;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.88),
    0 2px 7px rgba(0, 0, 0, 0.75),
    0 3px 14px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.2);
}

/* Slider controls */
.hero-slider__nav {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-slider__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}

.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--white);
}

.hero-slider__dots {
  display: flex;
  gap: 0.5rem;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-slider__dot.is-active {
  background: var(--white);
  transform: scale(1.15);
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 4;
  line-height: 0;
  pointer-events: none;
}

.hero__wave svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-slide__color-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 56%;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
}

.hero-slide__color-wave--blue {
  background-image: url("../materiale/background/fondo-blu-capovolto.svg");
}

.hero-slide__color-wave--green {
  background-image: url("../materiale/background/fondo-green-capovolto.svg");
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* ===== Chi siamo ===== */
.section-chi-siamo {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--white);
}

.section-chi-siamo__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-chi-siamo__header .section-label {
  margin-bottom: 0.5rem;
}

.section-chi-siamo__title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--lenia-blue);
  line-height: 1.2;
  margin: 0 auto;
  max-width: 22ch;
}

.section-chi-siamo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.section-chi-siamo__content {
  max-width: 520px;
}

.section-chi-siamo__text {
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.75;
  font-weight: 400;
}

.section-chi-siamo__text strong {
  font-weight: 700;
  color: #1a1a1a;
}

.section-chi-siamo__visual {
  --chi-siamo-radius: clamp(4.5rem, 11vw, 8.75rem);
  position: relative;
  min-height: clamp(420px, 54vw, 660px);
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.section-chi-siamo__img-wrap {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(38, 83, 160, 0.14);
}

.section-chi-siamo__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Parchi eolici — sinistra, quadrata, radius alto-sx + basso-dx, centrata sulla destra */
.section-chi-siamo__img-wrap--back {
  left: 0;
  top: 50%;
  width: min(48%, 280px);
  aspect-ratio: 1 / 1;
  z-index: 2;
  border-radius: var(--chi-siamo-radius) 0 var(--chi-siamo-radius) 0;
  transform: translateY(-50%);
}

/* Famiglia — destra, alta, dietro (z-index 1) */
.section-chi-siamo__img-wrap--front {
  right: 0;
  top: 4%;
  bottom: 0;
  width: 60%;
  height: auto;
  aspect-ratio: auto;
  z-index: 1;
  border-radius: 0 var(--chi-siamo-radius) 0 var(--chi-siamo-radius);
}

/* ===== Blue philosophy / filiera ===== */
.section-philosophy {
  position: relative;
}

.section-philosophy__wave {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 359.44;
  margin-bottom: -1px;
  overflow: hidden;
  background: url("../materiale/background/fondo-blu.svg") top center / 100% auto no-repeat;
  pointer-events: none;
}

.section-philosophy__body {
  background-color: var(--lenia-blue);
  color: var(--white);
  padding: 0 0 clamp(4rem, 7vw, 5rem);
}

.section-philosophy__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

.section-philosophy__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.section-philosophy__text p {
  margin-bottom: 1.1rem;
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  line-height: 1.65;
  opacity: 0.98;
}

.section-philosophy__text strong {
  font-weight: 700;
}

.section-philosophy__highlight {
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-style: normal;
}

.philosophy-box {
  --philosophy-box-pad-y: clamp(2rem, 3.5vw, 2.75rem);
  --philosophy-box-pad-x: clamp(1.75rem, 2.5vw, 2.25rem);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--lenia-blue-light);
  border-radius: clamp(3.5rem, 5vw, 8.5rem) 0 clamp(3.5rem, 5vw, 8.5rem) 0;
  padding: var(--philosophy-box-pad-y) var(--philosophy-box-pad-x);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding-left: 3rem !important;
}

.philosophy-box__item {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.15rem);
  padding: 0;
}

.philosophy-box__icon {
  flex-shrink: 0;
  width: clamp(40px, 5.5vw, 52px);
  height: clamp(40px, 5.5vw, 52px);
  background-color: var(--white);
  -webkit-mask-image: var(--pillar-icon);
  mask-image: var(--pillar-icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.philosophy-box__label {
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.3;
  color: var(--white);
}

/* ===== Perché sceglierci — card ===== */
.section-valori {
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  background: var(--white);
  overflow: visible;
}

.section-valori .container {
  overflow: visible;
}

.section-valori .section-label {
  margin-bottom: 0.5rem;
}

.section-valori__title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--lenia-green-dark);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  max-width: 14ch;
  margin-inline: auto;
}

.section-valori__title br {
  display: none;
}

@media (min-width: 480px) {
  .section-valori__title br {
    display: block;
  }
}

.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(4.25rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
  text-align: left;
  align-items: start;
  overflow: visible;
}

.valori-card {
  position: relative;
  background: var(--lenia-green);
  border-radius: clamp(2rem, 4vw, 3.25rem);
  overflow: visible;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 93, 52, 0.2);
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2vw, 1.35rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.5rem);
}

.valori-card__img-wrap {
  width: min(78%, 220px);
  margin-top: clamp(-2.75rem, -6vw, -3.5rem);
  margin-right: clamp(-0.65rem, -1.5vw, -1rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  margin-left: auto;
  overflow: hidden;
  border-radius: clamp(5rem, 4vw, 2.75rem) 0 clamp(5rem, 4vw, 2.75rem) 0;
  line-height: 0;
  flex-shrink: 0;
}

.valori-card__img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.valori-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.valori-card__title {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.valori-card__text {
  font-size: clamp(0.8rem, 1.2vw, 0.875rem);
  font-weight: 400;
  line-height: 1.6;
  opacity: 1;
}

/* ===== Banner vento ===== */
.section-banner {
  position: relative;
  min-height: clamp(300px, 42vw, 520px);
  overflow: hidden;
  isolation: isolate;
}

.section-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-banner__marquee {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}

.section-banner__marquee-track {
  display: flex;
  width: max-content;
  animation: banner-marquee 28s linear infinite;
  will-change: transform;
}

.section-banner__marquee-track span {
  flex-shrink: 0;
  padding-right: clamp(2rem, 5vw, 4rem);
  font-family: "Krona One", sans-serif;
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 252, 245, 0.92);
  white-space: nowrap;
}

.section-banner__turbines {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 clamp(1rem, 3vw, 2rem);
  pointer-events: none;
}

.section-banner__turbines img {
  width: min(92%, 900px);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  transform: translateY(clamp(5.25rem, 5vw, 3.5rem));
}

@keyframes banner-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .section-banner__marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
  }

  .section-banner__marquee-track span {
    padding-right: 1rem;
  }

  .section-banner__marquee-track span:nth-child(n + 2) {
    display: none;
  }
}

/* ===== Perché lo facciamo ===== */
.section-perche-facciamo {
  --perche-visual-w: clamp(260px, 34vw, 400px);
  --perche-visual-h: calc(var(--perche-visual-w) * 4.2 / 3);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(calc(var(--perche-visual-h) / 3 + 2rem), 12vw, 8rem);
  background: var(--white);
  overflow: visible;
}

.section-perche-facciamo .container {
  overflow: visible;
}

.section-perche-facciamo__box {
  position: relative;
  background: var(--lenia-green);
  border-radius: clamp(2rem, 4vw, 3.5rem);
  overflow: visible;
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 0;
}

.section-perche-facciamo__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-perche-facciamo__header .section-label {
  display: block;
  margin-bottom: 0.75rem;
}

.section-perche-facciamo__title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.section-perche-facciamo__body {
  position: relative;
  min-height: calc(var(--perche-visual-h) * 0.72);
}

.section-perche-facciamo__lead,
.section-perche-facciamo__cta {
  text-align: left;
}

.section-perche-facciamo__lead {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  max-width: calc(100% - var(--perche-visual-w) - 1.5rem);
}

.section-perche-facciamo__lead strong,
.section-perche-facciamo__text-secondary strong {
  font-weight: 700;
}

.section-perche-facciamo__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-perche-facciamo__text-secondary {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
  max-width: min(380px, calc(100% - var(--perche-visual-w) - 2rem));
}

.section-perche-facciamo__cta .btn--leaf-green {
  text-transform: uppercase;
  flex-shrink: 0;
}

.section-perche-facciamo__visual {
  position: absolute;
  right: clamp(-2rem, -5vw, -4rem);
  bottom: 0;
  width: var(--perche-visual-w);
  z-index: 2;
  transform: translateY(33.333%);
  overflow: hidden;
  border-radius: 0 clamp(2.5rem, 8vw, 8.5rem) 0 clamp(2.5rem, 8vw, 8.5rem);
  line-height: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.section-perche-facciamo__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 93, 52, 0.15) 0%,
    rgba(0, 93, 52, 0.35) 100%
  );
  pointer-events: none;
}

.section-perche-facciamo__visual img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ===== Testimonials ===== */
.section-testimonials {
  position: relative;
  z-index: 1;
  padding: 5rem 0 clamp(3.5rem, 9vw, 6rem);
  text-align: center;
}

.section-testimonials__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.5rem;
  text-align: left;
}

.testimonial-card {
  background: var(--blue-mid);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-leaf) 0 var(--radius-leaf) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.testimonial-card__stars {
  color: #ffd700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.testimonial-card__text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.testimonial-card__link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.testimonial-card__link:hover {
  text-decoration: underline;
}

/* ===== Contatti ===== */
.section-contatti {
  position: relative;
  z-index: 2;
}

.section-contatti__wave {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 259;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: -1px;
  overflow: hidden;
  background: url("../materiale/background/fondo-green.svg") top center / 100% auto no-repeat;
  pointer-events: none;
}

.section-contatti__body {
  background-color: #026634;
  color: var(--white);
  line-height: 1.6;
  padding: 0 var(--section-pad-x) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.section-contatti__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-contatti .section-label {
  margin-bottom: 0.75rem;
}

.section-contatti__title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: none;
  margin-inline: auto;
}

@media (min-width: 769px) {
  .section-contatti__title {
    white-space: nowrap;
  }
}

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
  align-items: stretch;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

lenia-contatto-card {
  display: block;
  min-width: 0;
}

.contatto-card,
lenia-contatto-card.contatto-card {
  border: 2px solid var(--white);
  border-radius: clamp(5rem, 4vw, 3rem) 0 clamp(5rem, 4vw, 3rem) 0;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  height: 100%;
  min-height: clamp(250px, 28vw, 285px);
  box-sizing: border-box;
  background: transparent;
}

.contatto-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
}

.contatto-card__icon i {
  font-size: 1.85rem;
}

.contatto-card__icon-img,
.contatto-card__icon picture {
  width: 48px;
  height: 48px;
  display: block;
}

.contatto-card__icon-img {
  object-fit: contain;
}

.contatto-card__text {
  font-size: clamp(0.78rem, 1.2vw, 0.875rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  flex: 1;
  margin: 0;
}

.contatto-card__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.contatto-card__subtext {
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  margin: 0;
  opacity: 0.92;
}

.contatto-card__cta {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.contatto-card__cta .btn--leaf-green {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0.8rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contatto-card__phone {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.contatto-card__phone:hover {
  opacity: 0.9;
}

.contatto-card__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.contatto-card__icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contatto-card__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.contatto-card__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contatto-card__whatsapp img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.contatto-card__whatsapp:hover {
  opacity: 0.85;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.site-footer__logo img {
  height: 44px;
  width: auto;
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav a {
  font-size: 0.9rem;
  opacity: 0.9;
}

.site-footer__nav a:hover {
  opacity: 1;
}

.site-footer__social h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.site-footer__social-links {
  display: flex;
  gap: 1rem;
}

.site-footer__social-links a {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
}

.site-footer__social-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== Responsive ===== */

/* Tablet landscape / small desktop */
@media (max-width: 1200px) {
  .site-nav {
    gap: 0.45rem;
  }

  .site-nav .site-nav__link {
    font-size: 0.68rem;
  }

  .site-header__actions .btn {
    padding: 0.5rem 0.65rem;
    font-size: 0.62rem;
  }

  .section-chi-siamo__grid {
    gap: 2.5rem;
  }
}

/* Tablet */
@media (max-width: 992px) {
  :root {
    --header-h: 72px;
  }

  .site-header__inner {
    display: flex;
    justify-content: space-between;
    width: var(--container);
  }

  .site-header__burger {
    display: flex;
  }

  .site-header__actions {
    display: none;
  }

  .site-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(38, 83, 160, 0.12);
  }

  .site-nav__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    color: var(--white);
  }

  .site-nav__actions .btn--header-dark,
  .site-nav__actions .btn--header-light {
    background: var(--lenia-blue);
    color: var(--white);
    border-radius: var(--radius-pill);
  }

  .site-nav__actions .btn:hover {
    color: var(--white);
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 1.25rem 2rem;
    background: var(--white);
    box-shadow: -8px 0 32px rgba(38, 83, 160, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 3;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }

  .site-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav > a {
    font-size: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(38, 83, 160, 0.08);
  }

  .site-nav > a:last-of-type {
    border-bottom: none;
  }

  .site-nav > a.is-active {
    color: var(--green-dark);
    font-weight: 700;
    padding-left: 0.65rem;
    border-left: 3px solid var(--lenia-lime);
  }

  .section-chi-siamo__grid,
  .section-philosophy__grid,
  .valori-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .section-chi-siamo__grid {
    gap: 2rem;
  }

  .section-chi-siamo__content {
    max-width: none;
  }

  .section-chi-siamo__visual {
    --chi-siamo-radius: clamp(3rem, 11vw, 5.5rem);
    position: relative;
    min-height: clamp(360px, 92vw, 440px);
    width: min(100%, 400px);
    max-width: 400px;
    margin-inline: auto;
    overflow: visible;
  }

  .section-chi-siamo__img-wrap--back {
    left: 0;
    top: 50%;
    width: min(52%, 210px);
    z-index: 2;
    transform: translateY(-50%);
  }

  .section-chi-siamo__img-wrap--front {
    right: 0;
    top: 5%;
    bottom: 0;
    width: min(65%, 265px);
    height: auto;
    z-index: 1;
  }

  .section-philosophy__body {
    padding: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  }

  .section-philosophy__grid {
    gap: clamp(1.25rem, 4vw, 1.75rem);
    align-items: stretch;
  }

  .section-philosophy__title {
    margin-bottom: 1.1rem;
  }

  .section-philosophy__text p {
    margin-bottom: 0.95rem;
  }

  .philosophy-box {
    padding-left: var(--philosophy-box-pad-x) !important;
  }

  .contatti-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    gap: 0.75rem;
  }

  .contatti-grid > :nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc((100% - 0.75rem) / 2);
    justify-self: center;
  }

  .contatto-card,
  lenia-contatto-card.contatto-card {
    min-height: clamp(220px, 38vw, 250px);
    padding: 1.2rem 0.75rem 1rem;
    border-radius: clamp(2rem, 4vw, 2.5rem) 0 clamp(2rem, 4vw, 2.5rem) 0;
  }

  .contatto-card__icon,
  .contatto-card__icon-img {
    width: 42px;
    height: 42px;
  }

  .contatto-card__icon i {
    font-size: 1.5rem;
  }

  .contatto-card__text {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .contatto-card__cta .btn--leaf-green {
    padding: 0.65rem 0.85rem;
    font-size: 0.65rem;
  }

  .contatto-card__phone {
    font-size: 0.85rem;
  }

  .section-perche-facciamo {
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
  }

  .section-perche-facciamo__box {
    padding: 2.5rem 1.75rem 2rem;
    border-radius: 32px;
  }

  .section-perche-facciamo__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    min-height: 0;
    padding-bottom: 0;
  }

  .section-perche-facciamo__lead {
    max-width: none;
    text-align: center;
    margin-bottom: 0;
  }

  .section-perche-facciamo__cta {
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
  }

  .section-perche-facciamo__text-secondary {
    max-width: none;
  }

  .section-perche-facciamo__cta .btn--leaf-green {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .section-perche-facciamo__visual {
    position: relative;
    right: auto;
    bottom: auto;
    transform: none;
    width: min(300px, 72vw);
    margin: 0 auto;
  }

  .section-banner {
    min-height: 260px;
  }

  .testimonial-card {
    min-height: auto;
  }
}

/* Large phone */
@media (max-width: 768px) {
  :root {
    --header-h: 50px;
  }

  .site-header__logo img {
    height: 36px;
  }

  .hero {
    --hero-height: clamp(520px, 88dvh, 760px);
  }

  .hero-slider--single {
    --hero-height: auto;
    min-height: 0;
    overflow: visible;
    background: var(--white);
  }

  .hero-slider--single .hero-slider__track {
    min-height: 0;
    height: auto;
    background: var(--white);
  }

  .hero-slider--single .hero-slide.is-active {
    position: relative;
    display: block;
    padding: 0;
  }

  .hero-slider--single .hero-slide[hidden] {
    display: none !important;
  }

  .hero-slider--single .hero-slide--cta-only .hero-slide__bg {
    display: none;
  }

  .hero-slider--single .hero-slide--cta-only .hero-slide__image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: calc(var(--header-h) + 0.5rem);
  }

  .hero-slider--single .hero-slide--cta-only .hero-slide__content {
    display: none;
  }

  .hero-slider--single .hero-slider__cta-mobile {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.5rem var(--section-pad-x) 1.25rem;
    background: var(--white);
    box-sizing: border-box;
  }

  .hero-slide--cta-only .hero-slide__content {
    padding: calc(var(--header-h) + clamp(8.5rem, 34vw, 11.5rem)) var(--section-pad-x) 5.5rem;
  }

  .hero-slide {
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding-top: var(--header-h);
    padding-bottom: 5.5rem;
  }

  .hero-slide__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--section-pad-x);
  }

  .hero-slide__title {
    width: 100%;
    max-width: 34rem;
    line-height: 1.35;
  }

  .hero-slide__title-line {
    display: inline;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .hero-slide__subtitle {
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
  }

  .section-chi-siamo__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-slide__title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .hero-slide__subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-slider__nav {
    bottom: 4.5rem;
  }

  .section-chi-siamo,
  .section-valori,
  .section-testimonials,
  .section-perche-facciamo {
    padding-block: var(--section-pad-y);
  }

  .section-contatti__body {
    padding: 0 var(--section-pad-x) clamp(2.5rem, 6vw, 3.5rem);
  }

  .section-chi-siamo {
    padding-inline: var(--section-pad-x);
  }

  .section-philosophy__body {
    padding: 0 var(--section-pad-x) clamp(2rem, 5vw, 3rem);
  }

  .section-valori__title,
  .section-testimonials__title,
  .section-contatti__title {
    margin-bottom: 2rem;
  }

  .valori-grid {
    gap: 1.25rem;
  }

  .section-perche-facciamo {
    padding-bottom: var(--section-pad-y);
    --perche-visual-w: min(280px, 78vw);
  }

  .section-perche-facciamo__box {
    padding: 2rem 1.25rem 1.75rem;
    border-radius: 24px;
  }

  .section-perche-facciamo__visual {
    width: min(280px, 78vw);
    border-radius: 0 2rem 0 2rem;
  }

  .section-banner {
    min-height: 200px;
  }

  .section-banner__marquee-track span {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  .section-banner__turbines img {
    transform: translateY(1.75rem);
  }

  .philosophy-box {
    max-width: 420px;
    margin-inline: auto;
  }

  .site-footer {
    padding: 2.5rem var(--section-pad-x) 1.25rem;
  }
}

/* Phone */
@media (max-width: 600px) {
  .container {
    width: min(1140px, 94vw);
  }

  .hero-slider__arrow {
    display: none;
  }

  .hero-slider__nav {
    bottom: 3.75rem;
    gap: 0.75rem;
  }

  .hero {
    --hero-height: clamp(540px, 92dvh, 820px);
  }

  .hero-slider--single {
    --hero-height: auto;
  }

  .hero-slider--single .hero-slide,
  .hero-slider--single .hero-slide.is-active {
    padding: 0;
  }

  .hero-slide {
    padding-bottom: 4.75rem;
  }

  .hero-slide__title {
    font-size: clamp(1.05rem, 5.2vw, 1.45rem);
    line-height: 1.4;
  }

  .hero-slide--blue .hero-slide__bg {
    background-position: center 30%;
  }

  .hero-slider--single .hero-slide--blue .hero-slide__bg {
    background-position: center top;
  }

  .hero-slide--green .hero-slide__bg {
    background-position: center 40%;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
  }

  .section-chi-siamo__grid {
    text-align: center;
  }

  .section-chi-siamo__content {
    align-items: center;
    text-align: center;
  }

  .section-chi-siamo__text {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .btn--leaf,
  .btn--leaf-green {
    min-width: 200px;
    padding: 0.8rem 2rem;
    font-size: 0.75rem;
  }

  .section-chi-siamo__visual {
    --chi-siamo-radius: clamp(2.5rem, 9vw, 4.5rem);
    min-height: clamp(320px, 98vw, 400px);
    width: min(100%, 340px);
    max-width: 340px;
  }

  .section-chi-siamo__img-wrap--back {
    width: min(50%, 175px);
  }

  .section-chi-siamo__img-wrap--front {
    width: min(68%, 230px);
    top: 4%;
  }

  .section-philosophy__title {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .section-philosophy__text p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .section-philosophy__grid {
    gap: 1.15rem;
  }

  .philosophy-box {
    --philosophy-box-pad-y: 1.5rem;
    --philosophy-box-pad-x: 1.35rem;
    border-radius: clamp(2rem, 5vw, 2.75rem) 0 clamp(2rem, 5vw, 2.75rem) 0;
    gap: 1.1rem;
  }

  .contatti-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: min(16rem, 78vw);
    margin-inline: auto;
    gap: 0.85rem;
  }

  .contatti-grid > :nth-child(3) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .contatto-card,
  lenia-contatto-card.contatto-card {
    min-height: clamp(220px, 55vw, 250px);
    padding: 1.15rem 0.85rem 1rem;
  }

  .testimonials-grid {
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
    border-radius: clamp(1.5rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2rem) 0;
  }

  .valori-card__img-wrap {
    width: min(72%, 200px);
    margin-top: -2.25rem;
    margin-right: -0.5rem;
    border-radius: 1.75rem 0 1.75rem 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .site-footer__logo img {
    margin-inline: auto;
  }

  .site-footer__nav {
    align-items: center;
  }

  .site-footer__social-links {
    justify-content: center;
  }

  .site-footer__bottom {
    font-size: 0.7rem;
    line-height: 1.5;
    padding-inline: 0.5rem;
  }
}

/* Small phone */
@media (max-width: 400px) {
  .site-header__logo img {
    height: 32px;
  }

  .site-nav {
    width: 100%;
  }

  .hero-slide__title {
    font-size: 1.2rem;
  }

  .section-perche-facciamo {
    --perche-visual-w: min(240px, 88vw);
  }

  .section-perche-facciamo__box {
    padding: 1.5rem 1rem 1.75rem;
  }

  .section-perche-facciamo__text-secondary {
    max-width: 100%;
  }

  .section-perche-facciamo__visual {
    width: min(240px, 88vw);
    border-radius: 0 1.5rem 0 1.5rem;
  }

  .section-banner__marquee-track span {
    letter-spacing: 0.02em;
  }

  .section-banner__turbines img {
    transform: translateY(0.5rem);
  }
}
