/* ==========================================================================
   1. VARIABILI GLOBALI (COLORI, FONT E RESET)
   ========================================================================== */
:root {
  /* Anteprima con Colore Aziendale Ufficiale (#2e3583) come sfondo principale */
  --brand: #5260f5;      /* Accento blu/indigo luminoso per staccare su #2e3583 */
  --deep: #1e235c;       /* Blu aziendale scurito per sezioni a contrasto */
  --bg: #2e3583;         /* Sfondo principale: colore aziendale ufficiale */
  --soft: #384099;       /* Sfondo card e aree secondarie */
  --ink: #ffffff;        /* Testo principale bianco */
  --mut: #ccd1f5;        /* Testo secondario chiaro leggibile su #2e3583 */
  --line: #4952ad;       /* Bordi e divisori visibili su #2e3583 */

  /* Palette originale salvata per eventuale ripristino:
  --brand: #4854d9;
  --deep: #0c0e1e;
  --bg: #101225;
  --soft: #161938;
  --ink: #eceefa;
  --mut: #a3a7c4;
  --line: #2a2e5c;
  */
  
  /* Font del progetto */
  --d: 'Bricolage Grotesque', 'Segoe UI', Arial, sans-serif; /* Per titoli */
  --b: 'Manrope', 'Segoe UI', Arial, sans-serif;             /* Per testi di paragrafo */

  box-sizing: border-box;
  /* Margini di sicurezza per schermi con notch (iPhone ecc.) */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
   2. IMPOSTAZIONI GENERALI E TIPOGRAFIA
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Offset per non far coprire i titoli dalla navbar fissa quando si clicca un link */
}

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 12% 8%, rgba(82, 96, 245, 0.25), transparent 65%),
    radial-gradient(900px 560px at 88% 82%, rgba(0, 161, 228, 0.14), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.65 var(--b);
  overflow-x: hidden; /* Evita lo scroll orizzontale anomalo */
}

h1, h2, h3 {
  font-family: var(--d);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

picture {
  display: contents;
}

/* AccessibilitÃ  visiva per navigazione tramite tastiera (Tab) */
:focus-visible {
  outline: 3px solid #7b84e0;
  outline-offset: 3px;
}

/* Contenitore a larghezza massima centrato */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   3. COMPONENTI COMUNI (BOTTONI, PLACEHOLDER, ANIMAZIONI REVEAL)
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 99px;
  font: 600 15px var(--b);
  background: var(--brand);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  will-change: transform;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.24) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover {
  background: #6471ff;
  box-shadow: 0 14px 34px -8px rgba(0, 161, 228, 0.55), 0 0 22px rgba(82, 96, 245, 0.45);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Placeholder grafici provvisori per immagini mancanti */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe2f3, #bcc1e3);
  isolation: isolate;
}

.ph:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(46, 53, 131, 0.1) 0 1px, transparent 1px 28px),
              repeating-linear-gradient(90deg, rgba(46, 53, 131, 0.1) 0 1px, transparent 1px 28px);
  z-index: -1;
}

.ph:after {
  content: attr(data-l); /* Mostra il testo presente in data-l="..." */
  position: absolute;
  left: 14px;
  bottom: 12px;
  font: 600 12px var(--b);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 10px;
  border-radius: 99px;
}

/* Classe usata da IntersectionObserver per l'animazione di entrata al scroll */
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   4. BARRA DI NAVIGAZIONE (NAVBAR)
   ========================================================================== */
nav {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  right: auto;
  width: min(94%, 1180px);
  max-width: 1180px;
  min-height: 58px;
  z-index: 50;
  padding: 9px 10px 9px 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
  clip-path: inset(0 0% 0 0% round 999px);
  will-change: transform, opacity, clip-path;
  transition:
    clip-path 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

@media (min-width: 901px) {
  nav .logo,
  nav .links,
  nav .nav-cta {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: transform, opacity;
    transition:
      opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
  }

  /* Chiusura continua a cerchio verso il centro a 60fps (zero reflow) */
  nav.s {
    clip-path: inset(0 calc(50% - 29px) 0 calc(50% - 29px) round 999px);
    transform: translate3d(-50%, -4px, 0) scale(0.72);
    opacity: 0;
    pointer-events: none;
    transition:
      clip-path 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0s,
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
      opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  }

  nav.s .logo {
    opacity: 0;
    transform: translate3d(24px, 0, 0) scale(0.75);
    pointer-events: none;
    transition:
      opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1) 0s,
      transform 0.26s cubic-bezier(0.22, 1, 0.36, 1) 0s;
  }

  nav.s .links {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.8);
    pointer-events: none;
    transition:
      opacity 0.16s cubic-bezier(0.22, 1, 0.36, 1) 0s,
      transform 0.24s cubic-bezier(0.22, 1, 0.36, 1) 0s;
  }

  nav.s .nav-cta {
    opacity: 0;
    transform: translate3d(-24px, 0, 0) scale(0.75);
    pointer-events: none;
    transition:
      opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1) 0s,
      transform 0.26s cubic-bezier(0.22, 1, 0.36, 1) 0s;
  }
}

/* Logo nella capsula: proporzionato e nitido */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  height: 44px;
  width: auto !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.links {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
}

.links a {
  position: relative;
  padding: 4px 0;
}

/* Linea animata sotto i link della navbar all'hover */
.links a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}

.links a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

.burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 140px 0 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(850px 520px at 82% 22%, rgba(0, 161, 228, 0.22), transparent 68%),
    radial-gradient(700px 500px at 18% 78%, rgba(82, 96, 245, 0.34), transparent 70%),
    transparent;
}

/* Griglia tecnica sottile animata sullo sfondo della Hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 80%);
  animation: heroGridFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGridFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  100% { transform: translate3d(-24px, -18px, 0) scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  position: relative;
}

/* Badge Eyebrow Daikin Partner Ufficiale - Versione Premium ad Alta VisibilitÃ  */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px 8px 10px;
  background: rgba(22, 25, 56, 0.85);
  border: 1.5px solid rgba(142, 151, 240, 0.35);
  border-radius: 999px;
  margin-bottom: 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #eceefa;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: all 0.28s ease;
  width: fit-content;
  max-width: 100%;
}

.hero-badge-mobile {
  display: none;
}

.hero-badge:hover {
  background: rgba(22, 25, 56, 0.98);
  border-color: rgba(0, 161, 228, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 161, 228, 0.3);
}

.hero-badge-logo {
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.hero-badge-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.hero-badge-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.hero-badge-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.hero-badge-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00A1E4; /* Daikin Cyan */
  line-height: 1.2;
}

.hero-badge-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f4ff;
  line-height: 1.25;
}

.hero-badge-arrow {
  color: #00A1E4;
  font-weight: 800;
  font-size: 16px;
  margin-left: 4px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hero-badge:hover .hero-badge-arrow {
  transform: translate(3px, -2px);
}

.hero h1 {
  font-size: clamp(46px, 7vw, 98px);
  font-weight: 800;
}

.hero h1 span {
  display: block;
  overflow: hidden; /* Maschera le righe durante l'animazione di salita */
}

.hero h1 span b {
  display: block;
  font-weight: inherit;
  transform: translateY(105%);
  animation: up 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero h1 span:nth-child(2) b {
  animation-delay: 0.12s;
  color: #8e97f0;
}

.hero h1 span:nth-child(3) b {
  animation-delay: 0.24s;
}

@keyframes up {
  to { transform: none; }
}

.hero p.lead {
  max-width: 470px;
  color: var(--mut);
  font-size: 19px;
  margin: 28px 0 34px;
  opacity: 0;
  animation: fade 1s 0.6s forwards;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade 1s 0.8s forwards;
}

@keyframes fade {
  to { opacity: 1; }
}

.stats {
  display: flex;
  gap: 38px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fade 1s 1s forwards;
}

.stats b {
  display: block;
  font: 800 34px var(--d);
  color: #ffffff;
}

/* Visual a destra con effetto cornice ad arco */
.visual {
  position: relative;
  aspect-ratio: 4/5;
  background: #0e163b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 200px 200px 28px 28px;
  overflow: hidden;
  opacity: 0;
  animation: fade 1.2s 0.4s forwards;
}


/* Animazione vettoriale Hero: casa moderna in sezione (blueprint luminoso) + flussi impiantistici */
.visual .hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 200px 200px 28px 28px;
  background: #0e163b !important;
  background-image:
    linear-gradient(rgba(150, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 180, 255, 0.06) 1px, transparent 1px),
    radial-gradient(75% 55% at 50% 62%, rgba(72, 84, 217, 0.28), transparent 72%) !important;
  background-size: 24px 24px, 24px 24px, 100% 100% !important;
  border: 0;
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Strati fissi: nessun parallasse, la casa resta ferma e centrata nell'arco */
.ha-layer { transform: none; }

/* Blueprint: linee luminose, sezioni piene */
.h-ground { stroke: rgba(200, 218, 255, 0.95); stroke-width: 1.6; }
.h-hatch { stroke: rgba(170, 195, 255, 0.55); stroke-width: 1; }
.h-cut { fill: rgba(130, 170, 255, 0.34); stroke: #c9d9ff; stroke-width: 1.4; }
.h-attic { fill: rgba(80, 110, 255, 0.07); stroke: rgba(180, 200, 255, 0.7); stroke-width: 1; stroke-dasharray: 4 3; }
.h-solar { fill: rgba(0, 190, 255, 0.45); stroke: #6fe0ff; stroke-width: 1; }
.h-part { stroke: rgba(190, 210, 255, 0.85); stroke-width: 1.3; fill: none; }
.h-glass { fill: url(#glassG); stroke: #a9e0ff; stroke-width: 1.3; }
.h-mull { stroke: rgba(190, 228, 255, 0.85); stroke-width: 1; fill: none; }
.h-shine { stroke: rgba(255, 255, 255, 0.28); stroke-width: 2; stroke-linecap: round; }
.h-furn { fill: rgba(150, 175, 255, 0.14); stroke: rgba(205, 218, 255, 0.85); stroke-width: 1; }
.h-lamp { fill: rgba(255, 210, 120, 0.35); stroke: #ffd36a; stroke-width: 1; }
.h-door { fill: rgba(255, 210, 120, 0.1); stroke: #ffd36a; stroke-width: 1.2; }
.h-handle { fill: #ffd36a; }
.h-tech { fill: url(#techG); stroke: #5fdcff; stroke-width: 1.2; stroke-dasharray: 5 3; }
.h-panel { fill: rgba(10, 20, 60, 0.9); stroke: #8fe6ff; stroke-width: 1.4; }
.h-slot { fill: rgba(0, 194, 255, 0.25); stroke: rgba(143, 230, 255, 0.7); stroke-width: 0.8; }
.h-led { fill: #5cf2c0; animation: ledBlink 1.6s ease-in-out infinite; }
.h-led1 { animation-delay: -0.5s; fill: #ffc23d; }
.h-led2 { animation-delay: -1s; fill: #22d3ff; }
@keyframes ledBlink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.h-ac { fill: rgba(0, 194, 255, 0.14); stroke: #6fe0ff; stroke-width: 1.4; }
.h-fanr { fill: none; stroke: #6fe0ff; stroke-width: 1.2; }
.h-blade { fill: rgba(111, 224, 255, 0.55); stroke: none; }
.h-fan { animation: fanSpin 1.4s linear infinite; }
@keyframes fanSpin { to { transform: rotate(360deg); } }
.h-dim { stroke: rgba(180, 200, 255, 0.7); stroke-width: 1; }
.h-hide { display: none; }

/* Flussi: percorsi, scia lunga con glow a 3 livelli, nodi pulsanti e particelle */
.fl-wrap path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fl-c { stroke: #22d3ff; }
.fl-g { stroke: #ffc23d; }
.fl-m { stroke: #5cf2c0; }
.fl-base { stroke-width: 1.2; stroke-opacity: 0.5; stroke-dasharray: 2 3; }
.fl-glow, .fl-mid, .fl-hot {
  stroke-dasharray: var(--l) 100;
  stroke-dashoffset: var(--s);
  animation: flFlow 3.4s linear infinite;
}
.fl-glow { stroke-width: 9; stroke-opacity: 0.22; }
.fl-mid { stroke-width: 4; stroke-opacity: 0.65; }
.fl-hot { stroke-width: 1.8; stroke: #fff; }
@keyframes flFlow { from { stroke-dashoffset: var(--s); } to { stroke-dashoffset: var(--e); } }

.nd { animation: ndPulse 3.4s ease-out infinite; }
.nd circle { transform-box: fill-box; transform-origin: center; }
.nd-c { fill: #fff; }
.nd-r { fill: none; stroke: currentColor; stroke-width: 1.4; animation: ndRing 3.4s ease-out infinite; }
.ndk-c { color: #22d3ff; }
.ndk-g { color: #ffc23d; }
.ndk-m { color: #5cf2c0; }
@keyframes ndPulse { 0% { opacity: 1; transform: scale(1.6); } 22% { opacity: 1; transform: scale(1); } 100% { opacity: 0.5; transform: scale(1); } }
@keyframes ndRing { 0% { transform: scale(0.8); opacity: 0.95; } 30% { transform: scale(3.2); opacity: 0; } 100% { transform: scale(3.2); opacity: 0; } }

.pt { fill: #fff; opacity: 0.85; }
.pt-c { fill: #7fe8ff; }
.pt-g { fill: #ffe08a; }
.pt-m { fill: #aef8de; }

.dust { fill: rgba(190, 210, 255, 0.5); animation: dustFloat 8s ease-in-out infinite alternate; }
@keyframes dustFloat { from { transform: translateY(0); opacity: 0.2; } to { transform: translateY(-14px); opacity: 0.7; } }

.ha-core-halo { transform-box: fill-box; transform-origin: center; animation: haPulse 2.4s ease-in-out infinite; }
@keyframes haPulse { 0%, 100% { transform: scale(0.85); opacity: 0.7; } 50% { transform: scale(1.3); opacity: 1; } }
.ha-ring { fill: none; stroke: #9fe9ff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: haRing 2.4s ease-out infinite; }
@keyframes haRing { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fl-glow, .fl-mid, .fl-hot, .nd, .nd-r, .ha-core-halo, .ha-ring, .dust, .h-fan, .h-led { animation: none; }
  .fl-glow, .fl-mid, .fl-hot { stroke-dasharray: none; opacity: 0.55; }
  .pt { display: none; }
}


/* ==========================================================================
   6. MARQUEE (TESTO A SCORRIMENTO ORIZZONTALE)
   ========================================================================== */
.mq {
  background: var(--brand);
  color: #fff;
  overflow: hidden;
  padding: 20px 0;
  white-space: nowrap;
}

.mq div {
  display: inline-flex;
  gap: 46px;
  animation: mq 32s linear infinite;
  font: 700 26px var(--d);
}

.mq span {
  display: inline-flex;
  align-items: center;
  gap: 46px;
}

.mq span:after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8e97f0;
}

@keyframes mq {
  to { transform: translateX(-50%); }
}

/* Spaziatura base tra le sezioni */
section {
  padding: 130px 0;
}

#chi-siamo,
#servizi,
#showroom,
#preventivo {
  scroll-margin-top: 90px;
}

h2 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
}

.sub {
  color: var(--mut);
  max-width: 520px;
  margin-top: 20px;
}

/* ==========================================================================
   7. SEZIONE ABOUT (CHI SIAMO)
   ========================================================================== */
.about {
  background: var(--soft);
}

.ab {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 56px 28px;
  align-items: center;
}

/* 1. Titolo e numeri nella prima riga */
.ab .head {
  grid-column: 1 / 7;
  grid-row: 1;
}

.ab .facts {
  grid-column: 8 / 13;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  margin-top: 0; /* Rimuove i 100px che spingevano giÃ¹ i numeri */
}

/* 2. Foto e Scheda nella seconda riga */
.ab .photo {
  grid-column: 1 / 9;
  grid-row: 2;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: hidden;
}

.ab .card {
  grid-column: 8 / 13;
  grid-row: 2;
  position: relative;
  z-index: 2;
  /* Sfondo blu notte semitrasparente scuro */
  background: rgba(13, 20, 38, 0.85); 
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 44px 42px;
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ab .card h3 {
  font-size: 30px;
  color: #ffffff;
  margin-bottom: 20px;
}

.ab .card p {
  color: rgba(255, 255, 255, 0.85); /* Grigio chiaro leggibilissimo */
  line-height: 1.72;
  margin: 0 0 18px;
}

.ab .card p:last-child {
  margin-bottom: 0;
}

.ab .facts div {
  border-left: 3px solid var(--brand);
  padding: 6px 0 6px 16px;
}

.ab .facts b {
  font: 800 30px var(--d);
  display: block;
  color: #ffffff;
}

.ab .facts small {
  color: #ffffff;
}
/* Centratura personalizzata foto titolari */
.titolari-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% center; /* 0% li sposta tutti a sinistra, 50% li centra */
}
/* ==========================================================================
   8. SEZIONE SERVIZI (BENTO GRID)
   ========================================================================== */
.sv {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 20px;
  margin-top: 64px;
}

/* Griglia simmetrica 3x2 su desktop */
.s1, .s2, .s3, .s4, .s5, .s6 {
  grid-column: span 4;
  min-height: 330px;
}

.sc {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  cursor: pointer;
  background: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.sc:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 161, 228, 0.6);
  box-shadow: 0 22px 44px -14px rgba(10, 14, 48, 0.65), 0 0 24px rgba(82, 96, 245, 0.28);
}

/* Sfondo con zoom morbido al passaggio del mouse */
.sc .ph {
  position: absolute;
  inset: 0;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  background: linear-gradient(135deg, #3b43a0, #171b4a);
}

.sc .ph:before {
  opacity: 0.5;
}

.sc .ph:after {
  left: auto;
  right: 14px;
  bottom: auto;
  top: 14px;
}

.sc .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s1 .ph img {
  object-position: center 22%;
}

.s2 .ph img {
  object-position: center 35%;
}

.s3 .ph img {
  object-position: center 42%;
}

.sc .ph:not([data-l]):after,
.sc .ph:not([data-l]):before {
  display: none;
}

.sc:hover .ph {
  transform: scale(1.08);
}

/* Gradiente scuro sul fondo per rendere leggibile il testo sopra le foto */
.sc:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 12, 40, 0.88));
}

.sc .t {
  position: relative;
  z-index: 2;
  padding: 30px;
  width: 100%;
  transition: transform 0.5s;
}

.sc:hover .t,
.sc:focus-within .t,
.sc:focus-visible .t {
  transform: translateY(-10px);
}

.sc em {
  font: 700 15px var(--d);
  font-style: normal;
  opacity: 0.7;
}

.sc h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  margin: 4px 0 8px;
}

/* Il testo di approfondimento si espande elegantemente all'hover o con navigazione da tastiera */
.sc p {
  margin: 0;
  max-width: 380px;
  font-size: 15px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s;
}

.sc:hover p,
.sc:focus-within p,
.sc:focus-visible p {
  max-height: 90px;
  opacity: 0.92;
}

.sc a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1.5px solid #8e97f0;
  padding-bottom: 2px;
}

.sc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sc .sc-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.sc .sc-pill:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ==========================================================================
   9. SEZIONE SHOWROOM DAIKIN
   ========================================================================== */
.dk {
  background: var(--deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Luce radiale bluastra sullo sfondo */
.dk:before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -200px;
  top: -200px;
  background: radial-gradient(circle, rgba(110, 120, 230, 0.35), transparent 65%);
}

.dk .wrap {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: clamp(48px, 5.5vw, 76px);
  align-items: center;
  position: relative;
}

.dk-media-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 18px;
}

.dk-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.dk .ph {
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  margin-top: 0;
  width: 100%;
}

.dk-header {
  width: 100%;
}

.dk-details {
  width: 100%;
}

.dk-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.dk-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.dk-slider .slide.active {
  opacity: 1;
}

/* Barra indirizzo e indicazioni posizionata SOTTO alla foto dello showroom */
.dk-map-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(0, 161, 228, 0.12));
  border: 1.5px solid rgba(0, 161, 228, 0.48);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(8, 12, 42, 0.42);
  transition: all 0.25s ease;
}

.dk-map-badge:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 161, 228, 0.2));
  border-color: #00A1E4;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 12, 42, 0.5), 0 0 20px rgba(0, 161, 228, 0.25);
}

.dk-map-badge:active {
  transform: scale(0.98);
}

.dk-map-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 161, 228, 0.28);
  color: #38bdf8;
  flex-shrink: 0;
}

.dk-map-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.dk-map-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  line-height: 1.2;
}

.dk-map-addr {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dk-map-btn-text {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  padding: 6px 14px;
  background: #00A1E4;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 161, 228, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dk-map-badge:hover .dk-map-btn-text {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 161, 228, 0.5);
}

.dk h2 {
  font-size: clamp(30px, 3.3vw, 48px);
}

.dk ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 38px;
  display: grid;
  gap: 18px;
}

.dk li {
  padding: 20px 26px;
  font-size: 15.5px;
  line-height: 1.6;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-left: 4px solid #00A1E4;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(8, 12, 42, 0.35);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  color: #eef1ff;
}

.dk li strong {
  color: #ffffff;
}

.dk li:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(0, 161, 228, 0.12));
  border-color: rgba(0, 161, 228, 0.65);
  box-shadow: 0 14px 32px rgba(8, 12, 42, 0.45);
  transform: translateX(8px);
}

.dk .sub {
  color: #b8bce6;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 16px;
}

/* Badge Partner Ufficiale Certificato Daikin */
.dk-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 20px 6px 8px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  max-width: 100%;
}

/* Riquadro Bianco per il Logo Daikin */
.dk-partner-badge .dk-logo-container {
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

/* Dimensioni del Logo Daikin */
.dk-partner-badge .dk-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

/* Separatore Verticale Sfumato */
.dk-badge-divider {
  width: 1.5px;
  height: 24px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.4) 80%,
    transparent
  );
  flex-shrink: 0;
}

/* Testo del Partner */
.dk-partner-text {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffffff;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .dk-partner-badge {
    padding: 5px 14px 5px 6px;
    gap: 10px;
    margin-bottom: 20px;
  }
  .dk-partner-badge .dk-logo-container {
    height: 36px;
    padding: 4px 12px;
  }
  .dk-partner-badge .dk-logo-img {
    height: 24px;
  }
  .dk-badge-divider {
    height: 18px;
  }
  .dk-partner-text {
    font-size: 11px;
    letter-spacing: 0.8px;
  }
}

/* ==========================================================================
   9B. SEZIONE RECENSIONI GOOGLE
   ========================================================================== */
.rev {
  position: relative;
  scroll-margin-top: 90px;
}

.rev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 42px;
}

.rev-head h2 {
  font-size: clamp(30px, 3.6vw, 52px);
}

.rev-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(8, 12, 42, 0.28);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rev-google-badge:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(8, 12, 42, 0.38);
}

.rev-g-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rev-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.rev-rating strong {
  font-family: var(--d);
  font-weight: 800;
  color: #ffffff;
}

.rev-stars {
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 15px;
}

.rev-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.rev-count {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.rev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.rev-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 36px rgba(8, 12, 42, 0.3);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rev-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 22px 44px rgba(8, 12, 42, 0.42);
}

.rev-card-stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.rev-card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.9);
}

.rev-card-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rev-author {
  font-family: var(--d);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.rev-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .rev-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rev-grid {
    grid-template-columns: 1fr;
  }

  .rev-google-badge {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 10px 14px;
    gap: 8px;
  }

  .rev-divider {
    display: none;
  }
}

/* ==========================================================================
   10. FORM DI RICHIESTA PREVENTIVO
   ========================================================================== */
.qt .wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.qt-intro {
  display: flex;
  flex-direction: column;
}

.qt-intro h2 {
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.qt-intro .sub {
  margin: 16px 0 32px;
  font-size: 17px;
  line-height: 1.6;
}

/* Lista vantaggi e rassicurazioni preventivo */
.qt-perks {
  display: grid;
  gap: 20px;
  margin-top: 10px;
}

.qt-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 32px rgba(8, 12, 42, 0.26);
  transition: all 0.28s ease;
}

.qt-perk-item:hover {
  transform: translateX(6px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 36px rgba(8, 12, 42, 0.36);
}

.qt-perk-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(142, 151, 240, 0.15);
  color: #8e97f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.qt-perk-text h4 {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.3;
}

.qt-perk-text p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mut);
  margin: 0;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--soft);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 15px 16px;
  transition: border 0.25s, background 0.25s;
}

input:focus, textarea:focus {
  outline: 0;
  border-color: var(--brand);
  background: var(--bg);
}

form .full {
  grid-column: 1 / -1;
}

/* Stile per le chip (checkbox travestite da bottoni pillola) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips input {
  position: absolute;
  opacity: 0;
  width: 0;
}

.chips span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
}

.chips input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chips input:focus-visible + span {
  outline: 3px solid #7b84e0;
  outline-offset: 2px;
}

.chips input:disabled + span {
  opacity: 0.35;
  cursor: not-allowed;
}

.ok {
  display: none; /* Mostrato solo da JS all'invio del form */
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--soft);
  border-left: 4px solid var(--brand);
  font-weight: 600;
}

.ok.err {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

/* Stile per l'area di caricamento foto/planimetria */
.opt-label {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--mut);
  margin-left: 4px;
}

.file-upload-zone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.file-upload-zone:hover,
.file-upload-zone.dragover,
.file-upload-zone:focus-within {
  border-color: #8e97f0;
  background: rgba(142, 151, 240, 0.08);
}

.file-upload-zone:focus-within {
  outline: 3px solid #7b84e0;
  outline-offset: 2px;
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.file-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(142, 151, 240, 0.15);
  color: #8e97f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-upload-info {
  font-size: 14px;
  color: var(--ink);
}

.file-upload-info strong {
  color: #8e97f0;
}

.file-upload-info small {
  display: block;
  font-size: 12px;
  color: var(--mut);
  margin-top: 4px;
}

/* Lista dei file caricati / anteprime */
.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.file-tag .rm-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--mut);
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.file-tag .rm-btn:hover {
  color: #e53e3e;
}

/* ==========================================================================
   11. PULSANTE FLUTTUANTE WHATSAPP
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none; /* Impedisce al contenitore invisibile del fumetto di bloccare i link sottostanti (es. Informativa Privacy & Cookie) */
  transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Quando il banner dei cookie Ã¨ aperto in basso, alza automaticamente il bottone WhatsApp sopra di esso */
body.cookie-visible .wa-float,
body:has(#cookieBanner[style*="block"]) .wa-float {
  bottom: 88px;
}

.wa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
  pointer-events: auto; /* Solo il tondo verde intercetta il mouse */
}

.wa-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waPulse 2.4s infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55), 0 6px 14px rgba(0, 0, 0, 0.2);
}

.wa-btn:active {
  transform: scale(0.96);
}

.wa-tooltip {
  background: #1e293b;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mostra il fumetto SOLO quando il mouse Ã¨ sopra al bottone tondo verde */
.wa-float:has(.wa-btn:hover) .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .wa-float {
    bottom: 20px;
    right: 20px;
  }
  body.cookie-visible .wa-float,
  body:has(#cookieBanner[style*="block"]) .wa-float {
    bottom: 145px;
  }
  .wa-btn {
    width: 54px;
    height: 54px;
  }
  .wa-tooltip {
    display: none; /* Su schermi piccoli togliamo il fumetto per pulizia */
  }
}

/* ==========================================================================
   12. FOOTER (PIÃˆ DI PAGINA)
   ========================================================================== */
footer {
  background: #14151a;
  color: #c9cbd6;
  padding: 80px 0 36px;
}

footer .g {
  display: flex;
  justify-content: center;
  gap: 120px;
  width: 100%;
}

footer .g > div {
  text-align: left;
}

footer h4 {
  color: #fff;
  margin: 0 0 16px;
  font: 700 16px var(--d);
  letter-spacing: 0.02em;
}

footer a, footer span {
  display: block;
  padding: 3px 0;
  line-height: 1.5;
}

footer a {
  transition: color 0.2s;
}

footer a:hover {
  color: #8e97f0;
}

.footer-huge-text {
  width: 100%;
  overflow: hidden;
  margin: 60px 0 -15px;
  padding: 0 4vw;
  user-select: none;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-huge-text span {
  display: block;
  font-family: var(--d);
  font-weight: 800;
  font-size: clamp(48px, 12.8vw, 190px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  transition: -webkit-text-stroke 0.4s ease, text-shadow 0.4s ease;
}

footer:hover .footer-huge-text span {
  -webkit-text-stroke: 1.5px rgba(165, 175, 255, 0.78);
  text-shadow: 0 0 28px rgba(82, 96, 245, 0.55);
}

footer .bt {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid #2b2d38;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer .bt a {
  text-decoration: underline;
}

.footer-bt-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.share-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.share-btn:hover {
  color: #8e97f0;
}

/* ==========================================================================
   13. MEDIA QUERIES (RESPONSIVE PER SMARTPHONE E TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  /* Mostra pulsante hamburger e nasconde menu esteso */
  .links, .nav-cta {
    display: none;
  }
  
  .burger {
    display: block;
  }
  
  /* Menu a comparsa quando aperto via JavaScript con animazione fluida slide & fade */
  .links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--line);
    margin-top: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s;
  }

  nav.open .links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  nav.s .links {
    right: 16px;
    left: auto;
    width: min(300px, calc(100vw - 32px));
  }
  
  /* Navbar e Logo compatti su mobile */
  .nav-logo {
    height: 48px;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .burger {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  }

  nav.open .burger {
    transform: rotate(90deg);
    color: var(--brand);
  }

  nav {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: visible;
    transform: none;
    clip-path: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
    pointer-events: none;
    transition: padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  nav .wrap {
    pointer-events: auto;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
    padding: 0 20px;
    border-radius: 99px;
    border: 1px solid transparent;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                gap 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Quando si scorre verso il basso: transizione morbida in pillola compatta a destra */
  nav.s {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
    display: flex;
    justify-content: flex-end;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  nav.s .wrap {
    max-width: 155px; /* Pillola tablet */
    margin: 0 0 0 auto;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: var(--line);
    padding: 6px 14px 6px 16px;
    gap: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
  }

  nav.s .nav-logo {
    height: 30px;
    width: auto !important;
  }

  nav.s .burger {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  /* Su smartphone (<= 600px): avvicina il logo ai tre trattini rendendo la pillola piÃ¹ compatta */
  @media (max-width: 600px) {
    nav.s {
      padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    }

    nav.s .wrap {
      max-width: 110px;
      padding: 4px 8px 4px 10px;
      gap: 6px;
    }

    nav.s .nav-logo {
      height: 26px;
      width: auto !important;
    }

    nav.s .burger {
      width: 28px;
      height: 28px;
    }
  }

  /* Sezione Hero mobile ottimizzata */
  .hero {
    min-height: auto;
    padding: calc(85px + env(safe-area-inset-top, 0px)) 0 45px;
  }

  .hero .wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .hero-content-col {
    display: flex;
    flex-direction: column;
  }

  /* Su tablet e smartphone (< 900px): nascondi il badge desktop e mostra quello posizionato sotto al video */
  .hero-badge-desktop {
    display: none !important;
  }

  .hero-badge-mobile {
    display: inline-flex !important;
    margin: 8px auto 0;
    align-self: center;
  }

  .hero-badge {
    padding: 6px 14px 6px 8px;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
  }

  .hero-badge-logo {
    height: 34px;
    padding: 4px 12px;
  }

  .hero-badge-logo img {
    height: 22px;
  }

  .hero-badge-subtitle {
    font-size: 9.5px;
  }

  .hero-badge-title {
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(34px, 8.5vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .hero p.lead {
    font-size: 16px;
    line-height: 1.55;
    margin: 16px 0 22px;
    max-width: 100%;
  }

  .cta {
    gap: 12px;
  }

  .cta .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Statistiche Hero: griglia 3 colonne perfettamente fluida */
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    width: 100%;
  }

  .stats > div {
    min-width: 0;
  }

  .stats b {
    font-size: clamp(19px, 5.2vw, 25px);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stats small {
    font-size: 11px;
    line-height: 1.25;
    margin-top: 4px;
    display: block;
    word-break: break-word;
  }

  /* Visual Video Hero */
  .visual {
    width: 100%;
    max-width: 340px;
    margin: 10px auto 0;
    aspect-ratio: 1 / 1;
  }

  .visual {
    border-radius: 120px 120px 24px 24px;
  }

  .visual .hero-art {
    border-radius: 120px 120px 24px 24px;
  }

  /* Sezione Showroom Daikin - mobile verticale ottimizzato:
     Ordine su tablet e mobile:
     1. Titolo Showroom Daikin e descrizione (.sub)
     2. Badge Daikin (.dk-partner-badge)
     3. Carosello foto (.dk-media-col con slider e mappa)
     4. Le 3 card con le caratteristiche (.dk-details ul)
     5. Bottone richiesta preventivo
  */
  .dk .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .dk-content-col {
    display: contents;
  }

  .dk-header {
    width: 100%;
    text-align: left;
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .dk-header h2 {
    font-size: clamp(34px, 8vw, 46px);
    order: 1;
  }

  .dk-header .sub {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
    color: #b8bce6;
    order: 2;
  }

  /* Su tablet e mobile la card/badge Daikin va SOTTO al testo descrittivo */
  .dk-partner-badge {
    order: 3;
    margin-top: 20px;
    margin-bottom: 0;
    align-self: flex-start;
  }

  .dk-media-col {
    order: 2;
    width: 100%;
    max-width: 440px;
    margin: 24px auto 28px;
    gap: 10px;
  }

  .dk .ph {
    width: 100%;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
  }

  .dk-map-badge {
    padding: 8px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .dk-map-addr {
    font-size: 12px;
  }

  .dk-details {
    order: 3;
    width: 100%;
  }

  .dk-details ul {
    margin: 0 0 28px;
  }

  .dk-details .btn {
    width: 100%;
    justify-content: center;
  }
  
  section {
    padding: 90px 0;
  }
  
  /* Sezione Chi siamo - layout verticale mobile ottimizzato */
  .ab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .ab .head {
    width: 100%;
    margin-bottom: 26px;
    text-align: left;
  }

  .ab .head h2 {
    font-size: clamp(34px, 8vw, 46px);
  }

  .ab .head .sub {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
  }

  .ab .photo {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 22px;
    aspect-ratio: 16 / 11;
  }

  .ab .card {
    width: calc(100% - 28px);
    max-width: 390px;
    margin: -45px auto 0;
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }

  .ab .card h3 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .ab .card p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 10px;
  }

  .ab .card p:last-child {
    margin-bottom: 0;
  }

  .ab .facts {
    width: 100%;
    max-width: 440px;
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding: 0;
  }

  .ab .facts div {
    border-left: 3px solid var(--brand);
    padding: 2px 0 2px 12px;
  }

  .ab .facts b {
    font-size: 26px;
    line-height: 1.1;
    display: block;
    color: #ffffff;
  }

  .ab .facts small {
    font-size: 13px;
    line-height: 1.35;
    display: block;
    margin-top: 4px;
    color: #ffffff;
  }

  /* Centratura intestazioni sezioni anche su smartphone, come su tablet */
  .ab .head,
  #servizi > .wrap > .rv,
  .qt-intro,
  .rev-head {
    text-align: center;
  }

  .ab .head .sub,
  #servizi > .wrap > .rv .sub,
  .qt-intro .sub {
    margin-left: auto;
    margin-right: auto;
  }

  .qt-intro {
    align-items: center;
  }

  .rev-head {
    justify-content: center;
  }

  /* Centratura Hero su tablet e smartphone */
  .hero .wrap > div:first-child {
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cta,
  .stats {
    justify-content: center;
  }
  
  /* Nei servizi le card tornano su una colonna sola */
  .s1, .s2, .s3, .s4, .s5, .s6 {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  
  /* Su mobile il testo dei servizi rimane sempre visibile senza dover passare il mouse */
  .sc p {
    max-height: 90px;
    opacity: 0.9;
  }
  
  .qt .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .qt-perks {
    gap: 14px;
    margin-bottom: 12px;
  }

  .qt-perk-item {
    padding: 14px 16px;
  }

  form {
    grid-template-columns: 1fr;
  }

  /* ==========================================================================
     OTTIMIZZAZIONE SPECIFICA TABLET: CENTRATURA COMPLETA CONTENUTI
     ========================================================================== */
  @media (min-width: 601px) and (max-width: 900px) {
    /* 1. Hero Section Centrata */
    .hero-content-col {
      align-items: center;
      text-align: center;
    }

    .hero h1 {
      text-align: center;
    }

    .hero p.lead {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      max-width: 620px;
    }

    .cta {
      justify-content: center;
    }

    .stats {
      max-width: 580px;
      margin-left: auto;
      margin-right: auto;
      justify-content: center;
      text-align: center;
    }

    /* 2. Chi Siamo Centrato */
    .ab .head {
      text-align: center;
    }

    .ab .head .sub {
      margin-left: auto;
      margin-right: auto;
      max-width: 620px;
    }

    .ab .photo {
      max-width: 580px;
    }

    .ab .card {
      max-width: 540px;
      text-align: center;
    }

    .ab .facts {
      max-width: 540px;
      justify-content: center;
    }

    /* 3. Sezione Servizi Centrata (solo l'intestazione della sezione, non le card) */
    #servizi > .wrap > .rv {
      text-align: center;
    }

    #servizi > .wrap > .rv .sub {
      margin-left: auto;
      margin-right: auto;
    }

    .sv {
      grid-template-columns: repeat(2, 1fr);
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .s1, .s2, .s3, .s4, .s5, .s6 {
      grid-column: span 1;
    }

    /* Le card servizi mantengono TUTTE il testo a sinistra */
    .sc .t {
      text-align: left !important;
      align-items: flex-start !important;
    }

    .sc em,
    .sc h3,
    .sc p,
    .sc a {
      text-align: left !important;
      margin-left: 0 !important;
    }

    /* 4. Showroom Daikin Centrato */
    .dk-header {
      text-align: center;
      align-items: center;
    }

    .dk-header .sub {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      max-width: 620px;
    }

    .dk-partner-badge {
      align-self: center !important;
      margin-left: auto;
      margin-right: auto;
    }

    .dk-media-col {
      max-width: 580px;
    }

    .dk-details {
      max-width: 580px;
      margin-left: auto;
      margin-right: auto;
    }

    /* 5. Preventivo / Form Centrato */
    .qt-intro {
      text-align: center;
    }

    .qt-intro .sub {
      margin-left: auto;
      margin-right: auto;
    }

    .qt-perks {
      justify-content: center;
    }

    form {
      max-width: 650px;
      margin-left: auto;
      margin-right: auto;
    }
  }

  footer {
    padding: 52px 0 28px;
  }

  footer .g {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  footer .g > div:last-child {
    grid-column: 1 / -1;
  }

  @media (min-width: 601px) {
    footer .g {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    footer .g > div:last-child {
      grid-column: auto;
    }
  }
  
  .footer-huge-text {
    margin: 28px 0 -4px;
    padding: 0 16px;
  }
  
  .footer-huge-text span {
    font-size: clamp(38px, 12vw, 80px);
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(165, 175, 255, 0.62);
    text-shadow: 0 0 22px rgba(82, 96, 245, 0.42);
  }

  footer .bt {
    margin-top: 24px;
    padding-top: 18px;
  }
}

/* Disattiva tutte le animazioni se l'utente ha impostato preferenze di riduzione del movimento nel sistema operativo */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .rv, .hero h1 span b, .hero p.lead, .cta, .stats, .visual {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   14. PRIVACY CHECKBOX & BANNER COOKIE
   ========================================================================== */
.hp-wrap {
  display: none !important;
}

.privacy-check-row {
  margin: 6px 0 10px;
}

.privacy-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: var(--mut);
  cursor: pointer;
  line-height: 1.45;
}

.privacy-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #4854d9;
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-label a {
  color: #8e97f0;
  text-decoration: underline;
}

/* Banner Cookie a barra inferiore (fedele al banner classico dello screenshot) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(10, 12, 26, 0.96);
  border-top: 1px solid rgba(142, 151, 240, 0.2);
  padding: 14px 24px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  color: #eceefa;
  line-height: 1.5;
}

.cookie-content a {
  color: #8e97f0;
  text-decoration: underline;
  margin-left: 6px;
}

.cookie-btn {
  background: #2b4bee;
  color: #ffffff;
  border: 1px solid #4854d9;
  padding: 8px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-btn:hover {
  background: #3e5dfa;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}
/* ==========================================================================
   OTTIMIZZAZIONE LAPTOP (1366x768, 1440x900 con scaling Windows)
   Altezze e spaziature verticali compatte: hero sempre visibile senza scroll
   ========================================================================== */
@media (min-width: 901px) {
  /* Navbar snella: logo proporzionato alla capsula */
  .nav-logo {
    height: clamp(40px, 5.2vh, 46px);
  }

  /* Hero: min-height 100svh, padding verticale compatto */
  .hero {
    min-height: 100svh;
    padding: clamp(92px, 13vh, 124px) 0 clamp(24px, 4vh, 48px);
  }

  .hero .wrap {
    align-items: center;
    gap: clamp(32px, 4vw, 56px);
  }

  .hero-badge {
    margin-bottom: clamp(14px, 2.4vh, 26px);
  }

  .hero h1 {
    font-size: clamp(2.6rem, 4.2vw, 4.2rem);
    line-height: 1.05;
  }

  .hero p.lead {
    font-size: clamp(16px, 1.3vw, 19px);
    margin: clamp(14px, 2.4vh, 28px) 0 clamp(18px, 3vh, 34px);
  }

  .stats {
    margin-top: clamp(22px, 4.5vh, 54px);
    padding-top: clamp(14px, 2.4vh, 26px);
    gap: clamp(24px, 2.8vw, 38px);
  }

  .stats b {
    font-size: clamp(26px, 2.4vw, 34px);
  }

  /* Arco a destra: altezza proporzionata allo schermo (larghezza dal rapporto 4/5) */
  .visual {
    height: clamp(400px, 66vh, 560px);
    width: auto;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    justify-self: center;
  }

  /* Sezioni: padding verticali equilibrati */
  section {
    padding-block: clamp(56px, 7vh, 88px);
  }

  h2 {
    font-size: clamp(32px, 3.8vw, 58px);
  }

  .sub {
    margin-top: clamp(12px, 2vh, 20px);
  }

  /* Servizi: card leggermente piu' basse */
  .sv {
    grid-auto-rows: minmax(clamp(210px, 30vh, 300px), auto);
    gap: clamp(14px, 2vh, 20px);
    margin-top: clamp(28px, 5vh, 64px);
  }

  .sv .s1, .sv .s2, .sv .s3, .sv .s4, .sv .s5, .sv .s6 { min-height: clamp(230px, 34vh, 330px); }

  /* Contatti / preventivo */
  .qt-perks {
    gap: clamp(10px, 1.6vh, 18px);
  }
}