:root {
  --pine: #087a51;
  --pine-dark: #055337;
  --sage: #dce8df;
  --ink: #122019;
  --muted: #5b665f;
  --line: #d7ddd8;
  --paper: #f9faf8;
  --white: #fff;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(8, 30, 19, .13);
  font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.layout { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; top: -60px; left: 18px; padding: 12px 16px; background: var(--pine); color: #fff; text-decoration: none; transition: top .2s ease; }
.skip-link:focus { top: 18px; }

.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px max(24px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid #e7ece8; }
.brand-lockup { display: flex; align-items: center; gap: 16px; }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 184px; height: auto; max-height: 64px; object-fit: contain; }
.brand-divider { width: 1px; height: 45px; background: #d7ddd8; }
.brand-wnd img { width: 112px; max-height: 58px; mix-blend-mode: multiply; }
.header-copy { display: grid; gap: 3px; text-align: right; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.header-copy strong { color: var(--ink); font-size: 13px; }

.hero { position: relative; min-height: 420px; display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 20, 14, .88) 0%, rgba(7,20,14,.67) 40%, rgba(7,20,14,.18) 74%), url('/assets/pittino-hero.jpg') center / cover no-repeat; }
.hero-content { position: relative; z-index: 1; padding-block: 42px 64px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 62px; font-size: 12px; color: rgba(255,255,255,.78); }
.breadcrumbs a { text-underline-offset: 3px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--pine); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #91d9b6; }
h1 { max-width: 590px; margin: 0; font-size: clamp(42px, 7vw, 76px); line-height: .95; font-weight: 620; letter-spacing: -.055em; }
.hero-lead { max-width: 485px; margin: 24px 0 0; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.5; }
.hero-cta { margin-top: 28px; }

.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: end; padding-block: 76px; }
.intro h2, .quote-header h2, .success-card h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -.045em; }
.intro > p { max-width: 455px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.quote-section { padding: 68px 0 88px; background: #eaf0ec; }
.quote-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.required-note { margin: 0 0 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.required-note span, em { color: var(--pine); font-style: normal; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid #cbd5ce; background: rgba(255,255,255,.55); }
.step { position: relative; display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 16px 22px; color: #7b8981; }
.step + .step::before { position: absolute; left: 0; top: 17px; bottom: 17px; width: 1px; background: #cbd5ce; content: ''; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #a5b4aa; border-radius: 50%; color: #607167; font-size: 13px; font-weight: 700; }
.step span:last-child { display: grid; gap: 3px; font-size: 14px; }
.step strong { font-weight: 700; }
.step small { font-size: 11px; }
.step.is-active { color: var(--ink); background: #fff; }
.step.is-active .step-number, .step.is-done .step-number { border-color: var(--pine); background: var(--pine); color: #fff; }
.step.is-done { color: var(--pine-dark); }

#quote-form { margin-top: 0; background: #fff; box-shadow: var(--shadow); }
.form-status { min-height: 0; margin: 0; }
.form-status:not(:empty) { padding: 14px 32px; border-bottom: 1px solid var(--line); font-size: 14px; }
.form-status.is-error { color: #7b1e17; background: #fff6f5; }
.form-status.is-info { color: #075338; background: #edf9f1; }
.form-step { min-width: 0; margin: 0; padding: 44px 48px 48px; border: 0; }
.form-step > legend { width: 100%; padding: 0; font-size: 29px; font-weight: 670; letter-spacing: -.035em; }
.form-step > legend span { display: block; margin-bottom: 8px; color: var(--pine); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.step-intro { max-width: 620px; margin: 14px 0 35px; color: var(--muted); line-height: 1.6; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 22px; }
.field { position: relative; }
.field label, .choice-group legend { display: block; margin-bottom: 9px; color: #26342c; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #bfcac2; border-radius: 0; background: #fff; color: var(--ink); outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.field input, .field select { height: 50px; padding: 0 14px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #486055 50%), linear-gradient(135deg, #486055 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 138px; padding: 13px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(8,122,81,.13); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field-error { min-height: 17px; margin: 6px 0 0; color: var(--danger); font-size: 12px; line-height: 1.35; }
.choice-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 22px; margin-top: 35px; }
.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group-wide { grid-column: 1 / -1; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { position: relative; display: flex; align-items: center; min-height: 54px; padding: 10px 13px; border: 1px solid #bfcac2; background: #fff; color: #26342c; font-size: 14px; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.choice-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-card span::before { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 9px; border: 1px solid #a6b5ab; border-radius: 50%; content: ''; vertical-align: -3px; }
.choice-card:has(input:checked) { border-color: var(--pine); background: #f0f8f3; color: var(--pine-dark); font-weight: 700; }
.choice-card:has(input:checked) span::before { border: 5px solid var(--pine); }
.choice-group.is-invalid .choice-row { outline: 1px solid var(--danger); outline-offset: 3px; }
.consents { margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--line); }
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; max-width: 800px; color: #3f4d45; font-size: 13px; line-height: 1.55; cursor: pointer; }
.checkbox-line + .field-error { margin-left: 26px; }
.checkbox-line input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--pine); }
.checkbox-line a { color: var(--pine-dark); text-underline-offset: 3px; }
.checkbox-line.marketing { margin-top: 17px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.form-actions-end { justify-content: flex-end; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 23px; border: 1px solid transparent; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid #8bd6af; outline-offset: 3px; }
.button-primary { background: var(--pine); color: #fff; }
.button-primary:hover { background: var(--pine-dark); }
.button-primary:disabled { cursor: wait; opacity: .7; transform: none; }
.button-secondary { border-color: #aebbb2; background: #fff; color: #314038; }
.button-secondary:hover { border-color: var(--pine); color: var(--pine-dark); }
.product-preview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(220px, 1.15fr); gap: 26px; align-items: center; margin-top: 32px; padding: 28px; border: 1px solid #d7ddd8; background: #fff; }
.product-preview h3 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.03em; }
.product-preview p:not(.section-kicker) { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.product-canvas { display: grid; min-height: 280px; place-items: center; overflow: hidden; border: 1px solid #edf0ed; background: #fff; }
.product-render { --frame-colour: #48554d; position: relative; display: grid; width: min(72%, 320px); min-width: 90px; min-height: 90px; aspect-ratio: 1 / 1; place-items: center; border: clamp(7px, 1.8vw, 14px) solid var(--frame-colour); background: linear-gradient(145deg, #eff6f5, #cddfdd); box-shadow: 0 12px 22px rgba(18, 32, 25, .16); }
.product-render::before, .product-render::after { position: absolute; background: var(--frame-colour); content: ''; }
.product-render::before { top: 0; bottom: 0; left: 50%; width: clamp(4px, .7vw, 7px); transform: translateX(-50%); }
.product-render::after { right: 0; bottom: 50%; left: 0; height: clamp(4px, .7vw, 7px); transform: translateY(50%); }
.product-render.is-sliding::before { left: 58%; }
.product-render.is-sliding::after { display: none; }
.product-sash { position: absolute; inset: 8%; border: 2px solid rgba(255,255,255,.85); }
.product-handle { position: absolute; top: 50%; right: 13%; width: 5px; height: 25px; transform: translateY(-50%); background: var(--frame-colour); }
.product-preview-caption { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #edf0ed; }
.additional-configurations { margin-top: 26px; padding: 28px; border: 1px solid #d7ddd8; background: #fff; }
.additional-configurations h3 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.additional-configurations > div > p:not(.section-kicker) { max-width: 650px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.additional-product-configs { display: grid; gap: 18px; margin-top: 22px; }
.additional-product-config { position: relative; margin: 0; padding: 24px; border: 1px solid #cbd5ce; }
.additional-product-config legend { padding: 0 8px 0 0; color: var(--ink); font-size: 16px; font-weight: 750; }
.additional-product-config.is-invalid { border-color: var(--danger); }
.additional-product-config .field-grid { gap: 18px 20px; }
.additional-product-config-error { min-height: 17px; margin: 12px 0 0; color: var(--danger); font-size: 12px; }
.additional-product-preview { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1fr); gap: 18px; align-items: center; grid-column: 1 / -1; margin-top: 20px; padding: 16px; border: 1px solid #edf0ed; background: #fff; }
.additional-product-canvas { display: grid; min-height: 170px; place-items: center; background: #fff; }
.additional-product-render { --frame-colour: #48554d; position: relative; display: grid; width: min(76%, 220px); min-width: 74px; min-height: 74px; aspect-ratio: 1 / 1; place-items: center; border: 8px solid var(--frame-colour); background: linear-gradient(145deg, #eff6f5, #cddfdd); box-shadow: 0 8px 15px rgba(18, 32, 25, .14); }
.additional-product-render::before, .additional-product-render::after { position: absolute; background: var(--frame-colour); content: ''; }
.additional-product-render::before { top: 0; bottom: 0; left: 50%; width: 5px; transform: translateX(-50%); }
.additional-product-render::after { right: 0; bottom: 50%; left: 0; height: 5px; transform: translateY(50%); }
.additional-product-render.is-sliding::before { left: 58%; }
.additional-product-render.is-sliding::after { display: none; }
.additional-product-caption { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.remove-product-config { position: absolute; top: 15px; right: 15px; min-height: 32px; padding: 0 10px; border: 1px solid #c1cdc4; background: #fff; color: #314038; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.add-product-config { margin-top: 22px; }
.field-message { margin-top: 28px; }
.success-card { max-width: 700px; margin: 0 auto; padding: 72px 35px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 25px; border-radius: 50%; background: var(--pine); color: #fff; font-size: 27px; }
.success-card p:not(.section-kicker) { max-width: 530px; margin: 20px auto 31px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.site-footer { padding: 38px 0; background: #101b15; color: rgba(255,255,255,.76); }
.footer-content { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; font-size: 13px; }
.footer-logos { display: flex; align-items: center; gap: 10px; padding: 5px; background: #fff; }
.footer-logos img { width: 145px; height: auto; padding: 0; background: transparent; }
.footer-logos .footer-wnd { width: 55px; height: 55px; object-fit: contain; mix-blend-mode: multiply; }
.footer-content div { display: grid; gap: 5px; }
.footer-content strong { color: #fff; font-size: 13px; }
.footer-content a { color: #a7d8bb; text-underline-offset: 3px; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 760px) {
  .layout { width: min(100% - 32px, 1120px); }
  .site-header { min-height: 78px; padding-inline: 16px; }
  .brand img { width: 143px; max-height: 50px; }
  .brand-lockup { gap: 9px; }
  .brand-divider { height: 34px; }
  .brand-wnd img { width: 72px; max-height: 42px; }
  .header-copy { display: none; }
  .hero { min-height: 390px; }
  .hero-backdrop { background-position: 58% center; }
  .hero-content { padding-bottom: 43px; }
  .breadcrumbs { margin-bottom: 47px; }
  .hero-lead { font-size: 15px; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding-block: 51px; }
  .intro > p { font-size: 16px; }
  .quote-section { padding-block: 48px 56px; }
  .quote-header { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 65px; padding: 12px 16px; }
  .step + .step::before { top: 0; right: 16px; bottom: auto; width: auto; height: 1px; }
  .form-step { padding: 32px 20px 34px; }
  .form-step > legend { font-size: 25px; }
  .field-grid, .choice-groups { grid-template-columns: 1fr; gap: 20px; }
  .product-preview { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .product-canvas { min-height: 240px; }
  .additional-configurations, .additional-product-config { padding: 20px; }
  .additional-product-preview { grid-template-columns: 1fr; }
  .additional-product-canvas { min-height: 150px; }
  .remove-product-config { position: static; margin: 0 0 16px auto; }
  .choice-group-wide { grid-column: auto; }
  .choice-row { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions-end { align-items: stretch; }
  .button { width: 100%; }
  .footer-content { grid-template-columns: 1fr; gap: 17px; }
}

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


/* Assistente Pittino — widget conversazionale orientato al preventivo */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.chat-widget { position: fixed; z-index: 45; right: 24px; bottom: 24px; width: min(390px, calc(100vw - 32px)); font-family: inherit; }
.chat-panel { overflow: hidden; margin-bottom: 12px; border: 1px solid rgba(8, 79, 53, .20); background: #fff; box-shadow: 0 24px 65px rgba(11, 35, 21, .25); }
.chat-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 20px 17px; background: var(--pine-dark); color: #fff; }
.chat-header p { margin: 0 0 5px; color: #9be0bd; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.chat-header h2 { margin: 0; font-size: 18px; line-height: 1.12; letter-spacing: -.025em; }
.chat-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: transparent; color: #fff; font-size: 22px; line-height: 1; }
.chat-body { display: grid; gap: 12px; max-height: min(46vh, 400px); padding: 16px; overflow-y: auto; background: #f5f8f5; }
.chat-message { max-width: 91%; padding: 12px 13px; font-size: 13px; line-height: 1.5; }
.chat-message p { margin: 0; white-space: pre-wrap; }
.chat-message-bot { justify-self: start; border: 1px solid #dce7df; background: #fff; color: #223229; }
.chat-message-user { justify-self: end; background: var(--pine); color: #fff; }
.chat-quote-link, .chat-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: var(--pine-dark); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-decoration: underline; text-underline-offset: 3px; }
.chat-quote-link { margin-top: 10px; padding: 0; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px; border-top: 1px solid #e3eae5; background: #fff; }
.chat-suggestions button { min-height: 30px; padding: 5px 8px; border: 1px solid #cbd9d0; background: #fff; color: #305240; font-size: 11px; font-weight: 700; }
.chat-suggestions button:hover { border-color: var(--pine); color: var(--pine-dark); }
.chat-composer { display: grid; grid-template-columns: 1fr 42px; gap: 8px; padding: 12px 16px; border-top: 1px solid #e3eae5; background: #fff; }
.chat-composer input { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid #bdcbc1; border-radius: 0; outline: none; font-size: 13px; }
.chat-composer input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(8,122,81,.11); }
.chat-composer button { display: grid; place-items: center; border: 0; background: var(--pine); color: #fff; font-size: 19px; }
.chat-composer button:disabled { opacity: .62; cursor: wait; }
.chat-cta { width: 100%; min-height: 44px; border-top: 1px solid #cce0d3; background: #edf7f0; color: var(--pine-dark); text-decoration: none; text-transform: uppercase; }
.chat-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; gap: 11px; padding: 0 16px; border: 0; background: var(--pine); color: #fff; box-shadow: 0 12px 30px rgba(8, 64, 41, .28); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.chat-toggle:hover { background: var(--pine-dark); }
.chat-toggle-dot { width: 9px; height: 9px; border-radius: 50%; background: #b7f0cf; box-shadow: 0 0 0 4px rgba(183,240,207,.20); }
.chat-toggle span:not(.chat-toggle-dot) { margin-right: auto; }
.chat-toggle strong { font-size: 20px; font-weight: 400; transform: rotate(45deg); }
.chat-toggle[aria-expanded="true"] strong { transform: rotate(-45deg); }
.chat-message-typing p::after { display: inline-block; width: 18px; margin-left: 4px; color: var(--pine); content: '•••'; letter-spacing: 2px; animation: chat-pulse 1s infinite; }
@keyframes chat-pulse { 50% { opacity: .35; } }
@media (max-width: 760px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel { margin-bottom: 10px; }
  .chat-body { max-height: min(46vh, 350px); }
  .chat-toggle { min-height: 50px; }
}
