/* ============================================
   AQUA PRO — Balzan Impianti di Balzan Nicola
   Template A: Light / Technical / Precision
   Handcrafted. No templates. No frameworks.
   ============================================ */

:root {
  --bg-primary: #F7F9FC;
  --bg-secondary: #EDF1F7;
  --bg-dark: #0F2237;
  --bg-dark-panel: #152C44;
  --accent-blue: #1E6BA5;
  --accent-blue-light: rgba(30, 107, 165, 0.06);
  --accent-blue-glow: rgba(30, 107, 165, 0.15);
  --accent-red: #D42B2B;
  --accent-red-light: rgba(212, 43, 43, 0.06);
  --text-primary: #0F2237;
  --text-secondary: #4A6580;
  --text-muted: #8A9DB2;
  --border: #D0DBE8;
  --border-light: #E3EBF4;
  --glass-border: rgba(30, 107, 165, 0.08);

  --shadow-sm: 0 1px 3px rgba(15, 34, 55, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 34, 55, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 34, 55, 0.1);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 250ms var(--ease-out-expo);
  --transition-normal: 450ms var(--ease-out-expo);

  --accent-primary: var(--accent-blue);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.section-header__label {
  color: var(--accent-blue);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.section-header__title {
  color: var(--text-primary);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-header__subtitle {
  color: var(--text-secondary);
  font-weight: 300;
}

/* ---- Emergency Bar (sticky) ---- */
.emergency-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: linear-gradient(90deg, var(--accent-red) 0%, #B82020 100%);
  padding: 0.6rem 0;
  color: #fff;
}

.emergency-bar__text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.emergency-bar__icon {
  font-size: 1rem;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.emergency-bar__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emergency-bar__sep {
  color: rgba(255, 255, 255, 0.3);
}

.emergency-bar__desc {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.85;
}

.emergency-bar .btn--emergency {
  background: #fff;
  color: var(--accent-red);
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.emergency-bar .btn--emergency:hover {
  background: #F0E8E8;
  transform: translateY(-1px);
}

/* ---- Navigation ---- */
.nav {
  background: rgba(247, 249, 252, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
  top: auto;
}

.nav.scrolled {
  background: rgba(247, 249, 252, 0.96);
  box-shadow: 0 1px 0 var(--border-light);
}

.nav__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__logo-icon {
  color: var(--accent-blue);
  font-size: 0.6rem;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}

.nav__links a:hover { color: var(--accent-blue); }
.nav__links a::after { background: var(--accent-blue); height: 1px; }
.nav__hamburger span { background: var(--text-primary); }

.nav .btn--primary {
  background: var(--accent-blue);
  color: #fff;
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px var(--accent-blue-glow);
}

@media (max-width: 767px) {
  .nav__links {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-light);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Pipe grid pattern */
.hero__pipes {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 120px,
      rgba(30, 107, 165, 0.025) 120px,
      rgba(30, 107, 165, 0.025) 121px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(30, 107, 165, 0.015) 120px,
      rgba(30, 107, 165, 0.015) 121px
    );
  pointer-events: none;
}

/* Drop motif */
.hero__drop {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 180px;
  height: 240px;
  background: radial-gradient(ellipse at 50% 40%, rgba(30, 107, 165, 0.04) 0%, transparent 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero__tagline {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__tagline::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-blue);
  opacity: 0.4;
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  max-width: 480px;
}

.hero__location {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--cta {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-blue-glow);
}

.btn--cta:hover {
  box-shadow: 0 6px 30px rgba(30, 107, 165, 0.3);
  transform: translateY(-3px);
}

.btn--cta svg { flex-shrink: 0; }

.btn--outline {
  border-color: rgba(30, 107, 165, 0.25);
  color: var(--accent-blue);
  border-width: 1px;
}

.btn--outline:hover {
  background: var(--accent-blue-light);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.btn--emergency {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(212, 43, 43, 0.25);
}

.btn--emergency:hover {
  box-shadow: 0 6px 30px rgba(212, 43, 43, 0.35);
  transform: translateY(-3px);
}

/* Hero data sidebar */
.hero__data {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 3rem;
  border-left: 1px solid var(--border);
}

.hero__data-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero__data-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .hero { padding-top: 8rem; }
  .hero__content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__tagline::before { display: none; }
  .hero__data {
    flex-direction: row;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    justify-content: space-between;
  }
  .hero__data-number { font-size: 1.5rem; }
}

/* ============================================
   SERVIZI
   ============================================ */
.servizi {
  background: var(--bg-secondary);
  position: relative;
}

.servizi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.servizio-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.servizio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 107, 165, 0.15);
}

.servizio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-blue) 0%, rgba(30, 107, 165, 0.15) 100%);
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.servizio-card:hover::before { opacity: 1; }

.servizio-card__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.servizio-card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 1rem;
  transition: transform var(--transition-normal);
}

.servizio-card__icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-blue);
  opacity: 0.6;
}

.servizio-card:hover .servizio-card__icon {
  transform: translateY(-3px);
}

.servizio-card:hover .servizio-card__icon svg {
  opacity: 1;
  transition: opacity var(--transition-fast);
}

.servizio-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.servizio-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 1023px) {
  .servizi__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .servizi__grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRONTO INTERVENTO
   ============================================ */
.pronto {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pronto::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 120%;
  background: var(--bg-dark-panel);
  clip-path: polygon(20% 0, 100% 8%, 100% 92%, 0 100%);
  z-index: 0;
}

.pronto .container { position: relative; z-index: 1; }

.pronto__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.pronto__text .section-header__label {
  color: var(--accent-red);
}

.pronto__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.pronto__desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pronto__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pronto__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.pronto__feature-icon {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .pronto::before { display: none; }
  .pronto__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================
   COME LAVORIAMO (Process)
   ============================================ */
.come-lavoriamo {
  background: var(--bg-primary);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-primary);
  transition: all var(--transition-normal);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 107, 165, 0.15);
}

.step__number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0.1;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 1023px) {
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .steps__grid { grid-template-columns: 1fr; }
}

/* ============================================
   TRUST BADGES
   ============================================ */
.badges {
  background: var(--bg-secondary);
}

.badges__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.badge-item {
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: all var(--transition-normal);
}

.badge-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.badge-item__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 1rem;
}

.badge-item__icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-blue);
  opacity: 0.7;
}

.badge-item:hover .badge-item__icon svg {
  opacity: 1;
}

.badge-item__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.badge-item__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
}

@media (max-width: 1023px) {
  .badges__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .badges__grid { grid-template-columns: 1fr; }
}

/* ============================================
   PREVENTIVO (Quote Form)
   ============================================ */
.preventivo {
  background: var(--bg-primary);
}

.preventivo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.preventivo__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.preventivo__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.preventivo__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-light);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

@media (max-width: 767px) {
  .preventivo__inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-submit { align-self: stretch; }
}

/* ============================================
   LAVORI RECENTI
   ============================================ */
.lavori {
  background: var(--bg-secondary);
}

.lavori__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.lavoro-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: all var(--transition-normal);
}

.lavoro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.lavoro-card__tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.lavoro-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.lavoro-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 767px) {
  .lavori__grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTATTI — Dark Section
   ============================================ */
.contatti-section {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contatti-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 40%;
  height: 120%;
  background: var(--bg-dark-panel);
  clip-path: polygon(0 0, 100% 8%, 80% 100%, 0 92%);
  z-index: 0;
}

.contatti-section .container { position: relative; z-index: 1; }

.contatti__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contatti__text .section-header__label {
  color: rgba(30, 107, 165, 0.7);
}

.contatti__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.contatti__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.7;
}

.contatti__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contatti__block-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
}

.contatti__block p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  line-height: 1.7;
}

.contatti__phone {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
  transition: color var(--transition-fast);
  position: relative;
}

.contatti__phone:hover { color: var(--accent-blue); }

.contatti__phone::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: width var(--transition-normal);
}

.contatti__phone:hover::after { width: 100%; }

.contatti__map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--accent-blue);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contatti__map-link:hover { color: #fff; }

@media (max-width: 767px) {
  .contatti-section::before { display: none; }
  .contatti__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}

.footer__text {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  background: var(--accent-blue);
  box-shadow: 0 2px 12px var(--accent-blue-glow);
}

.back-to-top:hover {
  background: var(--accent-red);
  box-shadow: 0 4px 20px rgba(212, 43, 43, 0.3);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  transition: all var(--transition-normal);
  letter-spacing: 0.04em;
}

.btn--cta {
  position: relative;
  overflow: hidden;
}

.btn--cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(25deg);
  transition: left 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.btn--cta:hover::after { left: 120%; }
.btn:active { transform: translateY(0) scale(0.98); transition: all 80ms ease; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .hero__title { font-size: 2.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .section { padding: 4rem 0; }
}

/* ============================================
   THE 1% — Precision Details
   ============================================ */

/* Subtle grain for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Service cards — number color shift on hover */
.servizio-card:hover .servizio-card__number {
  color: var(--accent-blue);
  transition: color var(--transition-fast);
}

/* Hero data — subtle hover shift */
.hero__data-item {
  transition: transform var(--transition-normal);
  cursor: default;
}

.hero__data-item:hover {
  transform: translateX(4px);
}

.hero__data-item:hover .hero__data-number {
  text-shadow: 0 0 20px rgba(30, 107, 165, 0.2);
  transition: text-shadow var(--transition-fast);
}

/* Step hover — border color accent */
.step:hover .step__number {
  opacity: 0.25;
  transition: opacity var(--transition-fast);
}

/* Contact section ambient glow */
.contatti-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 107, 165, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: contact-glow 6s ease-in-out infinite;
}

@keyframes contact-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  body::after { display: none; }
  .contatti-section::after { animation: none; }
  .emergency-bar__icon { animation: none; }
}

/* ============================================
   FOOTER multi-colonna + legale (v1.2)
   ============================================ */
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer__col p {
  margin-bottom: 0.4rem;
}

.footer__col a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__col a:hover {
  color: var(--accent-red);
}

.footer__legal {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   COOKIE BANNER (Garante 10/06/2021 n. 231)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(247, 249, 252, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--accent-blue);
  padding: 1.25rem 1rem;
  z-index: 10000;
  box-shadow: 0 -8px 30px rgba(15, 34, 55, 0.12);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookie-banner__text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}
