:root {
  --bg: #edf4f8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #14222f;
  --muted: #5e7282;
  --primary: #12364c;
  --secondary: #1c5a78;
  --accent: #6fc8ec;
  --accent-dark: #2f9ecf;
  --line: rgba(18, 54, 76, 0.1);
  --shadow: 0 24px 60px rgba(15, 43, 60, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(111, 200, 236, 0.24), transparent 26%),
    radial-gradient(circle at bottom right, rgba(28, 90, 120, 0.08), transparent 24%),
    linear-gradient(180deg, #f5f9fc 0%, #edf4f8 100%);
}

a,
button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 249, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 104px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand h2 {
  font-size: 1.15rem;
  line-height: 1;
}

.brand h2,
.eyebrow,
.section-heading h2,
.contact-card h2,
footer p,
.hero h1,
.hero-text {
  margin: 0;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.nav-cta,
.btn,
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta,
.btn-primary,
.whatsapp-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 16px 30px rgba(47, 158, 207, 0.24);
}

.nav-cta,
.btn {
  padding: 10px 18px;
  font-weight: 700;
}

.nav-cta:hover,
.btn:hover,
.whatsapp-btn:hover,
.card:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  background-image: url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(18, 54, 76, 0.9), rgba(18, 54, 76, 0.48)),
    linear-gradient(0deg, rgba(24, 33, 38, 0.24), rgba(24, 33, 38, 0.24));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -120px 50%;
  width: 620px;
  height: 620px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 200, 236, 0.2), transparent 65%);
  filter: blur(10px);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: #fff;
  text-align: center;
  animation: rise 0.8s ease both;
  z-index: 1;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-text {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.services,
.contact {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px;
}

.about,
.benefits {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.services {
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  inset: 44px 24px 0;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: -1;
}

.section-heading h2,
.contact-card h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading p:last-child,
.contact-card p:last-of-type {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.about-panel {
  padding: 42px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(18, 54, 76, 0.96), rgba(28, 90, 120, 0.88)),
    radial-gradient(circle at top right, rgba(111, 200, 236, 0.24), transparent 28%);
  color: #fff;
  box-shadow: var(--shadow);
}

.about-panel .section-heading p:last-child,
.about-panel .section-heading h2,
.about-panel .section-heading .eyebrow {
  color: #fff;
}

.about-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-card,
.benefit-card {
  border-radius: 26px;
  padding: 24px;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-card h3,
.benefit-card h3,
footer h3,
footer h4 {
  margin: 0 0 12px;
}

.info-card p,
.benefit-card p,
.contact-point p,
.footer-grid p,
.form-note {
  margin: 0;
  line-height: 1.7;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(111, 200, 236, 0.16);
  box-shadow: var(--shadow);
}

.benefit-card strong {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  min-height: 280px;
  padding: 22px;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  text-align: left;
  background-color: #0f1f24;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 30, 42, 0.08), rgba(13, 30, 42, 0.78));
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(111, 200, 236, 0.18), transparent 45%);
  z-index: 0;
}

.card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.card-pulizie {
  background-image: url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=900&q=80");
}

.card-disinfestazione {
  background-image: url("https://images.unsplash.com/photo-1773681983681-14652ac4802a?auto=format&fit=crop&w=900&q=80");
}

.card-deblattizzazione {
  background-image: url("https://images.unsplash.com/photo-1744834933909-0a812c51f391?auto=format&fit=crop&w=900&q=80");
}

.card-derattizzazione {
  background-image: url("https://images.unsplash.com/photo-1751105539481-5b992235dc5c?auto=format&fit=crop&w=900&q=80");
}

.contact {
  padding-top: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  padding: 42px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.82)),
    radial-gradient(circle at top right, rgba(111, 200, 236, 0.18), transparent 30%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(111, 200, 236, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-points {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-point {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(111, 200, 236, 0.14);
}

.contact-point span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-point a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.contact-form {
  padding: 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  border: 1px solid rgba(111, 200, 236, 0.16);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-form .section-heading {
  min-height: 110px;
}

.contact-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(18, 54, 76, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.whatsapp-btn {
  margin-top: 22px;
  padding: 14px 22px;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 27, 31, 0.62);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: min(720px, 100%);
  padding: 34px;
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  position: relative;
  animation: rise 0.25s ease;
  border: 1px solid rgba(111, 200, 236, 0.18);
}

.modal-content h2 {
  margin: 0 0 18px;
  font-size: 2rem;
}

.modal-content p {
  color: var(--muted);
  line-height: 1.7;
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #eef6fa;
  color: var(--text);
  cursor: pointer;
  font-size: 1.6rem;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  background: #25d366;
  font-weight: 800;
  box-shadow: 0 18px 35px rgba(37, 211, 102, 0.35);
}

footer {
  padding: 36px 24px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 24px;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  text-decoration: none;
}

.footer-copy {
  max-width: 1180px;
  margin: 26px auto 0;
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 90px;
  }

  .hero {
    min-height: auto;
    padding: 110px 20px 80px;
  }

  .hero h1 {
    line-height: 1.02;
  }

  .services,
  .contact,
  .about,
  .benefits {
    padding: 72px 20px;
  }

  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .modal-content,
  .contact-form,
  .about-panel {
    padding: 26px;
  }
}
@media (max-width: 768px) {

  /* NAVBAR più compatta su mobile */
  .topbar {
    position: sticky;
    top: 0;
    padding: 4px 0;
  }

  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    gap: 8px;
  }

  .nav-links {
    display: none; /* nasconde il menu su mobile */
  }

  .nav-cta {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* LOGO più piccolo */
  .brand {
    gap: 6px;
  }

  .brand-logo {
    width: 55px;
  }

  .brand h2 {
    font-size: 0.85rem;
  }

  .eyebrow {
    font-size: 0.55rem;
  }

  /* HERO più compatta */
  .hero {
    min-height: 55vh;
    padding: 70px 15px 40px;
  }

  .hero h1 {
    font-size: 1.7rem;
    line-height: 1.1;
  }

  .hero-text {
    font-size: 0.95rem;
    margin-top: 12px;
  }

  /* CARD SERVIZI più piccole */
  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    min-height: 140px;
    padding: 14px;
  }

  .card span {
    font-size: 1rem;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  /* Riduce padding sezioni */
  .services,
  .contact,
  .about,
  .benefits {
    padding: 50px 15px;
  }

  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .modal-content,
  .contact-form,
  .about-panel {
    padding: 20px;
  }

  /* Pulsante whatsapp più piccolo */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 0.8rem;
    right: 15px;
    bottom: 15px;
  }
}
/* CENTRA SEZIONE SERVIZI */
.section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* CENTRA LE CARD */
.grid {
  justify-items: center;
}

/* CARD con larghezza controllata */
.card {
  width: 100%;
  max-width: 320px;
}

/* TESTO CENTRATO DENTRO CARD */
.card span {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: center;
}
.services {
  text-align: center;
}