:root {
  --site-primary: #242424;
  --site-primary-light: #818181;
  --site-primary-dark: #181818;
  --site-secondary: #656565;
  --site-accent: #735eea;
  --site-background: #fcfcfc;
  --site-surface: #f6f6f6;
  --site-text-primary: #0d0d0d;
  --site-text-secondary: #4e4e4e;
  --bs-body-bg: #fcfcfc;
  --bs-body-color: #0d0d0d;
  --bs-body-font-family: 'Hanken Grotesk', sans-serif;
  --bs-link-color: #242424;
  --bs-link-hover-color: #181818;
  --type-h1: clamp(2rem, 4vw, 2.5rem);
  --type-h2: 1.6rem;
  --type-h3: 1.25rem;
  --type-body: 1rem;
  --type-small: 0.875rem;
  --type-eyebrow: 0.72rem;
  --section-y: clamp(3rem, 6vw, 5rem);
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
  font-size: var(--type-body);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--site-text-primary);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--type-h1); line-height: 1.08; }
h2 { font-size: var(--type-h2); line-height: 1.18; }
h3 { font-size: var(--type-h3); line-height: 1.25; }
p { color: var(--site-text-secondary); text-wrap: pretty; }
small, .small { font-size: var(--type-small); }

.btn-primary { background-color: var(--site-primary); border-color: var(--site-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--site-primary-dark); border-color: var(--site-primary-dark); color: #fff; }
.btn-outline-primary { color: var(--site-primary); border-color: var(--site-primary); background-color: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--site-primary); border-color: var(--site-primary); color: #fff; }
.bg-primary { background-color: var(--site-primary) !important; }
.text-primary { color: var(--site-primary) !important; }
.border-primary { border-color: var(--site-primary) !important; }
a { color: var(--site-primary); }
a:hover { color: var(--site-primary-dark); }

.btn {
  border-radius: 12px;
  padding: 0.72rem 1.05rem;
  font-weight: 650;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  border-width: 0;
}

.btn:hover { transform: translateY(-1px); }
.btn-outline-primary { border-width: 1px; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.04); }

.form-control, .form-select {
  border-radius: 6px;
  border: 1px solid #dedede;
  background-color: #fff;
  color: var(--site-text-primary);
  padding: 0.78rem 0.9rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--site-primary-light);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.05);
}

.card {
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: none;
  background-color: var(--site-surface);
}

.service-card { height: 100%; padding: 1.35rem; }
.stack-panel { padding: 1.35rem; border-radius: 12px; background: var(--site-surface); border: 1px solid #e8e8e8; }

.site-section { padding-top: var(--section-y); padding-bottom: var(--section-y); background: var(--site-background); }
.section-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: var(--type-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 750;
  color: var(--site-secondary);
}
.prose { max-width: 68ch; }
.text-secondary-site { color: var(--site-text-secondary); }

.nav-centered {
  background: rgba(252, 252, 252, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eeeeee;
}
.centered-collapse {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

@media (min-width: 992px) {
  .navbar-expand-lg .centered-collapse {
    display: grid !important;
  }
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.navbar-brand { color: var(--site-text-primary); font-weight: 760; letter-spacing: -0.02em; }
.navbar-brand:hover { color: var(--site-primary-dark); }
.logo-mark { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; }
.brand-center .logo-mark { width: 46px; height: 46px; }
.nav-link { color: var(--site-text-primary); font-weight: 620; font-size: 0.95rem; }
.nav-link:hover, .nav-link:focus { color: var(--site-accent); }
.navbar-toggler { border: 0; padding: 0.45rem; }
.navbar-toggler:focus { box-shadow: none; outline: 1px solid #d9d9d9; }

.hero-fullbleed {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(0,0,0,0.24), rgba(0,0,0,0.24)), url('images/hero-manutenzione-giardini-napoli.jpg');
  background-size: cover;
  background-position: center;
}
.hero-fullbleed h1, .hero-fullbleed p { color: #fff; }
.hero-copy { max-width: 760px; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.hero-meta { color: rgba(255,255,255,0.9); font-size: var(--type-small); font-variant-numeric: tabular-nums; }

.content-image, .map-frame, .contact-image {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
}
.content-image { min-height: 360px; max-height: 440px; }
.contact-image { height: 260px; }
.map-wrap { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--site-surface); }
.map-frame { height: 100%; border: 0; }

.icon-fill {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(115, 94, 234, 0.09);
  color: var(--site-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-fill svg { width: 24px; height: 24px; fill: currentColor; }
.area-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.area-list li { padding: 0.55rem 0; color: var(--site-text-secondary); }
.area-list li strong { color: var(--site-text-primary); font-weight: 700; }

.contact-form { background: var(--site-surface); border: 1px solid #e8e8e8; border-radius: 12px; padding: clamp(1.25rem, 3vw, 2rem); }
.confirmation-message { display: none; margin-top: 1rem; color: var(--site-primary); font-weight: 650; }
.confirmation-message.is-visible { display: block; }

.site-footer {
  min-height: 280px;
  padding: 4rem 0 2rem;
  background: var(--site-background);
  border-top: 1px solid #eeeeee;
}
.footer-logo { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; }
.footer-tagline { max-width: 38ch; }
.footer-links a { display: inline-block; margin: 0 0.75rem 0.35rem 0; text-decoration: none; color: var(--site-text-secondary); }
.footer-links a:hover { color: var(--site-primary); }
.footer-legal { color: var(--site-text-secondary); font-size: var(--type-small); }
.footer-legal a { color: var(--site-text-secondary); text-decoration: none; }
.footer-legal a:hover { color: var(--site-primary); }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  background: #fff;
  box-shadow: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin-bottom: 0; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }

.legal-main { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.legal-main h2 { margin-top: 2rem; }
.simple-link-list a { display: block; padding: 0.45rem 0; text-decoration: none; }

@media (max-width: 991.98px) {
  .centered-collapse {
    display: block;
    padding-top: 1rem;
  }
  .nav-left, .nav-right { justify-content: flex-start; }
  .brand-center { display: none !important; }
  .hero-fullbleed { min-height: 520px; text-align: center; }
}
