body {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
  overflow-x: hidden;
}

p {
  line-height: 1.4;
}

a {
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}

.no-scroll {
  overflow: hidden;
}


/* Preloader full screen */
#preloader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
  opacity: 1;
  pointer-events: all;
}

.logo {
  width: 180px;
}

/* === TOPBAR PREMIUM – COLORE ORIGINALE === */

/* ===== TOPBAR FISSA ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px; /* regola secondo le tue esigenze */
  background: linear-gradient(135deg, #397dbf, #2f69a3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Ubuntu", sans-serif;
  z-index: 1100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.topbar-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.topbar-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 100px;
}

.topbar-contacts p {
  font-size: 15px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.topbar-contacts a {
  color: white;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}
.topbar-contacts a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.topbar-contacts a:hover::after {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 50px; /* subito sotto la topbar */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, background 0.35s ease;
  z-index: 1000;
}

/* Nascondi header quando scroll giù */
.header.hide-header {
  transform: translateY(-120%);
}

/* Container header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Branding */
.branding {
  display: flex;
  align-items: center;
  gap: 16px;
}
.branding img {
  width: 50px;
  transition: all 0.4s ease;
}
.branding h1 {
  font-size: 20px;
  margin: 0;
  font-family: "Orbitron", sans-serif;
  color: #d32f2f;
}
.branding p {
  font-size: 11px;
  margin: 0;
  font-family: "Orbitron", sans-serif;
  color: #d32f2f;
}
.blu {
  color: #397dbf;
}

/* Menu */
.menu ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.menu li {
  position: relative;
}
.menu a {
  font-size: 14px;
  font-weight: bold;
  color: #397dbf;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.3s ease;
}
.menu li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #397dbf, #d32f2f);
  transform: translateX(-50%);
  transition: width 0.35s ease;
  border-radius: 2px;
}
.menu li:hover::after {
  width: 100%;
}
.menu a:hover {
  color: #d32f2f;
}

/* Hamburger */
.hamburger {
  display: none; /* visibile solo su mobile tramite media query */
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #397dbf;
  border-radius: 3px;
  transition: all 0.35s ease;
}
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 7px;
}
.hamburger span:nth-child(3) {
  top: 14px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 7px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 7px;
}

.hamburger,
.hamburger.active,
.hamburger:focus,
.hamburger:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* BACKGROUND + OVERLAY */
.prima-modern {
  background-image: url("Transizione\ di\ Colore_\ Punto\ Clima.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 800px;
  display: flex;
  align-items: center;
  padding: 150px 20px 60px;
}

.overlay-prima-modern {
  max-width: 1100px;
  margin: auto;
  padding: 60px 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.393);
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: fadeInUp 1s ease forwards;
}

/* Titolo */
.prima-modern h2 {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #013440;
  margin-bottom: 20px;
}

/* Linea elegante */
.elemhr-modern {
  width: 140px;
  height: 3px;
  border: none;
  margin: 10px auto 30px;
  background: linear-gradient(90deg, #05647a, #0aa1c0);
  border-radius: 3px;
}

/* Testi */
.overlay-prima-modern p {
  max-width: 850px;
  margin: 15px auto;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* GRID ICONS */
.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 40px;
  margin-top: 50px;
  justify-items: center;
}

/* ICON ITEM */
.icon-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.35s ease;
}

.icon-item i {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.35s ease, transform 0.35s ease;
}

/* Hover animato */
.icon-item a:hover i {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Testo icone */
.icon-item p {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #013440;
  letter-spacing: 0.08em;
}

/* Animazione overlay */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tecnica {
  background: linear-gradient(135deg, #f5f5f5, #f5f5f5);
  text-align: center;
  padding: 60px 20px;
  margin-top: -1px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.tecnica > h3 {
  font-size: 30px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #013440; /* blu clima */
  font-family: "Ubuntu", sans-serif;
}

.tecnica > hr.elemhr {
  height: 4px;
  width: 0;
  margin: 0 auto 30px;
  background: linear-gradient(90deg, #397dbf, #d32f2f);
  border: none;
  border-radius: 4px;
  animation: growLine 1.5s forwards;
  transition: all 0.7s ease-in-out;
}

@keyframes growLine {
  from {
    width: 0;
  }
  to {
    width: 180px;
  }
}

/* Paragrafo introduttivo */
.tecnica p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 40px;
  color: #333;
}

/* CTA */
.cta-tecnica {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.btn-cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s ease;
  color: white;
}

.btn-preventivo {
  background: linear-gradient(90deg, #397dbf, #0aa1c0);
}

.btn-preventivo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-interventi {
  background: linear-gradient(90deg, #d32f2f, #f57c00);
}

.btn-interventi:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Galleria loghi */
.galtec {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px; /* leggermente più compatto */
}

.galtec img {
  width: 140px;
  height: auto;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease,
    opacity 0.6s ease;
  filter: grayscale(30%);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.galtec img.visible {
  opacity: 1;
  transform: translateY(0);
}

.galtec img:hover {
  transform: scale(1.2);
}

.caldaie {
  position: relative; /* necessario per posizionare overlay e immagine */
  width: 100%;
  color: white;
  font-family: "Ubuntu", sans-serif;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  background: url("backgroundw.jpeg") center center/cover no-repeat; /* immagine sotto */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  transition: background 0.3s ease;
}

/* Overlay leggero sopra l'immagine */
.caldaie::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.858); /* rende leggibile il testo */
  pointer-events: none;
  z-index: 0;
}

/* Contenuti sopra overlay */
.caldaie-intro,
.galleria,
.elemento {
  position: relative;
  z-index: 1;
}

.caldaie-intro {
  max-width: 850px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.caldaie-intro h2 {
  font-size: 36px;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 20px;
}

.caldaie-intro hr.elemhr {
  border: none;
  height: 5px;
  width: 140px;
  margin: 0 auto 35px;
  border-radius: 4px;
  background: linear-gradient(90deg, #397dbf, #e44b34);
  animation: growLineCaldaie 1.5s forwards;
}

.caldaie-intro p {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
}

/* Galleria a fantasia */
.galleria {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  perspective: 1200px;
}

.elemento {
  width: 320px;
  background: rgba(255, 255, 255, 0.722);
  border-radius: 25px;
  padding: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.5s ease, transform 0.5s ease;
  cursor: pointer;
  position: relative;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.65)
  );
}

.elemento:hover {
  transform: translateY(-15px) rotateY(5deg) rotateX(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(0.95);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.img-wrapper i {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 28px;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  background: rgba(247, 201, 72, 0.9);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s ease, background 0.35s ease;
}

.elemento:hover .img-wrapper img {
  filter: brightness(1);
}

.elemento:hover .img-wrapper i {
  transform: scale(1.3) rotate(15deg);
  background: #ffeb7d;
}

.elemento h3 {
  font-size: 20px;
  font-weight: 300;
  margin: 15px 0 10px;
  color: #333;
}

.elemento p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  color: #333;
}

.centrali {
  position: relative;
  width: 100%;
  padding: 80px 20px 50px;
  color: #333;
  font-family: "Ubuntu", sans-serif;
  text-align: center;
  overflow: hidden;
  background: url("Transizione\ di\ Colore_\ Punto\ Clima.webp") center
    center/cover no-repeat;
}

/* Overlay leggero */
.centrali::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.561);
  pointer-events: none;
  z-index: 0;
}

/* Contenuti sopra overlay */
.centrali-intro,
.galleria,
.elemento {
  position: relative;
  z-index: 1;
}

.centrali-intro {
  max-width: 850px;
  margin: 0 auto 60px;
}

.centrali-intro h2 {
  font-size: 36px;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 20px;
}

.centrali-intro hr.elemhr {
  border: none;
  height: 5px;
  width: 140px;
  margin: 0 auto 35px;
  border-radius: 4px;
  background: linear-gradient(90deg, #397dbf, #e44b34);
  animation: growLineCentrali 1.5s forwards;
}

@keyframes growLineCentrali {
  from {
    width: 0;
  }
  to {
    width: 140px;
  }
}

.centrali-intro p {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
}

/* Galleria */
.galleria {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  perspective: 1200px;
}

.elemento {
  width: 320px;
  background: rgba(255, 255, 255, 0.802);
  border-radius: 25px;
  padding: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.5s ease, transform 0.5s ease;
  cursor: pointer;
  position: relative;
}

.elemento:hover {
  transform: translateY(-15px) rotateY(5deg) rotateX(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(0.95);
}

.img-wrapper i {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 28px;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  background: rgba(247, 201, 72, 0.9);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s ease, background 0.35s ease;
}

.elemento:hover .img-wrapper img {
  filter: brightness(1);
}

.elemento:hover .img-wrapper i {
  background: #ffeb7d;
}

.elemento h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 15px 0 10px;
  color: #333;
}

.elemento p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  color: #333;
}

.bruciatori {
  width: 100%;
  background: url("bruciatore1.jpeg") center center/cover no-repeat; /* immagine di sfondo */
  color: #222;
  font-family: "Ubuntu", sans-serif;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  transition: background 0.3s ease;
}

/* Overlay leggero sopra l'immagine */
.bruciatori::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.851); /* regola trasparenza */
  pointer-events: none;
  z-index: 0;
}

/* Contenuti sopra overlay */
.bruciatori-intro,
.galleria,
.elemento {
  position: relative;
  z-index: 1;
}

.bruciatori-intro {
  max-width: 850px;
  margin: 0 auto 60px;
}

.bruciatori-intro h2 {
  font-size: 36px;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #fff; /* testo più leggibile su overlay */
}

.bruciatori-intro hr.elemhr {
  border: none;
  height: 5px;
  width: 140px;
  margin: 0 auto 35px;
  border-radius: 4px;
  background: linear-gradient(90deg, #397dbf, #e44b34);
}

.bruciatori-intro p {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
  color: #fff;
}

/* Galleria a 2x2 */
.galleria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.elemento {
  width: 300px;
  background: rgba(
    255,
    255,
    255,
    0.85
  ); /* leggera trasparenza per contrasto su overlay */
  border-radius: 25px;
  padding: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease, transform 0.5s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.elemento:hover {
  transform: translateY(-15px) rotateY(5deg) rotateX(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  filter: brightness(0.95);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.img-wrapper i {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 28px;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  background: rgba(247, 201, 72, 0.9);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s ease, background 0.35s ease;
}

.elemento:hover .img-wrapper img {
  transform: scale(1.08);
  filter: brightness(1);
}

.elemento:hover .img-wrapper i {
  transform: scale(1.3) rotate(15deg);
  background: #ffeb7d;
}

.elemento h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 15px 0 10px;
  color: #222;
}

.elemento p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  color: #222;
}
.rinnovabile {
  width: 100%;
  background: url("Transizione\ di\ Colore_\ Punto\ Clima.webp") center
    center/cover no-repeat; /* immagine di sfondo */
  color: #333;
  font-family: "Ubuntu", sans-serif;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

/* Overlay leggero sopra l'immagine */
.rinnovabile::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.448); /* overlay bianco leggero */
  pointer-events: none;
  z-index: 0;
}

/* Contenuti sopra overlay */
.rinnovabile-intro,
.galleria,
.elemento {
  position: relative;
  z-index: 1;
}

.rinnovabile-intro {
  max-width: 850px;
  margin: 0 auto 60px;
}

.rinnovabile-intro h2 {
  font-size: 36px;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 20px;
}

.rinnovabile-intro hr.elemhr {
  border: none;
  height: 5px;
  width: 140px;
  margin: 0 auto 35px;
  border-radius: 4px;
  background: linear-gradient(90deg, #397dbf, #e44b34);
}

.rinnovabile-intro p {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
  color: #222;
}

/* Galleria */
.galleria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.elemento {
  width: 300px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 25px;
  padding: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease, transform 0.5s ease;
  cursor: pointer;
}

.elemento:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(0.95);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.img-wrapper i {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 28px;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  background: rgba(247, 201, 72, 0.9);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s ease, background 0.35s ease;
}

.elemento:hover .img-wrapper img {
  transform: scale(1.08);
  filter: brightness(1);
}

.elemento:hover .img-wrapper i {
  transform: scale(1.3) rotate(15deg);
  background: #ffeb7d;
}

.elemento h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 15px 0 10px;
  color: #222;
}

.elemento p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  color: #222;
}

.clima {
  position: relative;
  width: 100%;
  color: white;
  font-family: "Ubuntu", sans-serif;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  background: url("zefiro.webp") center center/cover no-repeat;
  background-attachment: fixed;
  transition: background 0.3s ease;
}

/* Overlay leggero sopra l'immagine */
.clima::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 0;
}

/* Contenuti sopra overlay */
.clima-intro,
.galleria,
.elemento {
  position: relative;
  z-index: 1;
}

.clima-intro {
  max-width: 850px;
  margin: 0 auto 60px;
}

.clima-intro h2 {
  font-size: 36px;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 20px;
}

.clima-intro hr.elemhr {
  border: none;
  height: 5px;
  width: 140px;
  margin: 0 auto 35px;
  border-radius: 4px;
  background: linear-gradient(90deg, #397dbf, #e44b34);
}

.clima-intro p {
  font-size: 18px;
  font-family: 300;
  line-height: 1.7;
  opacity: 0.95;
}

/* Galleria */
.galleria {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  perspective: 1200px;
}

.elemento {
  width: 320px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 25px;
  padding: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.5s ease, transform 0.5s ease;
  cursor: pointer;
  position: relative;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.65)
  );
}

.elemento:hover {
  transform: translateY(-15px) rotateY(5deg) rotateX(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(0.95);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.img-wrapper i {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 28px;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  background: rgba(247, 201, 72, 0.9);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s ease, background 0.35s ease;
}

.elemento:hover .img-wrapper img {
  filter: brightness(1);
  box-shadow: 0 0 20px rgba(247, 201, 72, 0.5);
}

.elemento:hover .img-wrapper i {
  transform: scale(1.3) rotate(15deg);
  background: #ffeb7d;
}

.elemento h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 15px 0 10px;
  color: #333;
}

.elemento p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.95;
  color: #333;
}

.servizi3 {
  position: relative;
  background-image: url("greenenrgy.webp");
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.servizi3 .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 60, 60, 0.1); /* leggero overlay scuro */
  filter: brightness(1.1);
  z-index: 1;
}

.servizi3 > p {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 900px;
  line-height: 1.9;
  color: #333; /* testo bianco su overlay */
  font-size: 24px;
  font-weight: 400;
  padding: 25px 30px;
  background-color: rgba(255, 255, 255, 0.1); /* trasparenza elegante */
  border-radius: 12px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.6s ease;
  backdrop-filter: blur(3px);
  font-family: "Ubuntu", sans-serif;
}

.servizi3-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Testo sinistro */
.servizi3-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  background: rgba(255, 255, 255, 0.805);
  padding: 24px 28px;
  border-radius: 12px;
  backdrop-filter: blur(1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.servizi3-text a {
  display: inline-block;
  margin-top: 16px;
  margin-right: 12px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 400;
  font-family: "Ubuntu", sans-serif;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: #397dbf; /* blu logo */
  color: #ffffff;
}

.btn-primary:hover {
  background: #0055a5; /* blu più chiaro */
  transform: translateY(-1px);
}

.btn-secondary {
  background: #d32f2f; /* rosso logo */
  color: #ffffff;
  border-color: #d32f2f;
}

.btn-secondary:hover {
  background: #e53939; /* rosso più chiaro */
  transform: translateY(-1px);
}

/* Contatori */
.servizi3-stats {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 26px;
}

.stat {
  color: #333;
  background: rgba(255, 255, 255, 0.805);
  padding: 20px 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateX(40px);
}

.stat.visible {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stat span {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: #333;
  letter-spacing: 1px;
}

.stat small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #333;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.stat small i {
  margin-right: 6px;
  opacity: 0.75;
  font-size: 20px;
  color: #000;
}

/* CONTENITORE PRINCIPALE */
.servizi-scacchiera {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* OGNI BLOCCO SCACCHIERA */
.servizio-scacchiera {
  display: flex;
  gap: 20px;
  align-items: stretch; /* testo e immagine stessa altezza */
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servizio-scacchiera:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.servizio-scacchiera.reverse {
  flex-direction: row-reverse;
}

/* TESTO */
.servizio-testo {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  background-color: var(--bg-color, rgba(0, 0, 0, 0.85));
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform: translateX(-50px);
  opacity: 0;
  border-radius: 12px 0 0 12px; /* leggero arrotondamento solo lato immagine */
}

.servizio-scacchiera.reverse .servizio-testo {
  border-radius: 0 12px 12px 0;
}

.servizio-testo.animate {
  transform: translateX(0);
  opacity: 1;
}

/* TITOLI */
.servizio-testo h3 {
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  position: relative;
}

/* PARAGRAFI */
.servizio-testo p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.servizio-testo.animate p {
  opacity: 1;
  transform: translateY(0);
}

.servizio-testo.animate p:nth-child(2) {
  transition-delay: 0.2s;
}
.servizio-testo.animate p:nth-child(3) {
  transition-delay: 0.4s;
}
.servizio-testo.animate p:nth-child(4) {
  transition-delay: 0.6s;
}

/* IMMAGINI */
.servizio-immagine {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: 0 12px 12px 0;
}

.servizio-scacchiera.reverse .servizio-immagine {
  border-radius: 12px 0 0 12px;
}

.servizio-immagine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease, filter 1s ease;
  filter: brightness(0.85);
}

.servizio-immagine img.active {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
}

.servizio-immagine:hover img.active {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.prezzo {
  text-align: center;
  background-image: url(fotocasasistema.jpeg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  height: 50vh;
  padding: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white; /* opzionale, se metti del testo */
}

.bio {
  background-color: #dfdfdf;
  padding: 80px 20px;
}

.bio-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 50px;
}

.bio-image img {
  max-width: 350px;
  width: 100%;
  height: auto;
  display: block;
  margin: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}
.bio-image img:hover {
  transform: scale(1.03);
}

.bio-content {
  flex: 1;
  min-width: 300px;
  color: #222;
}

.bio-content h2 {
  font-size: 30px;
  margin-bottom: 15px;
  color: #000;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bio-content hr {
  border: none;
  height: 3px;
  background-color: #0077b6;
  width: 60px;
  margin: 0 0 25px 0;
}

.bio-content p {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  max-width: 800px;
}

.partner-slider {
  padding: 60px 20px;
  background-color: #fffdfd;
  text-align: center;
}

.partner-slider h2 {
  font-size: 30px;
  color: black;
  margin-top: -30px;
}

.partner-slider hr {
  width: 60px;
  margin: 0 auto 30px;
  border: 1px solid black;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 80px;
  padding: 20px 0;
}

.partner-logos > img {
  height: 90px;
  max-width: 160px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logos > img:hover {
  transform: scale(1.05);
}

/* CONTATTI – BACKGROUND CHIARO */
.contatti {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #fffdfd; /* background chiaro */
  color: black;
  font-family: "Helvetica Neue", sans-serif;
  padding: 60px 20px;
  gap: 40px;
  position: relative;
}

/* SEPARATORE VERTICALE */
.separator {
  width: 1px;
  background: #333;
  border-radius: 2px;
  margin: 0 20px;
  flex-shrink: 0;
}

/* SINISTRA – INFO CONTATTI */
.contsx {
  flex: 1 1 300px;
  padding: 20px;
}

.contsx > h3 {
  font-size: 30px;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-family: "Orbitron", sans-serif;
}

.contsx i {
  font-size: 22px;
  color: #333; /* blu brand */
  transition: transform 0.3s;
}

.contsx i:hover {
  transform: scale(1.2);
}

.contsx p,
.contsx li {
  font-size: 18px;
  margin: 10px 0;
  line-height: 1.5;
}

.contsx > ul {
  list-style: none;
  padding-left: 0;
}

.contsx > p > a {
  color: #333; /* blu brand */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s;
}

.contsx > p > a:hover {
  color: #d32f2f; /* hover rosso brand */
  transform: translateX(3px);
  text-decoration: underline;
}

/* SOCIAL ICONS */
.footer-social {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.footer-social a i {
  font-size: 32px;
  color: #397dbf;
  transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover i {
  color: #d32f2f;
  transform: scale(1.3);
}

/* DESTRA – FORM */
.contdx {
  flex: 1 1 400px;
  background-color: #f7f7f7;
  padding: 40px 30px;
  border-radius: 12px;
  color: #333;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.contdx:hover {
  transform: translateY(-3px);
}

.contdx h2 {
  margin-bottom: 25px;
  font-size: 24px;
  color: #222;
  text-align: center;
}

form label {
  display: block;
  font-weight: 500;
  margin-top: 15px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'Ubuntu', Courier, monospace;
}

input:focus,
textarea:focus {
  border-color: #397dbf; /* blu brand */
  box-shadow: 0 0 10px rgba(57, 125, 191, 0.3);
  outline: none;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

button {
  background: linear-gradient(90deg, #397dbf, #0aa1c0);
  color: white;
  padding: 14px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.2s;
}

button:hover {
  background: linear-gradient(90deg, #0aa1c0, #397dbf);
  transform: translateY(-2px);
}

/* SUCCESS MESSAGE */
.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.mini-footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 10px 10px;
  font-size: 0.7em;
  font-family: "Helvetica Neue", sans-serif;
}

.mini-footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 4px;
}

.mini-footer a:hover {
  color: #00bfff;
  text-decoration: underline;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* STILE BASE PER ENTRAMBE LE ICONE */
.whatsapp-fissa {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  font-size: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2000;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

/* STILI SPECIFICI */
.whatsapp-fissa {
  right: 15px;
  background-color: rgba(37, 211, 102, 0.85);
}

.home-fissa {
  left: 15px;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.home-fissa.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1e1e1e;
  color: #f1f1f1;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  pointer-events: auto;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 300px;
  line-height: 1.5;
}

.cookie-banner a {
  color: #4fc3f7;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner button {
  background-color: #4fc3f7;
  border: none;
  color: #000;
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #29b6f6;
}

.cookie-banner button.secondary {
  background-color: transparent;
  border: 2px solid #4fc3f7;
  color: #4fc3f7;
}

.cookie-banner button.secondary:hover {
  background-color: rgba(79, 195, 247, 0.1);
}

@media (max-width: 768px) {
  .body,
  html {
    overflow-x: hidden;
  }
  #home {
    background-color: white;
  }
  @media (hover: none) {
  .menu a {
    color: #397dbf; /* colore normale sempre */
  }
  .menu a:active,
  .menu a:focus {
    color: #d32f2f; /* colore temporaneo solo al tap */
  }
}


  *:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .logo {
    width: 120px; /* o anche 100px se vuoi più compatto */
  }

  .topbar {
    display: none;
  }
  .topbar-contacts {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    display: none;
  }

  .topbar-contacts p {
    font-size: 14px;
  }

  /* HEADER FISSO E DIMENSIONI ADATTATE */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
  }

  .branding img {
    width: 48px;
  }

  .branding h1 {
    font-size: 20px;
  }
  .branding p {
    font-size: 10px;
  }

  .hamburger {
    display: block; /* visibile solo su mobile */
  }

.menu {
  position: fixed;
  right: 16px;
  width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 1101;
}

.menu.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


  .menu ul {
    flex-direction: column;
    gap: 0;
  }

  .menu li {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .menu li::after {
  display: none;
}


  .menu li:last-child {
    border-bottom: none;
  }

  .overlay-prima-modern {
    padding: 40px 20px;
    border-radius: 18px;
  }

  .prima-modern h2 {
    font-size: clamp(22px, 5vw, 28px);
    line-height: 1.2;
  }

  .overlay-prima-modern p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* GRID ICONS MOBILE: 2 in fila, 5 totale */
  .icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Ultima icona centrata */
  .icons-grid .icon-item:nth-child(5) {
    grid-column: 1 / -1; /* prende tutta la riga */
    justify-self: center;
  }

  .icon-item i {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }

  .icon-item p {
    font-size: 13px;
  }

  .tecnica {
    padding: 40px 20px;
  }

  /* Titolo più piccolo */
  .tecnica > h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  /* Paragrafo adattato */
  .tecnica p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  /* CTA più compatte */
  .cta-tecnica {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
  }

  .galtec img {
    width: 120px; /* ridimensionamento per mobile */
    margin: auto;
  }

  .caldaie {
    padding: 60px 15px;
    background-attachment: scroll; /* fixed dà problemi su mobile */
  }

  .caldaie-intro {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .caldaie-intro h2 {
    font-size: 28px;
  }

  .caldaie-intro hr.elemhr {
    width: 100px;
    height: 4px;
  }

  .caldaie-intro p {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    width: 90%;
    margin: 0 auto 30px;
  }

  .galleria {
    flex-direction: column; /* una sotto l'altra */
    gap: 30px;
    perspective: none;
  }

  .elemento {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 15px;
  }

  .img-wrapper img {
    height: 200px;
    border-radius: 15px;
  }

  .img-wrapper i {
    width: 45px;
    height: 45px;
    font-size: 22px;
    line-height: 45px;
  }

  .elemento h3 {
    font-size: 20px;
  }

  .elemento p {
    font-size: 15px;
  }

  /* CENTRALI TERMICHE */
  .centrali {
    padding: 50px 15px;
  }

  .centrali-intro {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .centrali-intro h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .centrali-intro p {
    font-size: 16px;
    line-height: 1.6;
    width: 95%;
    margin: 15px auto;
    text-align: center;
  }

  .centrali .galleria {
    flex-direction: column;
    gap: 25px;
    perspective: none; /* rimuove effetto 3D per mobile */
  }

  .centrali .elemento {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .centrali .img-wrapper img {
    height: 220px;
    object-fit: cover;
  }

  .centrali .elemento h3 {
    font-size: 20px;
    margin: 12px 0 8px;
    text-align: center;
  }

  .centrali .elemento p {
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
  }

  .centrali .img-wrapper i {
    top: 8px;
    left: 8px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
  }

  /* BRUCIATORI */
  .bruciatori {
    padding: 50px 15px;
    background-attachment: scroll; /* evita problemi su mobile */
  }

  .bruciatori-intro {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .bruciatori-intro h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .bruciatori-intro p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 95%;
    margin: 10px auto;
    text-align: center;
  }

  /* Galleria verticale con elementi centrati */
  .bruciatori .galleria {
    flex-direction: column;
    gap: 25px;
    perspective: none; /* rimuove effetto 3D per mobile */
  }

  .bruciatori .elemento {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .bruciatori .img-wrapper img {
    height: 200px;
    object-fit: cover;
  }

  .bruciatori .elemento h3 {
    font-size: 20px;
    margin: 12px 0 8px;
    text-align: center;
  }

  .bruciatori .elemento p {
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
  }

  .bruciatori .img-wrapper i {
    top: 8px;
    left: 8px;
    width: 50px;
    height: 50px;
    line-height: 50px;
  }
  /* RINNOVABILI */
  .rinnovabile {
    padding: 50px 15px;
    background-attachment: scroll; /* evita problemi su mobile */
  }

  .rinnovabile-intro {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .rinnovabile-intro h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .rinnovabile-intro p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 95%;
    margin: 10px auto;
    text-align: center;
  }

  /* Galleria verticale con elementi centrati */
  .rinnovabile .galleria {
    flex-direction: column;
    gap: 25px;
  }

  .rinnovabile .elemento {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .rinnovabile .img-wrapper img {
    height: 200px;
    object-fit: cover;
  }

  .rinnovabile .elemento h3 {
    font-size: 20px;
    margin: 12px 0 8px;
    text-align: center;
  }

  .rinnovabile .elemento p {
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
  }

  .rinnovabile .img-wrapper i {
    top: 8px;
    left: 8px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
  }

  /* CLIMATIZZAZIONE */
  .clima {
    padding: 50px 15px;
    background-attachment: scroll; /* evita problemi su mobile */
  }

  .clima-intro {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .clima-intro h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .clima-intro p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 95%;
    margin: 10px auto;
    text-align: center;
  }

  /* Galleria verticale con elementi centrati */
  .clima .galleria {
    flex-direction: column;
    gap: 25px;
  }

  .clima .elemento {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .clima .img-wrapper img {
    height: 200px;
    object-fit: cover;
  }

  .clima .elemento h3 {
    font-size: 20px;
    margin: 12px 0 8px;
    text-align: center;
  }

  .clima .elemento p {
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
  }

  .clima .img-wrapper i {
    top: 8px;
    left: 8px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
  }

  .servizi3 {
    display: none;
    height: auto;
    padding: 40px 20px;
    background-attachment: scroll; /* migliora prestazioni su mobile */
  }

  /* Ogni blocco diventa colonna */
  .servizio-scacchiera,
  .servizio-scacchiera.reverse {
    flex-direction: column;
    gap: 20px;
  }

  /* Nascondi le immagini */
  .servizio-immagine {
    display: none;
  }

  /* Il testo occupa tutta la larghezza */
  .servizio-testo {
    flex: 1 1 100%;
    padding: 30px 20px;
    transform: translateX(0); /* rimuove l'animazione laterale */
    opacity: 1; /* mostra subito il testo */
  }

  .servizio-testo p {
    font-size: 16px;
    line-height: 1.6;
    transform: translateY(0);
    opacity: 1;
    transition: none; /* niente animazioni su mobile */
  }

  /* Eventuali titoli più grandi e leggibili su mobile */
  .servizio-testo h3 {
    font-size: 24px;
    gap: 10px;
  }

  .bio {
    padding: 60px 15px;
  }

  .bio-container {
    flex-direction: column;
    gap: 35px;
    text-align: center;
  }

  /* Logo */
  .bio-image img {
    max-width: 220px;
  }

  /* Contenuto */
  .bio-content {
    min-width: 100%;
  }

  .bio-content h2 {
    font-size: 24px;
  }

  .bio-content hr {
    margin: 0 auto 20px auto;
  }

  .bio-content p {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }

  .partner-slider {
    padding: 50px 15px;
  }

  .partner-slider h2 {
    font-size: 24px;
    margin-top: 0;
  }

  .partner-slider hr {
    margin-bottom: 25px;
  }

  /* griglia 2 colonne */
  .partner-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 20px;
  }

  .partner-logos > img {
    height: 70px;
    max-width: 140px;
    margin: auto;
  }

  /* Contatti container */
  .contatti {
    flex-direction: column;
    padding: 40px 15px;
    gap: 30px;
  }

  .contsx,
  .contdx {
    flex: 1 1 100%;
    width: 100%;
    padding: 20px;
  }

  .contsx > h3 {
    font-size: 22px;
    justify-content: center;
    text-align: center;
  }

  .contsx p,
  .contsx li {
    font-size: 16px;
    text-align: center;
  }

  .contsx ul {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social a i {
    font-size: 26px;
  }

  .contdx {
    padding: 25px 20px;
  }

  .contdx h2 {
    text-align: center;
    font-size: 20px;
  }

  form label {
    font-size: 15px;
  }

  input,
  textarea {
    font-size: 15px;
  }

  button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }
  button:hover {
    background: #0077b6;
  }

  .separator {
    display: none;
  }

  /* Mini-footer */

  /* MINI FOOTER */
  .mini-footer {
    padding: 20px 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .mini-footer p {
    margin: 5px 0;
  }

  .mini-footer a {
    display: inline-block;
    margin: 4px 3px;
  }

  /* WHATSAPP FLOATING */
  .whatsapp-fissa {
    width: 46px;
    height: 46px;
    font-size: 22px;
    bottom: 15px;
    right: 12px;
  }

  /* COOKIE BANNER */
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 18px 16px;
    font-size: 14px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .cookie-banner p {
    text-align: center;
    flex: 1 1 auto;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner button {
    flex: 1;
    padding: 12px 10px;
    font-size: 14px;
  }

  /* DISABILITA HOVER SU MOBILE */
  .mini-footer a:hover,
  .cookie-banner button:hover {
    color: inherit;
    background-color: inherit;
  }
}
