:root {
  --site-primary: #bd3200;
  --site-primary-light: #e38a81;
  --site-primary-dark: #9e0000;
  --site-secondary: #c08c00;
  --site-accent: #336bf2;
  --site-background: #ffe9ca;
  --site-surface: #fff2d4;
  --site-text-primary: #2c0d07;
  --site-text-secondary: #62514e;
  --bs-body-bg: #ffe9ca;
  --bs-body-color: #2c0d07;
  --bs-body-font-family: 'Mulish', sans-serif;
  --bs-link-color: #bd3200;
  --bs-link-hover-color: #9e0000;
  --type-h1: clamp(2.4rem, 5vw, 3.4rem);
  --type-h2: 2.2rem;
  --type-h3: 1.5rem;
  --type-body: 1.125rem;
  --type-small: 0.95rem;
  --type-eyebrow: 0.78rem;
  --section-py: clamp(5rem, 8vw, 7rem);
  --radius-card: 12px;
  --radius-button: 9999px;
  --radius-input: 6px;
  --radius-image: 8px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
  font-size: var(--type-body);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--type-h1); line-height: 1.05; }
h2 { font-size: var(--type-h2); line-height: 1.12; }
h3 { font-size: var(--type-h3); line-height: 1.2; }
p, li { text-wrap: pretty; }
.lead { font-size: 1.2rem; line-height: 1.65; }
.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: var(--radius-button);
  padding: 0.82rem 1.28rem;
  font-weight: 800;
  box-shadow: var(--shadow-button);
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  border-width: 1px;
}
.btn:hover, .btn:focus { transform: scale(1.02); }
.btn-lg { padding: 1rem 1.55rem; }

.card {
  border: 0;
  border-radius: var(--radius-card);
  background: var(--site-surface);
  box-shadow: var(--shadow-card);
}
.form-control, .form-select {
  border-radius: var(--radius-input);
  border-color: rgba(44, 13, 7, 0.18);
  padding: 0.82rem 0.95rem;
  background-color: #fff8ea;
  color: var(--site-text-primary);
}
.form-control:focus, .form-select:focus {
  border-color: var(--site-primary);
  box-shadow: 0 0 0 0.2rem rgba(189, 50, 0, 0.16);
}
label { font-weight: 800; font-size: var(--type-small); color: var(--site-text-primary); }

.site-navbar {
  background: rgba(255, 233, 202, 0.94);
  backdrop-filter: blur(10px);
  transition: padding 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}
.site-navbar.nav-shrunk {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  box-shadow: 0 10px 26px rgba(44, 13, 7, 0.09);
  background: rgba(255, 233, 202, 0.98);
}
.logo-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: width 180ms ease, height 180ms ease;
}
.nav-shrunk .logo-mark { width: 44px; height: 44px; }
.navbar-brand span {
  font-family: 'Quicksand', serif;
  font-weight: 800;
  color: var(--site-text-primary);
}
.nav-link {
  color: var(--site-text-primary);
  font-weight: 800;
  font-size: 0.98rem;
}
.nav-link:hover, .nav-link:focus { color: var(--site-primary); }

.hero-fullbleed {
  min-height: 670px;
  position: relative;
  display: grid;
  place-items: center;
  background-image: linear-gradient(rgba(44, 13, 7, 0.24), rgba(44, 13, 7, 0.24)), url('images/hero-autolavaggio-serra-ricco.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  margin-top: 0;
}
.hero-content { max-width: 780px; padding-top: 5rem; }
.hero-sub { max-width: 680px; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, 0.94); }
.hero-title, .hero-sub { opacity: 0; }

.section-pad { padding-top: var(--section-py); padding-bottom: var(--section-py); background: var(--site-background); }
.eyebrow {
  display: block;
  font-size: var(--type-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--site-primary);
  margin-bottom: 0.85rem;
}
.prose { max-width: 68ch; color: var(--site-text-secondary); line-height: 1.72; }
.text-secondary-site { color: var(--site-text-secondary); }
.section-visual {
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: auto;
  object-fit: cover;
}
.visual-panel {
  border-radius: var(--radius-card);
  background: var(--site-surface);
  box-shadow: var(--shadow-card);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.service-card { height: 100%; padding: 1.7rem; }
.service-number {
  font-family: 'Quicksand', serif;
  color: var(--site-primary);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.area-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.area-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(44, 13, 7, 0.12);
  font-weight: 800;
}
.area-list li:last-child { border-bottom: 0; }
.phone-hero {
  font-family: 'Quicksand', serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--site-primary);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.contact-box { padding: clamp(1.4rem, 3vw, 2rem); }
.confirmation {
  display: none;
  border-radius: var(--radius-card);
  background: #fff8ea;
  padding: 1rem 1.1rem;
  color: var(--site-text-primary);
  font-weight: 800;
}
.confirmation.is-visible { display: block; }

.footer-large {
  padding: 4.5rem 0 2.2rem;
  background: var(--site-background);
}
.footer-logo { width: 92px; height: 92px; object-fit: contain; }
.footer-tagline { max-width: 34ch; color: var(--site-text-secondary); }
.footer-links a { display: inline-block; margin: 0 0.7rem 0.45rem 0; font-weight: 800; text-decoration: none; }
.footer-meta { color: var(--site-text-secondary); font-size: var(--type-small); }
.footer-meta a { font-weight: 800; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  max-width: 760px;
  margin: 0 auto;
  background: #fff8ea;
  border-radius: var(--radius-card);
  box-shadow: 0 18px 46px rgba(44, 13, 7, 0.16);
  padding: 1rem;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin-bottom: 0; color: var(--site-text-secondary); font-size: var(--type-small); }

.page-hero { padding-top: 8rem; padding-bottom: 3rem; }
.legal-main { padding-top: 7rem; padding-bottom: 5rem; }
.legal-content { max-width: 850px; }
.legal-main h2 { margin-top: 2.4rem; }
.not-found-main { min-height: 56vh; padding-top: 9rem; padding-bottom: 5rem; display: flex; align-items: center; }

@media (max-width: 991.98px) {
  .hero-fullbleed { min-height: 610px; }
  .site-navbar { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .navbar-collapse { padding-top: 1rem; }
}
