:root {
  --ink: #0f1012;
  --ink-2: #17191c;
  --ink-3: #24272c;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e3dfd5;
  --line-dark: #2e3238;
  --text: #16181b;
  --muted: #5b5f65;
  --muted-dark: #a7abb1;
  --brass: #c9a25a;
  --brass-deep: #8a6a2f;
  --wa: #25d366;
  --wa-ink: #06301a;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 16, 18, .06), 0 12px 32px rgba(15, 16, 18, .10);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* l'attributo hidden deve vincere sui display: grid/flex */
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--white { background: var(--card); }
.section--ink { background: var(--ink); color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 14px;
}
.section--ink .eyebrow, .hero .eyebrow { color: var(--brass); }
.section-title { font-size: clamp(28px, 4.2vw, 40px); font-weight: 750; max-width: 22ch; }
.section-lead { color: var(--muted); margin-top: 14px; max-width: 60ch; font-size: 18px; }
.section--ink .section-lead { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: inherit; font-size: 16.5px; font-weight: 700; text-decoration: none;
  border: 0; border-radius: 12px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: #d6b06a; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: #3ee07a; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding: 18px 0;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo span { color: var(--brass); }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 650; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.header-phone svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  color: #fff;
  background: var(--ink);
  padding: 96px 0 56px;
}
/* The photo covers the TOP of the hero and fades into the ink behind the form.
   Capping its height on mobile avoids the huge zoom a full-height cover would cause. */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: -2;
  height: clamp(440px, 76vh, 680px);
  background: url("hero.jpg") 64% center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(15,16,18,.58) 0%, rgba(15,16,18,.70) 38%,
    rgba(15,16,18,.90) 66%, var(--ink) 88%);
}
.hero-grid { display: grid; gap: 36px; align-items: start; }
.hero h1 { font-size: clamp(34px, 7.4vw, 58px); font-weight: 800; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero-sub { margin-top: 18px; font-size: clamp(17px, 2.2vw, 20px); color: #d9dce0; max-width: 46ch; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: #eef0f2; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--brass); margin-top: 1px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-models { margin-top: 26px; font-size: 14px; color: var(--muted-dark); letter-spacing: .02em; }
/* Photos are shown, never hidden behind text: rounded, full width of their column.
   max-width/height must be neutralised or the width+height HTML attributes win over aspect-ratio. */
.step-photo, .model-photo, .cta-photo {
  width: 100%; max-width: none; height: auto;
  object-fit: cover; border-radius: 18px;
}


/* ---------- Form ---------- */
.form-card {
  background: var(--card); color: var(--text);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 26px 22px 22px;
  scroll-margin-top: 16px;
}
.form-card h2 { font-size: 24px; font-weight: 800; }
.form-card .form-sub { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label { font-size: 14px; font-weight: 700; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: #fbfaf7; border: 1.5px solid var(--line); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235b5f65' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(201,162,90,.35); }
.consent { grid-column: span 2; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.consent a { color: var(--text); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: span 2; display: grid; gap: 12px; margin-top: 4px; }
.form-note { text-align: center; font-size: 13.5px; color: var(--muted); }
.form-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.form-or::before, .form-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-error {
  display: none; margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: #fbeceb; color: var(--danger); font-size: 14.5px; font-weight: 600;
}
.form-error.is-visible { display: block; }

/* Confirmation shown after the message has been handed over to WhatsApp */
.form-done { display: grid; gap: 12px; text-align: center; padding: 8px 0 4px; }
.form-done[hidden] { display: none; }
.form-done h3 { font-size: 22px; font-weight: 800; }
.form-done p { color: var(--muted); font-size: 15.5px; }
.form-done .btn { margin-top: 4px; }

/* ---------- Steps ---------- */
.how { display: grid; gap: 22px; margin-top: 40px; align-items: start; }
.step-photo { aspect-ratio: 4 / 5; object-position: center 62%; }
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num { font-size: 44px; font-weight: 800; line-height: 1; color: var(--brass); letter-spacing: -0.04em; }
.step h3 { font-size: 21px; margin-top: 14px; }
.step p { color: var(--muted); margin-top: 8px; }

/* ---------- Models ---------- */
/* Two deliberately different cards: the modern one dark like a configurator,
   the classic one warm like a certificate. Model years do the talking. */
.models { display: grid; gap: 18px; margin-top: 40px; }
.model-card { border-radius: 18px; padding: 28px 24px; }
.model-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.model-card h3 { font-size: clamp(22px, 3vw, 27px); margin-top: 10px; }
.model-card > p { font-size: 15px; margin-top: 8px; }
.model-list { list-style: none; padding: 0; margin: 22px 0 0; }
.model-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0; font-size: 16.5px;
}
.model-list li + li { border-top: 1px solid currentColor; }
.model-list .m-name { font-weight: 700; letter-spacing: -0.01em; }
.model-list .m-years { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.model-card--modern { background: var(--ink); color: #fff; }
.model-photo { margin-top: 22px; aspect-ratio: 16 / 9; object-position: center 62%; border-radius: 12px; }
.model-card--modern .model-kicker { color: var(--brass); }
.model-card--modern > p { color: var(--muted-dark); }
.model-card--modern .model-list li + li { border-color: rgba(255,255,255,.12); }
.model-card--modern .m-years { color: var(--muted-dark); }

.model-card--classic {
  background: linear-gradient(160deg, #fbf7ee 0%, #f3ece0 100%);
  box-shadow: inset 0 0 0 1.5px rgba(138,106,47,.35);
}
.model-card--classic .model-kicker { color: var(--brass-deep); }
.model-card--classic > p { color: var(--muted); }
.model-card--classic .model-list li + li { border-color: rgba(138,106,47,.22); }
.model-card--classic .m-name { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 18px; }
.model-card--classic .m-years { color: var(--brass-deep); font-weight: 600; }

.models-foot {
  margin-top: 28px; display: grid; gap: 14px; justify-items: start;
  padding: 22px 24px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.models-foot p { color: var(--muted); }
.models-foot strong { color: var(--text); }

/* ---------- Compare ---------- */
.compare { display: grid; gap: 16px; margin-top: 40px; }
.cmp { border-radius: var(--radius); padding: 24px; background: var(--card); border: 1px solid var(--line); }
.cmp h3 { font-size: 19px; }
.cmp ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.cmp li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.cmp li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.cmp .no svg { color: #a3a7ad; }
.cmp .no { color: var(--muted); }
.cmp--us { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; }
.cmp--us .yes svg { color: var(--brass); }
.cmp-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--brass); color: var(--ink); font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}

/* ---------- Statement band ---------- */
.statement {
  position: relative; color: #fff; text-align: center;
  padding: 96px 0;
  background:
    linear-gradient(180deg, rgba(15,16,18,.88) 0%, rgba(15,16,18,.62) 45%, rgba(15,16,18,.92) 100%),
    url("fascia.jpg") center 62% / cover no-repeat, var(--ink);
  background-blend-mode: normal, luminosity, normal; /* kills the red cast of the photo */
}
.statement .wrap { max-width: 760px; }
.statement-title { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.statement-title em { font-style: normal; color: var(--brass); }
.statement-sub { margin-top: 16px; font-size: 17.5px; color: #dfe2e6; }
.statement-rule { width: 56px; height: 3px; background: var(--brass); margin: 0 auto 22px; border-radius: 2px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--ink-3); }

/* ---------- About ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about-photo {
  position: relative; margin: 0; width: 100%; max-width: 360px;
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--ink-3);
}
.about-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 22%; }
.about-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(15,16,18,.85));
  color: #fff; font-size: 14.5px; font-weight: 650;
}
.about-photo figcaption span { display: block; font-weight: 500; color: #cfd3d8; font-size: 13px; }
.about-links { margin-top: 20px; font-size: 15px; color: var(--muted); }
.about-links a { color: var(--text); font-weight: 650; }
.about-text p { color: var(--muted); margin-top: 14px; }
.about-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.about-facts li { display: flex; gap: 10px; font-weight: 600; }
.about-facts svg { width: 22px; height: 22px; color: var(--brass-deep); flex: none; }

/* ---------- FAQ ---------- */
.faq { margin: 36px auto 0; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-grid { display: grid; gap: 28px; align-items: center; }
.cta-photo { aspect-ratio: 3 / 2; object-position: center 58%; }
.final .hero-cta { margin-top: 26px; }

/* FAQ block sits in the middle of the section, title included */
.faq-head { text-align: center; }
.faq-head .section-title, .faq-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-2); color: var(--muted-dark); font-size: 14px; padding: 36px 0 110px; }
.footer .wrap { display: grid; gap: 10px; }
.footer a { color: #d9dce0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.disclaimer { font-size: 12.5px; color: #80858c; }

/* ---------- Sticky mobile bar ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15,16,18,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-dark);
  transition: transform .25s ease;
}
.sticky.is-hidden { transform: translateY(110%); }
.sticky .btn { min-height: 48px; padding: 0 10px; font-size: 15px; border-radius: 10px; }
.sticky .btn--call { background: var(--ink-3); color: #fff; }
.sticky .btn--call svg { width: 20px; height: 20px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 520px; margin: 0 auto;
  background: var(--card); color: var(--text); border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 18px; font-size: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { color: var(--muted); }
.cookie a { color: var(--text); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cookie-actions .btn { min-height: 44px; font-size: 14.5px; }
.btn--light { background: var(--paper); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Simple pages (grazie / privacy) ---------- */
.page-top { background: var(--ink); color: #fff; padding: 22px 0; }
.page-top .logo { font-size: 18px; }
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; }
.page h2 { font-size: 22px; margin-top: 36px; }
.page p, .page li { color: var(--muted); margin-top: 12px; }
.page ul { padding-left: 20px; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; margin-bottom: 24px; }
.thanks-icon svg { width: 34px; height: 34px; }
.thanks-box { margin-top: 28px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.thanks-box h2 { margin-top: 0; }
.thanks-box ul { margin: 12px 0 20px; }
.draft-note { background: #fff6e0; border: 1px solid #f0d9a0; color: #6b4e12; padding: 12px 14px; border-radius: 10px; font-size: 14px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .models { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 30px 28px 26px; }
}
@media (min-width: 960px) {
  body { font-size: 17.5px; }
  .section { padding: 96px 0; }
  .hero { padding: 128px 0 104px; }
  .hero::before { inset: 0; height: auto; background-position: center; }
  .hero::after { background:
    linear-gradient(90deg, rgba(15,16,18,.96) 0%, rgba(15,16,18,.86) 46%, rgba(15,16,18,.42) 100%),
    linear-gradient(180deg, rgba(15,16,18,.35) 0%, transparent 22%, transparent 78%, rgba(15,16,18,.55) 100%); }
  .how { grid-template-columns: 5fr 7fr; gap: 40px; }
  .step-photo { position: sticky; top: 24px; }
  .final-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
  .about { grid-template-columns: 360px 1fr; gap: 56px; }
  .sticky { display: none; }
  .footer { padding-bottom: 40px; }
  .cookie { left: 24px; right: auto; bottom: 24px; margin: 0; } /* left side: the form sits on the right */
}
@media (max-width: 959px) {
  body.has-sticky .cookie { bottom: 84px; }
}
@media (max-width: 380px) {
  .header-phone span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field--half { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky { transition: none; }
}
