/* SodiumStorage · vetrina con le regole del brand Heiwit: solo i token qui sotto, Inter, nessuna ombra diffusa. */
/* Inter ospitato sul sito: nessuna richiesta a Google Fonts (più veloce e senza trasmettere l'IP dei visitatori). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --brand: #F08227; --brand-soft: #F0B580;
  --ocean: #034D66; --ocean-2: #2F4858; --sky: #84ADBA;
  --ink: #403C4E; --paper: #FFFFFF; --sand: #F5F0E8;
  --ink-soft: color-mix(in srgb, var(--ink) 78%, transparent);
  --ink-line: color-mix(in srgb, var(--ink) 14%, transparent);
  --sky-line: color-mix(in srgb, var(--sky) 55%, transparent);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px; --gutter: 24px; --radius: 12px; --radius-sm: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ocean); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 30; padding: 10px 14px; background: var(--ocean); color: var(--paper); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* Tipografia */
h1 { font-size: 56px; line-height: 64px; }
h2 { font-size: 40px; line-height: 48px; }
h3 { font-size: 24px; line-height: 32px; font-weight: 600; }
.title-2l .title-accent, .title-2l .title-base { display: block; }
.title-accent { color: var(--brand); }
.title-base { color: var(--ink); }
.kicker { margin-bottom: 16px; color: var(--ocean); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.small, .note { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.note { margin-top: 32px; max-width: 820px; }
.price, .facts dt, .tech-num, .step-num, .order-reference { font-variant-numeric: tabular-nums; }

/* Bottoni e link */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: var(--paper); }
.btn-primary:hover { background: var(--ocean); }
.btn-secondary { background: var(--paper); color: var(--ocean); border-color: var(--ocean); }
.btn-secondary:hover { background: var(--ocean); color: var(--paper); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.text-link { color: var(--ocean); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sky); transition: text-decoration-color .15s; }
.text-link:hover { text-decoration-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Testata */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--sky-line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ocean); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ocean); color: var(--paper); font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.brand-mark sup { color: var(--brand); font-size: 11px; }
.brand-name { display: flex; flex-direction: column; font-size: 17px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.brand-name small { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean-2); }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ocean); border-color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.languages { display: flex; gap: 2px; }
.languages a { padding: 6px 7px; color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 6px; }
.languages a[aria-current] { color: var(--ocean); background: var(--sand); }
.cart-trigger { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ocean); border-radius: var(--radius-sm); background: var(--paper); color: var(--ocean); font-size: 15px; font-weight: 600; transition: background-color .15s, color .15s; }
.cart-trigger:hover { background: var(--ocean); color: var(--paper); }
.cart-trigger b { min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 12px; background: var(--ocean); color: var(--paper); font-size: 13px; }
.cart-trigger:hover b { background: var(--paper); color: var(--ocean); }

/* Sezioni */
.section { padding: 96px 0; }
.section-sand { background: var(--sand); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head > p { color: var(--ink); }
.section-head > .btn { justify-self: end; }

/* Hero */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hero-copy .lead { margin-top: 24px; max-width: 620px; }
.frame { margin: 0; background: var(--paper); border: 1px solid var(--brand); border-radius: var(--radius); overflow: hidden; }
.hero-figure { padding: 24px; }
.hero-figure img { width: 100%; max-height: 460px; object-fit: contain; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 72px 0 0; border-top: 1px solid var(--sky); }
.facts > div { padding: 24px 24px 32px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--sky-line); }
.facts dt { font-size: 32px; line-height: 40px; font-weight: 700; color: var(--ocean); letter-spacing: -0.02em; }
.facts dd { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* Card */
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--brand); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; }
.card-media { display: flex; align-items: center; justify-content: center; height: 240px; padding: 20px; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--ink-line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px 20px 24px; }
.card-title { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--ocean); text-decoration: underline; text-underline-offset: 4px; }
.card-spec { color: var(--ocean-2); font-size: 16px; }

.system-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 24px; }
.system-card { transition: border-color .15s; }
.system-card:hover .text-link { text-decoration-color: var(--brand); }
.system-card .card-body { gap: 6px; }
.system-card .card-title { font-size: 24px; line-height: 32px; }
.system-card .text-link { margin-top: 8px; }
.system-card-wide { grid-row: span 2; }
.system-card-wide .card-media { height: 440px; }
.system-grid > .system-card:not(.system-card-wide) { flex-direction: row; }
.system-grid > .system-card:not(.system-card-wide) .card-media { width: 44%; height: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--ink-line); }
.system-grid > .system-card:not(.system-card-wide) .card-media img { height: 180px; }
.system-grid > .system-card:not(.system-card-wide) .card-body { justify-content: center; }

/* Fascia divisoria (una sola per pagina) */
.band { padding: 72px 0; background: linear-gradient(90deg, var(--ocean) 0%, var(--ocean) 35%, var(--brand) 100%); color: var(--paper); }
.band h2 { max-width: 820px; color: var(--paper); font-size: 40px; line-height: 48px; font-weight: 700; }
.band p { margin-top: 16px; max-width: 640px; color: var(--paper); font-size: 17px; }

/* Tecnologia */
.tech-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.tech-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tech-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tech-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 24px 0; border-top: 1px solid var(--sky-line); }
.tech-num, .step-num { color: var(--ocean); font-size: 15px; font-weight: 700; line-height: 32px; }
.tech-list h3 { font-size: 20px; line-height: 32px; }
.tech-list p { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }

/* Passi dell'ordine */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { padding-top: 20px; border-top: 2px solid var(--ocean); }
.steps h3 { margin-top: 8px; font-size: 20px; line-height: 28px; }
.steps p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.contact-line { margin-top: 40px; font-size: 17px; }
.contact-line a { font-weight: 600; }

/* Catalogo */
.page-intro { padding: 72px 0 24px; }
.page-intro .lead { margin-top: 24px; max-width: 720px; }
.page-intro .note { margin-top: 12px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.category-nav a { padding: 8px 14px; border: 1px solid var(--sky); border-radius: var(--radius-sm); color: var(--ocean); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .15s; }
.category-nav a:hover { border-color: var(--ocean); }
.catalog-section { padding: 56px 0; }
.catalog-section + .catalog-section { border-top: 1px solid var(--sky-line); }
.catalog-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: end; margin-bottom: 32px; }
.catalog-head h2 { font-size: 32px; line-height: 40px; }
.catalog-head p { color: var(--ink-soft); font-size: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 2px 8px; border: 1px solid var(--sky); border-radius: 6px; color: var(--ocean-2); font-size: 14px; line-height: 22px; }
.availability { color: var(--ocean-2); font-size: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.price { color: var(--ink); font-size: 19px; font-weight: 700; white-space: nowrap; }
.product-card .text-link { font-size: 15px; }

/* Pagina prodotto */
.product-page { padding: 32px 0 96px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; font-size: 14px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ocean); }
.product-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.product-figure { padding: 32px; position: sticky; top: 100px; }
.product-figure img { width: 100%; max-height: 520px; object-fit: contain; }
.product-summary h1 { font-size: 40px; line-height: 48px; }
.sku { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.product-summary .chips { margin-top: 20px; }
.product-summary .lead { margin-top: 20px; font-size: 18px; }
.buy-box { margin-top: 32px; padding: 24px; border: 1px solid var(--sky); border-radius: var(--radius); background: var(--sand); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.price-line .price { font-size: 32px; line-height: 40px; }
.price-line span { font-size: 14px; color: var(--ink-soft); }
.buy-box .availability { margin-top: 6px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 10px; }
.buy-row label { font-size: 15px; font-weight: 500; }
.buy-row input { width: 84px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--sky); border-radius: var(--radius-sm); background: var(--paper); font-variant-numeric: tabular-nums; }
.buy-row .btn { flex: 1; min-width: 200px; }
.product-section { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--sky-line); }
.product-section h2 { font-size: 32px; line-height: 40px; }
.section-intro, .empty-note { margin-top: 12px; max-width: 760px; color: var(--ink-soft); font-size: 16px; }
.spec-table { width: 100%; max-width: 900px; margin-top: 24px; border-collapse: collapse; font-size: 16px; }
.spec-table th, .spec-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--sky-line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--ocean-2); font-weight: 500; }
.doc-group { margin-top: 32px; font-size: 20px; line-height: 28px; }
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.doc-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; height: 100%; padding: 14px 16px; border: 1px solid var(--sky); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.doc-item:hover { border-color: var(--brand); }
.doc-icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ocean); color: var(--paper); }
.doc-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.doc-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.lang-badge { padding: 0 6px; border: 1px solid var(--ocean); border-radius: 4px; color: var(--ocean); font-size: 13px; font-weight: 600; line-height: 20px; }
.back-link { display: inline-block; margin-top: 48px; }

/* Ordine */
.checkout-page, .thanks-page { padding: 56px 0 96px; }
.page-intro-compact h1 { font-size: 40px; line-height: 48px; }
.page-intro-compact .lead { margin-top: 16px; max-width: 760px; font-size: 17px; }
.form-errors { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--brand); border-radius: var(--radius-sm); background: var(--sand); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-top: 40px; }
.form-panel { margin: 0 0 24px; padding: 24px; border: 1px solid var(--sky); border-radius: var(--radius); }
.form-panel legend { display: flex; gap: 12px; padding: 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.form-panel legend span { color: var(--ocean); font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.form-grid .span-two { grid-column: span 2; }
.form-grid input, .form-grid textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--sky); border-radius: var(--radius-sm); background: var(--paper); font-weight: 400; }
.form-grid input:focus, .form-grid textarea:focus, .buy-row input:focus { border-color: var(--ocean); outline: 2px solid var(--brand); outline-offset: 1px; }
.payment-choice b { font-size: 17px; }
.payment-choice p { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }
.terms-check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 24px; font-size: 16px; }
.terms-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ocean); }
.honeypot { position: absolute; left: -9999px; }
.submit-order { width: 100%; margin-bottom: 12px; }

/* Contatti */
.contact-page { padding: 56px 0 96px; }
.contact-form, .contact-sent { margin-top: 40px; }
.contact-form .form-panel legend { padding: 0 8px; }
.contact-product { margin: 0 0 16px; font-size: 16px; }
.contact-sent { padding: 24px; border: 1px solid var(--brand); border-radius: var(--radius); }
/* Riquadro WhatsApp nei contatti: logo bianco su cerchio oceano (WhatsApp ammette il logo bianco, il brand Heiwit non il verde). */
.contact-whatsapp { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 40px; padding: 24px; border: 1px solid var(--brand); border-radius: var(--radius); }
.whatsapp-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ocean); color: var(--paper); }
.whatsapp-mark svg { width: 28px; height: 28px; }
.contact-whatsapp h2 { font-size: 24px; line-height: 32px; }
.contact-whatsapp-copy > p { margin-top: 6px; }
.contact-whatsapp-number { font-weight: 600; color: var(--ocean); font-variant-numeric: tabular-nums; }
.contact-or { margin-top: 32px; font-size: 16px; color: var(--ink-soft); }
.contact-or + .contact-form { margin-top: 16px; }
.contact-sent h2 { margin: 0 0 8px; font-size: 24px; }
.contact-sent p { margin: 0 0 20px; }
/* Il marchio reCAPTCHA si può nascondere se il modulo cita Google (regola di Google): lo cita la nota sotto il tasto. */
.grecaptcha-badge { visibility: hidden; }
.order-summary { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--brand); border-radius: var(--radius); }
.summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.summary-heading h2 { font-size: 24px; line-height: 32px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; padding-top: 16px; border-top: 1px solid var(--sky); font-weight: 600; }
.thanks-page h1 { font-size: 40px; line-height: 48px; }
.thanks-page .lead { margin-top: 16px; }
.order-reference { display: inline-block; margin: 24px 0; padding: 10px 16px; border: 1px solid var(--ocean); border-radius: var(--radius-sm); color: var(--ocean); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.thanks-order { margin-bottom: 32px; padding: 24px; border: 1px solid var(--brand); border-radius: var(--radius); }
.thanks-order h2 { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.thanks-order > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--sky-line); }
.thanks-total { font-weight: 600; border-bottom: 0 !important; }

/* Carrello */
.cart-backdrop { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 45%, transparent); opacity: 0; pointer-events: none; transition: opacity .2s; }
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column; width: min(440px, 100%); padding: 24px; background: var(--paper); border-left: 1px solid var(--sky); transform: translateX(100%); transition: transform .2s; }
.cart-drawer.open { transform: translateX(0); }
body.cart-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--sky); }
.drawer-head h2 { font-size: 24px; line-height: 32px; }
.drawer-close { width: 40px; height: 40px; border: 1px solid var(--sky); border-radius: var(--radius-sm); background: var(--paper); color: var(--ocean); font-size: 22px; line-height: 1; }
.cart-lines { flex: 1; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--sky-line); }
.cart-line-main b { display: block; font-size: 16px; font-weight: 600; }
.cart-line-main span { font-size: 14px; color: var(--ink-soft); }
.cart-line-price { font-variant-numeric: tabular-nums; }
.cart-line-controls { grid-column: span 2; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cart-line-controls button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--sky); border-radius: 6px; background: var(--paper); color: var(--ocean); }
.cart-line-controls button[data-remove] { margin-left: auto; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.cart-line-controls button:disabled { opacity: .4; cursor: not-allowed; }
.empty-cart { padding: 24px 0; color: var(--ink-soft); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--sky); font-weight: 600; }
.drawer-checkout { width: 100%; }
.drawer-continue { margin-top: 14px; text-align: center; }
.checkout-lines .cart-line:last-child { border-bottom: 0; }

/* Piè di pagina */
.site-footer { padding: 64px 0 32px; background: var(--ocean); color: var(--paper); }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; }
.footer-grid .footer-title { margin: 0 0 14px; max-width: none; color: var(--paper); font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-grid p { margin-top: 16px; max-width: 460px; font-size: 16px; }
.brand-inverse { color: var(--paper); }
.brand-inverse .brand-mark { background: var(--paper); color: var(--ocean); }
.brand-inverse .brand-name small { color: var(--sky); }
.maker { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.heiwit-logo { width: 111px; height: auto; flex: 0 0 auto; }
.footer-apps p { margin-top: 0; font-size: 15px; color: color-mix(in srgb, var(--paper) 85%, transparent); }
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.app-badges a { display: block; border-radius: 6px; }
.app-badges img { width: 135px; height: auto; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 16px; }
.footer-links a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.footer-links a:hover { border-color: var(--brand); }
.footer-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; margin-top: 48px; padding-top: 24px; background: linear-gradient(color-mix(in srgb, var(--paper) 25%, transparent), color-mix(in srgb, var(--paper) 25%, transparent)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: 14px; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.footer-bottom span:last-child { text-align: right; }

/* Tablet */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { gap: 20px; }
}
@media (max-width: 900px) {
  h1 { font-size: 40px; line-height: 48px; }
  h2, .band h2 { font-size: 32px; line-height: 40px; }
  .header-inner { flex-wrap: wrap; gap: 12px 20px; padding-top: 12px; padding-bottom: 0; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; padding-bottom: 6px; }
  .main-nav a { white-space: nowrap; font-size: 15px; }
  .section-head, .hero-grid, .tech-layout, .product-hero, .checkout-layout, .catalog-head, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { gap: 16px; }
  .section-head > .btn { justify-self: start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--sky-line); }
  .system-grid { grid-template-columns: minmax(0, 1fr); }
  .system-card-wide { grid-row: auto; }
  .system-card-wide .card-media { height: 320px; }
  .product-grid, .doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-photo img { aspect-ratio: 16 / 10; }
  .product-figure, .order-summary { position: static; }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .footer-bottom span:last-child { text-align: left; }
}
/* Telefono */
@media (max-width: 600px) {
  .contact-whatsapp { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px; align-items: start; }
  .contact-whatsapp h2 { font-size: 20px; line-height: 28px; }
  .whatsapp-mark { width: 48px; height: 48px; }
  .whatsapp-mark svg { width: 24px; height: 24px; }
  .contact-whatsapp-cta { grid-column: 1 / -1; }
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 36px; line-height: 42px; }
  h2, .band h2, .product-section h2, .catalog-head h2 { font-size: 28px; line-height: 36px; }
  .lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; }
  .facts { margin-top: 48px; grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div + div { padding: 18px 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--sky-line); }
  .facts dt { font-size: 28px; line-height: 34px; }
  .site-header { position: static; }
  .header-inner { gap: 10px 12px; min-height: 64px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; font-size: 13px; }
  .brand-name { font-size: 15px; }
  .brand-name small { display: none; }
  .header-actions { gap: 6px; }
  .languages a { padding: 6px 4px; font-size: 13px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 14px; }
  .cart-trigger span { display: none; }
  .cart-trigger { padding: 8px 10px; }
  .system-grid > .system-card:not(.system-card-wide) { flex-direction: column; }
  .system-grid > .system-card:not(.system-card-wide) .card-media { width: 100%; height: 220px; border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .system-card-wide .card-media, .card-media { height: 220px; }
  .tech-list, .steps, .product-grid, .doc-list, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-two { grid-column: auto; }
  .band { padding: 56px 0; }
  .product-summary h1, .page-intro-compact h1, .thanks-page h1 { font-size: 30px; line-height: 38px; }
  .price-line .price { font-size: 28px; }
  .spec-table th, .spec-table td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .spec-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--sky-line); }
  .catalog-section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Condizioni di vendita */
.terms-page { padding: 56px 0 96px; }
.terms-page h1 { font-size: 40px; line-height: 48px; }
.terms-page .small { margin-top: 8px; }
.terms-page .lead { margin-top: 20px; }
.seller-box { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--brand); border-radius: var(--radius); }
.seller-box h2, .terms-section h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
.seller-box p { margin-top: 8px; font-size: 16px; }
.terms-toc { margin-top: 32px; padding: 20px 24px; background: var(--sand); border-radius: var(--radius); }
.terms-toc ol { columns: 2; column-gap: 32px; }
.terms-toc li { margin: 4px 0; font-size: 15px; break-inside: avoid; }
.terms-section { margin-top: 40px; scroll-margin-top: 96px; }
.terms-section p { margin-top: 12px; font-size: 16px; line-height: 1.65; }
@media (max-width: 600px) { .terms-page h1 { font-size: 30px; line-height: 38px; } .terms-toc ol { columns: 1; } }

/* Inverter divisi per fase */
.phase-title { margin: 8px 0 16px; padding-top: 16px; border-top: 1px solid var(--sky-line); color: var(--ocean); font-size: 20px; line-height: 28px; }
.phase-title:first-of-type { padding-top: 0; border-top: 0; }
.phase-title ~ .product-grid { margin-bottom: 32px; }

/* Guide, domande frequenti, chi siamo */
.article-page { padding: 56px 0 96px; }
.article-page h1 { font-size: 40px; line-height: 48px; }
.article-page .updated { margin-top: 12px; }
.article-page .lead { margin-top: 20px; }
.answer-box { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--brand); border-radius: var(--radius); }
.answer-box b { color: var(--ocean); }
.article-section { margin-top: 48px; scroll-margin-top: 96px; }
.article-section h2 { font-size: 28px; line-height: 36px; }
.article-section p { margin-top: 14px; line-height: 1.7; }
.article-section ul { margin-top: 14px; }
.article-section li { position: relative; margin-top: 8px; padding-left: 22px; line-height: 1.6; }
.article-section li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 10px; height: 2px; background: var(--brand); }
.table-scroll { margin-top: 20px; overflow-x: auto; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--sky-line); text-align: left; vertical-align: top; }
.compare-table thead th { color: var(--ocean); font-weight: 600; border-bottom: 2px solid var(--sky); }
.compare-table tbody th { color: var(--ocean-2); font-weight: 500; }
.sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--sky-line); }
.sources h2 { font-size: 20px; line-height: 28px; }
.sources ol { margin-top: 12px; padding-left: 22px; list-style: decimal; font-size: 15px; }
.sources li { margin-top: 6px; }
.faq-group { margin-top: 56px; scroll-margin-top: 96px; }
.faq-group > h2 { font-size: 28px; line-height: 36px; }
.faq-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--sky-line); scroll-margin-top: 96px; }
.faq-item h3 { font-size: 20px; line-height: 28px; }
.faq-item p { margin-top: 10px; line-height: 1.7; }
.home-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.home-faq h3 { font-size: 20px; line-height: 28px; }
.home-faq p { margin-top: 10px; font-size: 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card .card-body { gap: 12px; padding: 28px; }
.guide-card .kicker { margin-bottom: 0; }
.guide-card .card-title { font-size: 22px; line-height: 30px; }
.guide-card-copy { font-size: 16px; }
.guide-card .text-link { margin-top: auto; padding-top: 8px; }
.guide-card:hover .card-title { color: var(--ocean); }
.guide-links { display: grid; gap: 10px; margin-top: 20px; }
.catalog-help { margin-top: 20px; max-width: 760px; font-size: 16px; }
.price-per-kwh { margin-top: 6px; color: var(--ocean-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.related-grid { margin-top: 24px; }
@media (max-width: 900px) { .guide-grid, .home-faq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .article-page h1 { font-size: 30px; line-height: 38px; } .article-section h2, .faq-group > h2 { font-size: 24px; line-height: 32px; } .answer-box { padding: 16px 18px; } }
.grid-note { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--brand); border-radius: var(--radius-sm); background: var(--paper); font-size: 15px; line-height: 1.55; }
.grid-note b { color: var(--ocean); }
.grid-note a { white-space: nowrap; }
.grid-note-short { padding-left: 10px; border-left: 2px solid var(--brand); color: var(--ink); font-size: 14px; line-height: 1.45; }
