:root {
  --bg: #0c1624;
  --card: #111d2e;
  --text: #e8f0f7;
  --muted: #9fb4c7;
  /* Brand / trust: azzurro (coerente con pronto intervento idraulico, siti tecnici) */
  --accent: #02adea;
  --accent2: #0195c9;
  /* CTA urgenza: rosso (massima attenzione su “Chiama” — comune su servizi emergenza) */
  --cta: #d92a2a;
  --cta-hover: #b32121;
  /* Verde WhatsApp più scuro: contrasto AA su testo bianco (Lighthouse accessibilità) */
  --wa: #0f766e;
  --wa-hover: #0d5f56;
  --border: rgba(2, 173, 234, 0.25);
  --radius: 12px;
  --max: 1100px;
  --sticky-h: 5.35rem;
  --sticky-call-green: #0f6b2f;
  --sticky-call-green-hover: #0a5224;
}
* { box-sizing: border-box; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  padding-bottom: var(--sticky-h);
  font-family: Inter, Segoe UI, Roboto, Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
@media (min-width: 1100px) {
  body { padding-bottom: 0; }
}
a { color: var(--accent); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 22, 36, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; position: relative; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--text); }
.brand-logo {
  width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0;
  object-fit: contain;
  background: rgba(2, 173, 234, 0.08);
  box-shadow: 0 0 0 1px var(--border), 0 6px 24px rgba(2, 173, 234, 0.12);
}
.brand-lockup { display: flex; flex-direction: column; line-height: 1.15; }
.brand-line1 { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--text); }
.brand-line1 .h24 {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
  margin-left: 0.1rem;
  text-shadow: 0 0 28px rgba(2, 173, 234, 0.35);
}
.brand-line1 .h-sub { color: var(--accent); font-weight: 800; font-size: 0.88em; }
.brand-line2 {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-top: 0.2rem; max-width: 14rem;
}
@media (max-width: 400px) {
  .brand-line2 { display: none; }
  .brand-line1 { font-size: 1.05rem; }
}
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; }
nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
nav a:hover { color: var(--accent); }
nav a.is-current { color: var(--accent); font-weight: 700; }
.nav-toggle {
  display: none; background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 0.4rem 0.65rem; border-radius: 8px; cursor: pointer; font-size: 1.25rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(12, 22, 36, 0.98); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
  }
  .nav-panel.open { display: block; }
  .nav-panel ul { flex-direction: column; align-items: flex-start; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
/* Azioni principali: chiamata = rosso */
.btn-primary,
.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 18px rgba(217, 42, 42, 0.35);
  font-size: 1rem;
  padding: 0.7rem 1.15rem;
}
.btn-primary:hover,
.btn-cta:hover { background: var(--cta-hover); color: #fff; }
/* WhatsApp riconoscibile */
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25);
  font-size: 1rem;
  padding: 0.7rem 1.15rem;
}
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
/* WhatsApp secondario: non compete con la chiamata */
.btn-wa-secondary {
  background: transparent;
  color: #c8f5de;
  border: 2px solid rgba(100, 220, 160, 0.75);
  box-shadow: none;
  font-size: 0.92rem;
  padding: 0.6rem 1rem;
}
.btn-wa-secondary:hover { background: rgba(100, 220, 160, 0.14); color: #fff; border-color: rgba(140, 235, 185, 0.9); }
.hero-phone-hero {
  display: block; margin: 0.5rem 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem); font-weight: 800; letter-spacing: 0.02em;
}
.hero-phone-hero a { color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); }
.hero-phone-hero a:hover { color: var(--accent); }
.hero-trust-micro {
  font-size: 0.9rem; color: #c5d4e0; margin: 0 0 1rem; max-width: 36rem;
}
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Home hero: foto in HTML (hero__bg) + preload per LCP; pagine servizio usano ancora background CSS. */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3rem;
  background: #0a1520;
}
.hero:not(.hero--page) {
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero:not(.hero--page)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(12, 22, 36, 0.92) 0%, rgba(12, 22, 36, 0.55) 50%, rgba(12, 22, 36, 0.78) 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
/* Service pages: compatta + immagine solo CSS */
.hero--page {
  min-height: 38vh;
  padding: 2rem 0 2.25rem;
  background: #0a1520 center/cover no-repeat;
  background-image: linear-gradient(105deg, rgba(12, 22, 36, 0.92) 0%, rgba(12, 22, 36, 0.55) 50%, rgba(12, 22, 36, 0.78) 100%),
    url("images/headers/header-homepage.jpg");
}
.hero h1 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); font-weight: 700; margin: 0 0 0.75rem; line-height: 1.2; }
.h-title-accent { color: var(--accent); }
.hero-badge {
  display: inline-block; margin: 0 0 0.75rem; padding: 0.3rem 0.65rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); background: rgba(2, 173, 234, 0.12); border: 1px solid var(--border);
}
.hero .eyebrow { margin: 0 0 0.35rem; }
.hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 40rem; margin: 0 0 0.9rem; }
.trust-line {
  font-size: 0.92rem; color: #c5d4e0; max-width: 40rem; margin: 0 0 1.5rem; padding-left: 0.85rem; border-left: 3px solid var(--accent);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero-ctas .btn-cta { min-width: min(100%, 280px); justify-content: center; }
.hero-ctas .btn-wa { min-width: min(100%, 260px); justify-content: center; }

/* Fascia conversione sotto hero (home) */
.conversion-strip {
  background: rgba(2, 173, 234, 0.1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}
.conversion-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.conversion-strip-inner > p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
}
.conversion-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
@media (max-width: 640px) {
  .conversion-strip-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .conversion-strip-actions { justify-content: center; }
}

/* Pulsante chiamata fisso: solo mobile / tablet (conversione chiamate) */
.sticky-mobile-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  margin: 0; padding: 0.65rem 1rem;
  background: linear-gradient(180deg, rgba(7, 13, 20, 0.95) 0%, #070d14 100%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.45);
  text-decoration: none; color: #fff !important; font-weight: 800;
  font-size: clamp(0.72rem, 2.8vw, 0.95rem);
  letter-spacing: 0.02em; text-transform: uppercase;
  line-height: 1.2; text-align: center;
  animation: sticky-call-pulse 2s ease-in-out infinite;
}
.sticky-mobile-call:hover {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(7, 13, 20, 0.95) 0%, #070d14 100%);
}
.sticky-mobile-call-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  width: 100%; max-width: 28rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--sticky-call-green);
  box-shadow: 0 4px 22px rgba(22, 200, 83, 0.45);
  transition: background 0.2s, transform 0.15s;
}
.sticky-mobile-call:active .sticky-mobile-call-inner { transform: scale(0.98); }
.sticky-mobile-call:hover .sticky-mobile-call-inner { background: var(--sticky-call-green-hover); }
.sticky-mobile-call svg {
  flex-shrink: 0; width: 1.35rem; height: 1.35rem;
  fill: currentColor;
}
@media (min-width: 1100px) {
  .sticky-mobile-call { display: none; }
}
@keyframes sticky-call-pulse {
  0%, 100% {
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(22, 200, 83, 0.45);
  }
  50% {
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(22, 200, 83, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-mobile-call { animation: none; }
}

.intro { content-visibility: auto; contain-intrinsic-size: 0 420px; padding: 2.25rem 0; background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.intro p { margin: 0; max-width: 52rem; color: var(--muted); }
.intro p + p { margin-top: 1rem; }

section { padding: 2.75rem 0; scroll-margin-top: 72px; }
.section-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-title h2 { margin: 0; font-size: 1.65rem; }
.section-title .eyebrow,
.eyebrow { color: var(--accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.hub { content-visibility: auto; contain-intrinsic-size: 0 560px; }
.hub h2 { text-align: center; margin: 0 0 0.5rem; font-size: 1.5rem; }
.hub .sub { text-align: center; color: var(--muted); margin: 0 0 2rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.hub-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 800px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hub-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(2, 173, 234, 0.12); transform: translateY(-3px); }
.hub-card picture { display: block; }
.hub-card picture img,
.hub-card img { display: block; width: 100%; height: 200px; object-fit: cover; }
.hub-card .body { padding: 1.25rem 1.35rem 1.5rem; }
.hub-card .label { color: var(--accent); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.hub-card h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.hub-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hub-card .more { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin-top: 2rem; color: var(--muted); font-size: 0.9rem; }
.pills span { display: flex; align-items: center; gap: 0.35rem; }
.pills strong { color: var(--text); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.side-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.side-img img { display: block; width: 100%; height: auto; }
.prose { color: var(--muted); }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.prose p { margin: 0 0 0.75rem; }
.prose ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1.25rem; }
@media (max-width: 700px) { .service-grid { grid-template-columns: 1fr; } }
.card {
  background: rgba(17, 29, 46, 0.9); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1rem; font-size: 0.9rem; color: var(--text);
}
.card strong { color: var(--accent); font-size: 0.75rem; }
.bg-card { background: var(--card); border-top: 1px solid var(--border); }

.footer { padding: 2rem 0 3rem; background: #070d14; color: var(--muted); font-size: 0.9rem; text-align: center; border-top: 1px solid var(--border); }
.footer a { color: var(--text); }

.garanzia {
  background: rgba(2, 173, 234, 0.08);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.garanzia .wrap { max-width: 40rem; text-align: center; padding-top: 2rem; padding-bottom: 2rem; }
.garanzia h2 { margin: 0 0 0.75rem; font-size: 1.35rem; color: var(--text); }
.garanzia p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

.reviews-trust {
  padding: 2rem 0;
  background: rgba(17, 29, 46, 0.65);
  border-top: 1px solid var(--border);
  text-align: center;
}
.reviews-trust .wrap { max-width: 36rem; }
.reviews-trust .stars {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  color: #fbbc04;
  line-height: 1;
}
.reviews-trust p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.reviews-trust a { font-weight: 600; }
.reviews-trust-honest { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--muted); }

.testimonials {
  padding: 2.75rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: 0 520px;
}
.testimonials-title {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  color: var(--text);
}
.testimonials-intro {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
  max-width: 38rem;
  line-height: 1.5;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: rgba(12, 22, 36, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.testimonial-stars {
  color: #fbbc04;
  letter-spacing: 0.1em;
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1;
}
.testimonial-quote {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.55;
}
.testimonial-author {
  font-size: 0.84rem;
  color: var(--muted);
}
.testimonial-who { color: var(--accent); font-weight: 600; }

.faq-block {
  padding: 2.75rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.faq-block h2 { text-align: center; margin: 0 0 0.5rem; font-size: 1.45rem; color: var(--text); }
.faq-block .faq-intro {
  text-align: center; color: var(--muted); max-width: 38rem; margin: 0 auto 1.75rem; font-size: 0.95rem;
}
.faq-list { max-width: 44rem; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.6rem; background: rgba(17, 29, 46, 0.5); }
.faq-item summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 2.25rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; font-weight: 400; color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
  justify-items: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.zones-grid a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.zones-grid a:hover { color: var(--accent); border-color: var(--accent); }
.footer-zones { margin-top: 1rem; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.footer-zones strong { color: var(--text); font-weight: 600; }
@media (max-width: 520px) {
  .zone-two-col { grid-template-columns: 1fr !important; }
}
