/* ==========================================================================
   Benincà Termoidraulica — main stylesheet
   1. Tokens  2. Base  3. Layout  4. Nav  5. Heroes  6. Components
   7. Sections  8. Footer  9. Contact shortcuts  10. Motion  11. Responsive
   ========================================================================== */

/* Self-hosted (no Google Fonts request, so no visitor IP sent to Google). SIL Open Font License. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
}

/* 1. Tokens — brand colours come from the client's logo */
:root {
  --blue: #0b4ea2;          /* "BENINCÀ" lettering */
  --blue-mid: #2f86d8;
  --blue-dark: #071f3b;
  --blue-deeper: #04152a;
  --accent: #ffb347;        /* flame, light */
  --accent-strong: #f16821; /* flame, strong */
  --accent-text: #c4500f;   /* orange that passes contrast on white */
  --wa-green: #25d366;
  --wa-green-dark: #128c4b;

  --text: #0f1e31;
  --muted: #536175;
  --line: #dbe5f0;
  --surface: #ffffff;
  --surface-alt: #f2f7fc;
  --surface-tint: #e8f1fb;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(7, 31, 59, 0.06), 0 2px 8px rgba(7, 31, 59, 0.05);
  --shadow: 0 10px 30px rgba(7, 31, 59, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 31, 59, 0.18);

  --container: 1160px;
  --gutter: clamp(16px, 5vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);
  --nav-h: 72px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent-text); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; color: var(--blue-dark); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }

:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--blue-dark); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3. Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-alt); }
.section-dark { background: linear-gradient(140deg, var(--blue-dark) 0%, #0a3470 100%); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-top: 0.75rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.75); }
.section-lead-dark { color: rgba(255, 255, 255, 0.75); font-size: 1.06rem; margin-top: 0.75rem; max-width: 520px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 0.85rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent-strong); }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.section-dark .eyebrow::before, .hero .eyebrow::before, .page-hero .eyebrow::before { background: var(--accent); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-top { align-items: start; }

.prose p { color: var(--muted); font-size: 1.04rem; margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mt-sm { margin-top: 0.75rem; }
.mt-lg { margin-top: clamp(28px, 4vw, 40px); }

/* 4. Nav */
#main-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#main-nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(7, 31, 59, 0.06); }

.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--blue-dark); }
.logo:hover { color: var(--blue-dark); }
.logo-mark { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 10px rgba(7, 31, 59, 0.14); background: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-title { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--blue); }
.logo-subtitle { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px;
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface-tint); color: var(--blue); }
.nav-links a.active { color: var(--blue); background: var(--surface-tint); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 1.4rem; color: var(--blue-dark);
  align-items: center; justify-content: center;
}

/* 5. Heroes */
.hero, .page-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }

.hero {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 179, 71, 0.22), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(47, 134, 216, 0.35), transparent 60%),
    linear-gradient(140deg, var(--blue-deeper) 0%, var(--blue-dark) 40%, var(--blue) 100%);
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 120px);
}

/* faint blueprint grid behind both heroes */
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .hl { color: var(--accent); }
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: rgba(255, 255, 255, 0.82); max-width: 560px; margin-bottom: 1.9rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.8rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; }
.hero-points .ti { color: var(--accent); font-size: 1.15rem; }

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero-card .logo-big {
  width: min(220px, 60%); margin: 0 auto 1.4rem; border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.2rem; }
.hero-stat { background: rgba(4, 21, 42, 0.45); border-radius: var(--radius); padding: 0.9rem 0.6rem; }
.hero-stat strong { display: block; font-size: 1.9rem; line-height: 1; color: var(--accent); font-weight: 800; }
.hero-stat span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }
.hero-card-phone { display: block; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; }
.hero-card-phone:hover { color: var(--accent); }
.hero-card small { display: block; color: rgba(255, 255, 255, 0.62); font-size: 0.82rem; margin-top: 0.2rem; }

.page-hero {
  background:
    radial-gradient(50% 90% at 100% 0%, rgba(255, 179, 71, 0.2), transparent 60%),
    linear-gradient(140deg, var(--blue-deeper) 0%, var(--blue-dark) 45%, var(--blue) 100%);
  padding-block: clamp(48px, 7vw, 84px) clamp(48px, 7vw, 76px);
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 780px; margin-bottom: 0.8rem; }
.page-hero p { color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; max-width: 640px; }
.page-hero .btn-row { margin-top: 1.6rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.86rem; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.6); }
.breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: rgba(255, 255, 255, 0.35); }

/* 6. Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn .ti { font-size: 1.2em; }
.btn-sm { min-height: 42px; padding: 0.5rem 1.05rem; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 0.9rem 1.7rem; font-size: 1.03rem; }

.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 22px rgba(241, 104, 33, 0.3); }
.btn-primary:hover { background: #df5a16; color: #fff; }

.btn-wa { background: var(--wa-green); color: #06371c; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3); }
.btn-wa:hover { background: #2fe072; color: #06371c; }

.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.14); }

.btn-outline { background: transparent; color: var(--blue); border-color: rgba(11, 78, 162, 0.28); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Service card */
.svc-card {
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.svc-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(241, 104, 33, 0.4); }
.svc-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--blue);
  background: linear-gradient(135deg, rgba(47, 134, 216, 0.14), rgba(255, 179, 71, 0.26));
  margin-bottom: 1.1rem;
}
.svc-category { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.svc-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.svc-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.svc-more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.2rem; font-weight: 700; font-size: 0.92rem; color: var(--accent-text); }
.svc-more .ti { transition: transform 0.2s; }
.svc-card:hover .svc-more .ti { transform: translateX(4px); }

/* Feature (icon + text) */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem; color: var(--blue); background: var(--surface-tint);
}
.feature h3 { margin-bottom: 0.3rem; }
.feature p { color: var(--muted); font-size: 0.96rem; }
.section-dark .feature-icon { background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.section-dark .feature p { color: rgba(255, 255, 255, 0.72); }

.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 0.98rem;
  margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--surface-tint);
}
.step-head { display: flex; align-items: center; justify-content: space-between; }
.step-head .ti { font-size: 1.5rem; color: var(--accent-strong); margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* Stat */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; }
.stat strong { display: block; font-size: 2.2rem; line-height: 1; font-weight: 800; color: var(--blue); margin-bottom: 0.35rem; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Check list */
.check-list { display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.check-list .ti {
  flex-shrink: 0; margin-top: 0.15rem; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff; background: var(--accent-strong);
}

/* Pills */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list li { background: var(--surface-tint); color: var(--blue-dark); padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; }

/* Quote / brand statement */
.brand-panel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, #fff 0%, var(--surface-tint) 100%);
  border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); text-align: center;
}
.brand-panel img { width: min(260px, 70%); margin: 0 auto 1.5rem; border-radius: 50%; box-shadow: var(--shadow); }
.brand-panel blockquote { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; color: var(--blue-dark); line-height: 1.4; }
.brand-panel cite { display: block; margin-top: 0.7rem; color: var(--muted); font-style: normal; font-size: 0.92rem; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; color: var(--blue-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ti { flex-shrink: 0; font-size: 1.2rem; color: var(--accent-strong); transition: transform 0.2s; }
.faq details[open] summary .ti { transform: rotate(180deg); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.section-head.center + .faq { margin-inline: auto; }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.contact-methods { display: grid; gap: 0.75rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
a.contact-method { transition: background 0.15s, border-color 0.15s; }
a.contact-method:hover { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
.contact-method .ti {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; background: rgba(255, 255, 255, 0.1); color: var(--accent);
}
.contact-method.cm-wa .ti { color: var(--wa-green); }
.contact-method small { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.contact-method strong { font-size: 1.02rem; }

/* light variant (contatti page) */
.contact-methods.light .contact-method { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
.contact-methods.light a.contact-method:hover { color: var(--text); border-color: rgba(241, 104, 33, 0.45); background: var(--surface); }
.contact-methods.light .contact-method .ti { background: var(--surface-tint); color: var(--blue); }
.contact-methods.light .contact-method.cm-wa .ti { background: #e3f9ec; color: var(--wa-green-dark); }
.contact-methods.light .contact-method small { color: var(--muted); }

/* Form */
.contact-form {
  background: var(--surface); color: var(--text);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: grid; gap: 1rem;
}
.contact-form h3 { font-size: 1.25rem; color: var(--blue-dark); }
.contact-form .form-intro { color: var(--muted); font-size: 0.94rem; margin-top: -0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--blue-dark); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.95rem;
  border: 1px solid #c9d7e6; border-radius: 12px; background: #f8fbfe;
  font-size: 1rem; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-mid); background: #fff; box-shadow: 0 0 0 4px rgba(47, 134, 216, 0.15);
}
.contact-form .btn { width: 100%; }
.form-note { font-size: 0.84rem; color: var(--muted); text-align: center; }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 179, 71, 0.25), transparent 60%),
    linear-gradient(140deg, var(--blue-dark), var(--blue));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 520px; }

/* Service detail page */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.aside-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 1.1rem; }
.aside-card .btn { width: 100%; margin-bottom: 0.6rem; }
.aside-meta { border-top: 1px solid var(--line); margin-top: 0.6rem; padding-top: 1rem; display: grid; gap: 0.45rem; font-size: 0.9rem; color: var(--muted); }
.aside-meta li { display: flex; gap: 0.5rem; align-items: center; }
.aside-meta .ti { color: var(--blue); }
.detail-block + .detail-block { margin-top: clamp(40px, 5vw, 56px); }
.detail-block > h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-bottom: 1.2rem; }
.detail-block .steps { grid-template-columns: repeat(2, 1fr); }

.not-found { text-align: center; max-width: 560px; margin-inline: auto; }
.not-found .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; color: var(--surface-tint); -webkit-text-stroke: 2px var(--blue); margin-bottom: 1rem; }
.not-found p { color: var(--muted); margin: 0.6rem 0 1.6rem; }
.not-found .btn-row { justify-content: center; }

/* 8. Footer */
.site-footer { background: var(--blue-deeper); color: rgba(255, 255, 255, 0.66); padding-top: clamp(48px, 6vw, 72px); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr 1.1fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer .logo-title { color: #fff; }
.site-footer .logo-subtitle { color: rgba(255, 255, 255, 0.55); }
.footer-brand p { margin-top: 1rem; max-width: 300px; }
.footer-title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-list { display: grid; gap: 0.55rem; }
.footer-list a { color: rgba(255, 255, 255, 0.72); }
.footer-list a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: center; gap: 0.6rem; }
.footer-contact .ti { color: var(--accent); font-size: 1.1rem; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding-block: 1.3rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.45);
}

/* 9. Contact shortcuts */
#floating-wa {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa-green); color: #fff; font-size: 1.9rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
#floating-wa:hover { transform: scale(1.07); color: #fff; }

.mobile-actions { display: none; }

/* 10. Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 11. Responsive */
@media (max-width: 1024px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
  .nav-call span { display: none; }
  .nav-call { width: 44px; min-height: 44px; padding: 0; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }

  .nav-toggle { display: inline-flex; }
  .nav-call { display: none; }
  #main-nav nav {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(7, 31, 59, 0.12);
    display: none;
  }
  #main-nav.menu-open nav { display: block; }
  .nav-links { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .nav-links a { padding: 0.85rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a.active { background: none; color: var(--accent-text); }

  .section-head.center .eyebrow::before { display: none; }

  .grid-2, .grid-3, .grid-4, .steps, .detail-block .steps, .stats { grid-template-columns: 1fr; }
  .stats { gap: 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero .btn-row .btn, .page-hero .btn-row .btn { flex: 1 1 100%; }
  .cta-band .btn-row { width: 100%; }
  .cta-band .btn { flex: 1 1 100%; }

  /* bottom action bar replaces the floating bubble */
  #floating-wa { display: none; }
  .mobile-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-action {
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 48px; border-radius: 999px; font-weight: 700;
  }
  .mobile-action .ti { font-size: 1.25rem; }
  .mobile-action-call { background: var(--accent-strong); color: #fff; }
  .mobile-action-call:hover { color: #fff; }
  .mobile-action-wa { background: var(--wa-green); color: #06371c; }
  .mobile-action-wa:hover { color: #06371c; }
  body.has-mobile-actions { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* 12. Legal pages, placeholders and cookie consent */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin: 2.2rem 0 0.7rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); margin-bottom: 0.8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal strong { color: var(--text); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal code { font-size: 0.88em; background: var(--surface-tint); padding: 0.1rem 0.35rem; border-radius: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1rem; font-size: 0.93rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal-table th { background: var(--surface-alt); color: var(--blue-dark); font-weight: 700; }
.legal-summary { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--surface-tint); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 2rem; }
.legal-summary .ti { font-size: 1.6rem; color: var(--blue); flex-shrink: 0; }
.legal-summary p { margin: 0; color: var(--text); }

/* client data not supplied yet: impossible to miss */
.todo { background: #fff3c4; color: #7a4b00; border: 1px dashed #d9a400; border-radius: 4px; padding: 0 0.3rem; font-weight: 600; white-space: nowrap; }

.form-privacy { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: -0.4rem; }
.form-privacy a { text-decoration: underline; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-legal a, .link-button { color: rgba(255, 255, 255, 0.6); }
.footer-legal a:hover, .link-button:hover { color: var(--accent); }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }

/* full-width bar at the bottom: text on the left, buttons on the right */
.cookie-banner {
  position: fixed; z-index: 300; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem;
  background: var(--surface); color: var(--text);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(7, 31, 59, 0.12);
  padding: 1rem max(1.25rem, calc((100% - 1160px) / 2));
  max-height: 80vh; overflow-y: auto;
}
.cookie-text { flex: 1 1 420px; }
.cookie-banner h2 { font-size: 1rem; margin-bottom: 0.2rem; }
.cookie-banner p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.cookie-banner p a { text-decoration: underline; }
.cookie-details { flex: 1 1 100%; order: 3; display: grid; gap: 0.6rem; }
.cookie-category { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.cookie-category input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.cookie-category strong { display: block; font-size: 0.92rem; }
.cookie-category small { display: block; color: var(--muted); font-size: 0.82rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions .btn { padding-inline: 1.1rem; }
.cookie-actions [hidden] { display: none; }

@media (max-width: 760px) {
  .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom)); max-height: 70vh; padding: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 0; padding-inline: 0.5rem; }
  .footer-bottom { flex-direction: column; }
}

/* Map behind consent */
.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); min-height: 380px; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-placeholder {
  display: grid; place-items: center; align-content: center; gap: 1rem; text-align: center;
  min-height: 380px; padding: 2rem;
  background:
    linear-gradient(rgba(11, 78, 162, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(11, 78, 162, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--surface-alt);
}
.map-placeholder > .ti { font-size: 2.6rem; color: var(--blue); }
.map-placeholder p { max-width: 520px; color: var(--muted); font-size: 0.95rem; }
.map-placeholder p strong { color: var(--text); }
.map-placeholder p a { text-decoration: underline; }
.map-placeholder .btn-row { justify-content: center; }
.legal .link-button.legal-link { color: var(--blue); text-decoration: underline; font-weight: 600; }
