@font-face { font-family: Lato; font-weight: 400; font-display: swap; src: url(/assets/fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap; src: url(/assets/fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 900; font-display: swap; src: url(/assets/fonts/lato-900.woff2) format("woff2"); }

:root {
  --ivory: #F6F2EA;
  --paper: #FCFAF5;
  --ink: #2B2D2F;
  --ink-soft: #5A5C5E;
  --line: #D9D2C4;
  --bronze: #8A6A3F;
  --bronze-dark: #6F5430;
  --err: #A33A2A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.55 Lato, system-ui, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.4rem); font-weight: 900; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 900; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
a { color: var(--bronze-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
section { padding: 56px 0; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

.btn {
  display: inline-block; background: var(--ink); color: var(--paper); border: 0; border-radius: 4px;
  padding: 16px 26px; font: 700 1.05rem/1.2 Lato, sans-serif; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--bronze-dark); }
.btn-full { width: 100%; padding: 18px; }

/* Hero */
.hero { padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 36px; }
.eyebrow { margin: 0 0 14px; color: var(--bronze-dark); font-weight: 700; font-size: .92rem; }
.lead { margin: 18px 0 26px; font-size: 1.15rem; max-width: 34em; }
.hint { margin: 12px 0 0; font-size: .92rem; color: var(--ink-soft); }

.section-drawing { margin: 0; }
.section-drawing svg { display: block; width: 100%; max-width: 420px; height: auto; }
.section-drawing figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); max-width: 420px; }
.hatch-line { stroke: var(--line); stroke-width: 2; }
.wall { stroke: var(--ink); stroke-width: 1.5; }
.box, .frame { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.thin { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.fill-ink { fill: var(--ink); }
.accent-fill { fill: var(--bronze); }
.glass { stroke: var(--bronze); stroke-width: 1.5; }
.callout line { stroke: var(--bronze); stroke-width: 1; }
.callout circle { fill: var(--bronze); }
.callout .k { font: 700 15px Lato, sans-serif; fill: var(--ink); }
.callout .v { font: 400 13px Lato, sans-serif; fill: var(--ink-soft); }

/* Problema */
.pains { list-style: none; margin: 24px 0 0; padding: 0; }
.pains li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.12rem; }
.pains li:last-child { border-bottom: 1px solid var(--line); }

/* Cosa non troverai */
.no-promo { padding-top: 0; }
.no-promo p { margin: 16px 0 0; font-size: 1.12rem; }
.no-promo .no-promo-end { font-weight: 700; }

/* Metodo */
.method { background: var(--ink); color: var(--paper); }
.steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { counter-increment: s; border-top: 1px solid #55575A; padding-top: 14px; }
.steps li::before { content: counter(s); display: block; font-weight: 900; font-size: 2.2rem; line-height: 1; color: #C9A876; margin-bottom: 10px; }
.when { display: block; font-size: .85rem; font-weight: 700; color: #C9A876; margin-bottom: 4px; }
.steps p { margin: 6px 0 0; color: #D8D6D0; }

/* Cosa ricevi / Chi siamo */
.two-col { display: grid; gap: 44px; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 6px; border-left: 2px solid var(--bronze); border-bottom: 2px solid var(--bronze); transform: rotate(-45deg); }
.about p { margin: 20px 0 0; }

/* Materiali e profili */
.materials { background: var(--paper); border-top: 1px solid var(--line); }
.m-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-weight: 700; }
.m-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.materials p { margin: 6px 0 0; }
.materials .m-lead { margin: 16px 0 18px; }
.m-schema { margin: 0; }
.m-schema svg { display: block; width: 100%; height: auto; }
.m-schema figcaption { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }
.w-frame { fill: var(--ink); }
.w-glass { fill: #DCE3E2; }
.w-label { font: 700 24px Lato, sans-serif; fill: var(--ink); }
.w-sub { font: 400 21px Lato, sans-serif; fill: var(--ink-soft); }

/* Modulo */
.request { background: var(--paper); border-top: 1px solid var(--line); padding-bottom: 72px; scroll-margin-top: 0; }
.form-intro { margin: 10px 0 26px; color: var(--ink-soft); }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
input[type=text], input[type=tel] {
  width: 100%; padding: 14px; font: 400 17px Lato, sans-serif; color: var(--ink);
  background: #fff; border: 1px solid #A9A296; border-radius: 4px;
}
.choices { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.choices.stack { grid-auto-flow: row; }
.choices label { display: block; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 0; height: 0; }
.choices span { display: block; text-align: center; padding: 13px 8px; background: #fff; border: 1px solid #A9A296; border-radius: 4px; line-height: 1.25; }
.choices input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.err { margin: 6px 0 0; color: var(--err); font-size: .92rem; }
.invalid input[type=text], .invalid input[type=tel], .invalid .choices span { border-color: var(--err); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot { padding: 28px 0 92px; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--bronze-dark); text-decoration: underline; cursor: pointer; }

/* WhatsApp fisso, solo mobile. I 76px lasciano libera l'etichetta di Netlify in basso a destra (non si può togliere dal piano gratuito). */
.wa {
  position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 20; display: block; text-align: center;
  background: #1F7A4D; color: #fff; font-weight: 700; padding: 14px; border-radius: 4px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.wa[hidden], body.no-wa .wa { display: none; }

/* Banner cookie */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper);
  border-top: 2px solid var(--ink); padding: 16px 20px 76px;
}
.cookie p { margin: 0 0 12px; font-size: .92rem; max-width: 720px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; }
.cookie button { padding: 12px; font: 700 .95rem Lato, sans-serif; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); cursor: pointer; }
.cookie button.yes { background: var(--ink); color: var(--paper); }

/* Pagine interne */
.page { padding: 44px 0 64px; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 18px; }
.page h2 { font-size: 1.2rem; font-weight: 700; margin: 30px 0 8px; letter-spacing: 0; }
.page p, .page ul { margin: 0 0 12px; }
.page table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 12px; }
.page th, .page td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.back { display: inline-block; margin-bottom: 24px; }
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks ul { padding-left: 20px; }

@media (min-width: 760px) {
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
  section { padding: 76px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 72px; }
  .wa { display: none; }
  .foot { padding-bottom: 28px; }
  .cookie { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
  .cookie p { margin: 0; }
  .cookie-actions { flex: none; width: 320px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
