/*
Theme Name: ilPolistirolo Edilizia
Description: Tema per lo shop edilizia di ilPolistirolo.it: profili in EPS a metro lineare, metro quadro e pezzo. Richiede WooCommerce e il plugin "ilPolistirolo Edilizia - Shop".
Version: 2.0.0
Author: ilPolistirolo.it
Text Domain: ilp-edilizia
Requires PHP: 7.4
*/

:root {
  --blue: #1279BD; --blue-d: #0E5F95; --navy: #023047; --navy-2: #0B3D58; --sky: #8ECAE6; --sun: #FFB703;
  --ink: #15222C; --muted: #4D5B66; --soft: #6B7884; --line: #E6ECF1; --line-2: #D5DEE5; --mist: #F1F5F8; --mist-2: #F6F9FB;
  --alert: #B42318; --warn: #6E4A00;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1); --r: 20px; --r-lg: 28px; --hdr: 78px;
  --ground: #fff; --surface: #fff; --sunk: var(--mist); --signal: var(--sun); --signal-deep: var(--blue); --night: var(--navy); --snow: #fff; --fog: #B9D3E2; --night-line: rgba(142,202,230,.2);
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .fog { color: var(--fog); } .ink { color: var(--ink); }
.accent { color: var(--blue); } .signal { color: var(--sun); }
.small { font-size: .875rem; } .xsmall { font-size: .75rem; } .big { font-size: 1.25rem; } .right { text-align: right; }
.top { margin-top: .75rem; }
.maxw-18 { max-width: 18ch; } .maxw-44 { max-width: 44ch; } .maxw-54 { max-width: 54ch; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.pad { padding-top: 64px; padding-bottom: 72px; } .pad-b { padding-bottom: 72px; }
.stack > * + * { margin-top: 1.1rem; }
.row-gap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 36px; }
.chamfer { clip-path: none; }

.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.display { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1; font-weight: 700; font-stretch: 78%; letter-spacing: -0.02em; color: var(--navy); text-wrap: balance; }
.display--md { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.display--xl { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.soft-it { font-weight: 300; font-style: italic; color: var(--blue); }
.on-dark .display, .on-dark .h2 { color: #fff; }
.on-dark .soft-it { color: var(--sky); }
.on-dark .eyebrow { color: var(--sky); }
.lead { font-size: 1.125rem; line-height: 1.65; margin-top: 1.25rem; color: var(--muted); }
.on-dark .lead { color: #D4E5EF; }
.h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 700; font-stretch: 85%; letter-spacing: -0.01em; line-height: 1.1; color: var(--navy); }
.h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); }

.wire { position: relative; display: inline-block; padding: 2px 0; }
.wire::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.wire:hover::after, .wire:focus-visible::after { transform: scaleX(1); }
.uline { border-bottom: 1px solid transparent; transition: border-color .3s; }
a:hover .uline { border-color: currentColor; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,183,3,.7); } 70% { box-shadow: 0 0 0 16px rgba(255,183,3,0); } 100% { box-shadow: 0 0 0 0 rgba(255,183,3,0); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rise { animation: rise .9s var(--ease) both; } .rise-2 { animation: rise .9s .12s var(--ease) both; } .rise-3 { animation: rise .9s .24s var(--ease) both; } .rise-4 { animation: rise .9s .38s var(--ease) both; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn--signal { background: var(--blue); color: #fff; }
.btn--signal:hover { background: var(--sun); color: var(--navy); }
.btn--ink { background: var(--navy); color: #fff; }
.btn--ink:hover { background: var(--blue); color: #fff; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.day .btn--ghost, .btn--line { border: 1.5px solid var(--navy); color: var(--navy); }
.day .btn--ghost:hover, .btn--line:hover { background: var(--navy); color: #fff; }
.btn--text { display: inline-flex; align-items: center; gap: 8px; padding: 12px 2px; font-weight: 600; }
.btn__arrow { width: 36px; height: 36px; margin-right: -14px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Barra superiore + header ---------- */
.topbar { background: var(--navy); color: #B9D3E2; overflow: hidden; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.marq { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marq span { padding: 10px 0; white-space: nowrap; }
.marq i { font-style: normal; color: var(--sun); padding: 0 22px; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(2,48,71,.1); transition: box-shadow .3s; }
.admin-bar .hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr { top: 0; } }
.hdr.is-scrolled { box-shadow: 0 10px 30px rgba(2,48,71,.08); }
.hdr__in { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
@media (min-width: 768px) { .hdr__in { min-height: var(--hdr); } }
.ilpt-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); flex-shrink: 0; }
.ilpt-logo svg { width: 40px; height: 34px; }
.ilpt-logo__txt { display: flex; flex-direction: column; line-height: 1; }
.ilpt-logo__name { font-size: 21px; font-weight: 800; font-stretch: 85%; letter-spacing: .02em; }
.ilpt-logo__name em { font-style: normal; color: var(--blue); }
.ilpt-logo__tag { font-family: var(--mono); font-size: 10px; letter-spacing: .35em; color: var(--muted); margin-top: 5px; }
.ftr .ilpt-logo { color: #fff; } .ftr .ilpt-logo__name em { color: var(--sky); } .ftr .ilpt-logo__tag { color: var(--fog); }
.hdr__nav { display: none; flex: 1; }
@media (min-width: 1400px) { .hdr__nav { display: block; } }
@media (min-width: 1400px) and (max-width: 1599px) { .hdr__act .hdr__icon { display: none !important; } }
.hdr__menu { display: flex; justify-content: center; flex-wrap: nowrap; gap: 0 20px; white-space: nowrap; }
.hdr__menu a { position: relative; display: block; padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.hdr__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hdr__menu a:hover::after, .hdr__menu a[aria-current]::after { transform: scaleX(1); }
.hdr__menu a[aria-current] { color: var(--blue); }
.hdr__act { display: flex; align-items: center; gap: 8px; }
.hdr__icon, .hdr__burger { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.hdr__icon:hover, .hdr__burger:hover { background: var(--line-2); }
.hdr__cart { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 7px 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; transition: background .25s; }
.hdr__cart:hover { background: var(--blue); }
.ilpt-cart-count { width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--navy); font-family: var(--mono); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.hide-sm { display: none !important; } @media (min-width: 768px) { .hide-sm { display: inline-flex !important; } }
@media (min-width: 1400px) { .hdr__burger { display: none; } }
@media (max-width: 560px) { .hdr__cart { font-size: 0; gap: 0; padding: 0 7px; } .ilpt-logo { gap: 9px; } .ilpt-logo svg { width: 34px; height: 29px; } .ilpt-logo__name { font-size: 18px; } .ilpt-logo__tag { letter-spacing: .28em; } .hdr__in { gap: 10px; } }
@media (max-width: 999px) { .cat__side > div:not(:first-child) { display: none; } .cat__side { padding-top: 24px; } }
.hdr__mobile { padding: 8px 16px 24px; border-top: 1px solid var(--line); background: #fff; }
.hdr__mmenu a { display: block; padding: 15px 4px; font-size: 1.2rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.hdr__mobile .btn { margin-top: 20px; width: 100%; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy); color: #B9D3E2; overflow: hidden; }
.ftr__grid { display: grid; gap: 40px; padding-top: 72px; padding-bottom: 8px; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 4fr 2fr 2fr 3fr; } }
.ftr p { margin-top: 16px; max-width: 40ch; line-height: 1.65; font-size: 14.5px; }
.ftr__phone { display: inline-block; margin-top: 16px; font-size: 24px; font-weight: 700; color: #fff; }
.ftr h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; }
.ftr h2 + ul + h2 { margin-top: 28px; }
.ftr li { font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.ftr a:hover { color: var(--sun); }
.ftr__word { font-size: clamp(5rem, 13vw, 11rem); line-height: .8; font-weight: 800; font-stretch: 62%; color: rgba(142,202,230,.12); white-space: nowrap; letter-spacing: -0.02em; margin-top: 48px; user-select: none; }
.ftr__bar { border-top: 1px solid rgba(142,202,230,.2); }
.ftr__barin { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 26px; font-size: .85rem; color: #8FB2C6; }
.ftr__barin nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Pagine interne ---------- */
.day { background: #fff; color: var(--ink); }
.phead { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 64px 0 60px; }
@media (min-width: 900px) { .phead { padding: 84px 0 76px; }
  .phead::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44%; background: url("assets/img/hero-facciata.jpg") center 30% / cover no-repeat; filter: grayscale(1) contrast(1.1); }
  .phead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #023047 54%, rgba(2,48,71,.78) 70%, rgba(18,121,189,.62) 100%); } }
.phead .wrap { position: relative; z-index: 1; }
.phead .eyebrow { color: var(--sky); }
.phead__title { margin-top: 14px; max-width: 20ch; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; font-weight: 700; font-stretch: 78%; letter-spacing: -0.02em; text-wrap: balance; }
.phead__intro { margin-top: 20px; max-width: 58ch; font-size: 1.125rem; line-height: 1.6; color: #D4E5EF; }
.phead__crumbs { font-family: var(--mono); font-size: 12px; color: var(--sky); }
.phead__crumbs a:hover { color: #fff; }
.notfound { min-height: 70dvh; display: flex; align-items: center; padding: 80px 0; }
.notfound .btn { margin-top: 32px; }

/* ---------- Home: hero ---------- */
.hhero { position: relative; background: var(--navy); color: #fff; }
.hhero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; overflow: hidden; }
@media (min-width: 900px) { .hhero__media { width: 58%; } }
.hhero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; filter: grayscale(1) contrast(1.15) brightness(1.05); }
.hhero__tint { position: absolute; inset: 0; background: var(--blue); mix-blend-mode: multiply; }
.hhero__fade { position: absolute; inset: 0; background: linear-gradient(0deg, #023047 18%, rgba(2,48,71,.55) 70%, rgba(2,48,71,.35)); }
@media (min-width: 900px) { .hhero__fade { background: linear-gradient(90deg, #023047 0%, rgba(2,48,71,0) 38%); } }
.hhero__in { position: relative; min-height: 680px; display: flex; flex-wrap: wrap; align-items: stretch; }
@media (min-width: 900px) { .hhero__in { min-height: 760px; } }
.hhero__copy { flex: 1 1 560px; max-width: 660px; padding: 72px 0 150px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .hhero__copy { padding: 96px 0 160px; } }
.hhero__badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; border: 1px solid rgba(142,202,230,.35); border-radius: 30px; padding: 7px 16px 7px 8px; font-family: var(--mono); font-size: 12px; color: #D9ECF7; background: rgba(255,255,255,.05); }
.hhero__badge b { background: var(--sun); color: var(--navy); border-radius: 20px; padding: 3px 9px; }
.hhero__title { margin-top: 26px; font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: .98; font-weight: 700; font-stretch: 78%; letter-spacing: -0.02em; }
.hhero__title .soft-it { color: var(--sky); }
.hhero__lead { margin-top: 24px; font-size: 18.5px; line-height: 1.6; color: #D4E5EF; max-width: 520px; }
.hhero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hhero__spots { position: relative; flex: 1 1 420px; min-height: 520px; display: none; }
@media (min-width: 900px) { .hhero__spots { display: block; } }
.spot { position: absolute; display: flex; align-items: center; gap: 10px; }
.spot__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--sun); border: 3px solid #fff; animation: pulse 2.2s infinite; flex-shrink: 0; }
.spot__tag { background: rgba(2,48,71,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border-radius: 20px; font-size: 13px; font-weight: 600; padding: 7px 13px; white-space: nowrap; transition: all .25s var(--ease); }
.spot__tag small { font-family: var(--mono); font-weight: 400; opacity: .75; margin-left: 4px; font-size: 12px; }
.spot:hover .spot__tag { background: var(--sun); color: var(--navy); transform: translateX(4px); }

.est { position: relative; z-index: 5; margin-top: -110px; margin-bottom: -90px; background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: 0 30px 70px rgba(2,48,71,.28); display: flex; flex-wrap: wrap; overflow: hidden; }
.est__col { flex: 1 1 320px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .est__col { border-bottom: 0; border-right: 1px solid var(--line); } }
.est__col--res { background: #F1F7FB; border: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.est__lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--blue); font-weight: 700; }
.est__q { font-size: 20px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.est__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.est__chips button { height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--navy); background: #fff; transition: all .2s; }
.est__chips button:hover { border-color: var(--navy); }
.est__chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.est__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.est__val { font-size: 34px; font-weight: 700; font-stretch: 80%; color: var(--navy); }
.est__val span { font-size: 18px; color: var(--muted); }
.est input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; margin-top: 4px; }
.est__scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--soft); }
.est__res { font-size: 24px; font-weight: 700; color: var(--navy); margin-top: 6px; line-height: 1.2; }
.est__note { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.est .btn { min-height: 50px; width: 100%; }

.hstats { padding-top: 90px; }
.hstats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 56px; padding-bottom: 16px; }
.hstats__n { font-size: 48px; font-weight: 700; font-stretch: 78%; color: var(--navy); line-height: 1; }
.hstats__n--b { color: var(--blue); }
.hstats p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- Home: sezioni ---------- */
.sec { padding: 80px 0; }
@media (min-width: 768px) { .sec { padding: 100px 0; } }
.sec--mist { background: var(--mist); }
.sec--navy { background: var(--navy); color: #fff; border-radius: 40px 40px 0 0; padding-bottom: 140px; }
.sec--lift { position: relative; background: #fff; border-radius: 40px 40px 0 0; margin-top: -40px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.sec__head .display { margin-top: 12px; }
.sec__head p { max-width: 440px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.on-dark .sec__head p { color: #C8DCE8; }
.pill-link { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 24px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 15px; transition: all .25s; }
.pill-link:hover { background: var(--navy); color: #fff; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 200px; gap: 14px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 240px; gap: 16px; } }
.bt { position: relative; overflow: hidden; border-radius: var(--r); background: var(--mist); color: var(--navy); transition: box-shadow .35s; }
.bt:hover { box-shadow: 0 24px 50px rgba(2,48,71,.18); }
.bt--big { grid-column: span 2; grid-row: span 2; }
.bt--wide { grid-column: span 2; }
.bt--navy { background: var(--navy); color: #fff; }
.bt--blue { background: var(--blue); color: #fff; }
.bt img { position: absolute; left: 14%; top: 8%; width: 72%; height: 60%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.bt--big img { left: 18%; top: 14%; width: 74%; height: 60%; }
.bt--navy img { left: auto; right: 4%; top: 12%; width: 44%; height: 76%; padding: 12px; background: #fff; border-radius: 14px; mix-blend-mode: normal; }
.bt--navy .bt__info { right: 52%; }
.bt:hover img { transform: scale(1.08) rotate(-1deg); }
.bt__info { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bt__meta { font-family: var(--mono); font-size: 11.5px; color: var(--blue); }
.bt--navy .bt__meta { color: var(--sky); }
.bt__name { font-size: 22px; font-weight: 700; font-stretch: 85%; line-height: 1.05; margin-top: 3px; }
.bt--big .bt__name, .bt--wide .bt__name { font-size: clamp(26px, 3vw, 40px); }
.bt__sub { font-size: 15px; color: var(--muted); margin-top: 6px; }
.bt__arr { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .3s, background .3s; }
.bt--blue .bt__arr { background: #fff; color: var(--navy); }
.bt:hover .bt__arr { transform: translateX(4px); background: var(--sun); color: var(--navy); }
.bt__tags { position: absolute; left: 22px; right: 22px; top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.bt__tags span { border: 1px solid rgba(255,255,255,.45); border-radius: 16px; padding: 5px 12px; font-size: 13px; font-weight: 600; }

.units { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 8px; }
.unit { background: rgba(255,255,255,.05); border: 1px solid rgba(142,202,230,.18); border-radius: var(--r); padding: 30px; }
.unit__vis { height: 110px; display: flex; align-items: center; }
.uv-bars { width: 100%; display: flex; flex-direction: column; gap: 7px; }
.uv-bars i { display: block; height: 12px; border-radius: 3px; background: var(--sky); }
.uv-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.uv-grid i { display: block; height: 30px; border-radius: 4px; background: var(--sky); }
.uv-pcs { display: flex; gap: 12px; }
.uv-pcs i { display: block; width: 46px; height: 64px; border-radius: 8px; background: var(--sky); }
.uv-sun { background: var(--sun) !important; }
.uv-dim { opacity: .55; }
.unit__h { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.unit__h b { font-size: 44px; font-weight: 700; font-stretch: 78%; }
.unit__h span { font-size: 19px; font-weight: 600; }
.unit p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #C8DCE8; }
.unit__ex { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--sun); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pills span { border: 1px solid rgba(142,202,230,.35); border-radius: 20px; padding: 9px 16px; font-size: 14px; color: #E3F0F7; }

.fin { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.fin__a { flex: 1 1 420px; min-width: 0; }
.fin__b { flex: 1 1 480px; min-width: 0; }
.ftabs { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.ftab { display: flex; gap: 18px; align-items: flex-start; width: 100%; text-align: left; padding: 16px 20px; border-left: 4px solid var(--line); background: #fff; transition: all .25s; }
.ftab__c { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--soft); padding-top: 3px; }
.ftab__n { display: block; font-size: 20px; font-weight: 600; color: var(--muted); }
.ftab__d { display: none; font-size: 15px; line-height: 1.55; color: #3E4C57; margin-top: 4px; }
.ftab[aria-selected="true"] { background: #F1F7FB; border-left-color: var(--blue); border-radius: 0 14px 14px 0; }
.ftab[aria-selected="true"] .ftab__c { color: var(--blue); }
.ftab[aria-selected="true"] .ftab__n { color: var(--navy); font-weight: 700; }
.ftab[aria-selected="true"] .ftab__d { display: block; }
.fin__media { position: relative; border-radius: 24px; overflow: hidden; height: 460px; background: var(--mist); }
.fin__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fin__card { position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 16px; padding: 18px; display: flex; gap: 18px; align-items: center; }
.layers { width: 150px; flex-shrink: 0; }
.layer { display: none; }
.layer--spray { height: 10px; border-radius: 3px 3px 0 0; background-color: #CFC8B8; background-image: radial-gradient(rgba(2,48,71,.35) 1px, transparent 1.5px); background-size: 5px 5px; }
.layer--smooth { height: 14px; border-radius: 3px 3px 0 0; background: #BDB5A3; }
[data-fin-show="spruzzo"] .layer--spray, [data-fin-show="spalmatrice"] .layer--smooth { display: block; }
.layer--eps { display: flex; height: 54px; background: #F3F1EA; border: 1.5px solid var(--navy); border-radius: 0 0 4px 4px; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--navy); }
.fin__lbl { font-family: var(--mono); font-size: 11.5px; color: var(--blue); font-weight: 700; }
.fin__name { font-size: 17px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.fin__use { font-size: 13.5px; color: #3E4C57; margin-top: 2px; }

.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 22px; margin: 0 -4px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; flex: 0 0 290px; }

.lav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 200px; gap: 14px; }
@media (min-width: 900px) { .lav { grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 250px; gap: 16px; } }
.lav figure { position: relative; overflow: hidden; border-radius: var(--r); background: var(--mist); }
.lav figure:first-child { grid-column: span 2; grid-row: span 2; }
.lav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lav figure:hover img { transform: scale(1.05); }
.lav figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(2,48,71,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.lav figcaption span { display: block; font-weight: 400; font-size: 12.5px; color: #C8DCE8; margin-top: 2px; }

.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.svc { display: flex; flex-direction: column; gap: 14px; min-height: 270px; padding: 32px; border-radius: var(--r); background: var(--navy); color: #fff; transition: background .35s, transform .35s var(--ease); }
.svc:hover { background: var(--blue); transform: translateY(-4px); }
.svc__n { font-family: var(--mono); font-size: 13px; color: var(--sky); font-weight: 700; }
.svc:hover .svc__n { color: var(--sun); }
.svc__t { font-size: 32px; font-weight: 700; font-stretch: 80%; line-height: 1; }
.svc__d { font-size: 15.5px; line-height: 1.6; color: #D4E5EF; }
.svc__go { margin-top: auto; font-weight: 700; }

.proc { position: relative; margin-top: 56px; }
.proc__line, .proc__fill { position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--line-2); }
.proc__fill { right: auto; width: 72%; background: var(--blue); transform-origin: left; animation: grow 1.6s .3s var(--ease) both; }
@media (max-width: 760px) { .proc__line, .proc__fill { display: none; } }
.proc__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.proc__n { width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; box-shadow: 0 0 0 8px var(--mist); }
.proc__n--sun { background: var(--sun); color: var(--navy); }
.proc h3 { font-size: 21px; font-weight: 700; color: var(--navy); margin-top: 22px; }
.proc p { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 6px; }

.cta { position: relative; overflow: hidden; background: var(--blue); color: #fff; border-radius: 32px; padding: 40px 28px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .cta { padding: 64px; } }
.cta__house { position: absolute; right: -60px; bottom: -120px; width: 420px; opacity: .1; }
.cta__a { position: relative; flex: 1 1 420px; }
.cta__a h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-weight: 700; font-stretch: 78%; }
.cta__a p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: #E6F2FA; max-width: 520px; }
.cta__b { position: relative; flex: 1 1 380px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cta__tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: #fff; color: var(--navy); transition: transform .25s var(--ease), background .25s; }
.cta__tile:hover { transform: translateY(-3px); background: var(--sun); }
.cta__tile--n { background: var(--navy); color: #fff; }
.cta__tile--n:hover { color: var(--navy); }
.cta__tile b { font-size: 17px; }
.cta__tile span { font-size: 13.5px; opacity: .8; }

/* ---------- Card prodotto ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; margin-top: 28px; }
@media (max-width: 560px) { .pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } }
.pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(2,48,71,.16); }
.pcard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--mist-2); }
.pcard__render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.pcard:hover .pcard__render { transform: scale(1.06); }
.pcard__tech { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; background: #fff; clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.65,0,.35,1); }
.pcard__wire { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: left .7s cubic-bezier(.65,0,.35,1), transform .25s; }
.pcard:hover .pcard__tech, .pcard:focus-visible .pcard__tech { clip-path: inset(0 0 0 0); }
.pcard:hover .pcard__wire, .pcard:focus-visible .pcard__wire { left: calc(100% - 3px); transform: scaleY(1); }
.pcard__tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.pcard__quote { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--sun); color: var(--navy); border-radius: 12px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; }
.codetag { display: inline-block; background: #fff; color: var(--navy); border-radius: 12px; padding: 4px 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(2,48,71,.08); }
.pcard__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px 18px 18px; }
.pcard__title { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.pcard__dims { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.pcard__price { font-size: .95rem; font-weight: 700; color: var(--navy); }
.pcard__price .muted { font-weight: 400; font-size: .85rem; }
.pcard__go { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.pcard:hover .pcard__go { background: var(--sun); color: var(--navy); }

/* ---------- Catalogo ---------- */
.phead--cat .phead__title { max-width: none; }
.csearch { margin-top: 26px; max-width: 580px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 30px; padding: 6px 6px 6px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.25); color: var(--ink); }
.csearch .ico { color: var(--muted); flex-shrink: 0; }
.csearch input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; font-size: 15px; }
.csearch input:focus-visible { outline: none; }
.csearch:focus-within { box-shadow: 0 0 0 3px var(--sun), 0 20px 40px rgba(0,0,0,.25); }
.cat { display: flex; flex-wrap: wrap; gap: 0 40px; align-items: flex-start; padding-bottom: 96px; }
.cat__side { flex: 1 1 260px; max-width: 100%; padding-top: 36px; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1000px) { .cat__side { max-width: 300px; position: sticky; top: calc(var(--hdr) + 16px); } .admin-bar .cat__side { top: calc(var(--hdr) + 48px); } }
.cat__lbl { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--blue); margin-bottom: 10px; }
.cat__list { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 999px) { .cat__list { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; } .cat__list a { white-space: nowrap; border: 1.5px solid var(--line-2); } }
.cat__list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 9px 14px; border-radius: 12px; font-size: 15px; color: var(--ink); transition: background .2s; }
.cat__list a:hover { background: var(--mist); }
.cat__list a .mono { font-size: 12px; color: var(--soft); }
.cat__list a.is-on { background: var(--navy); color: #fff; font-weight: 700; border-color: var(--navy); }
.cat__list a.is-on .mono { background: var(--sun); color: var(--navy); border-radius: 10px; padding: 2px 8px; }
.cat__units { display: flex; flex-wrap: wrap; gap: 8px; }
.cat__units span { border: 1.5px solid var(--line-2); border-radius: 20px; padding: 7px 14px; font-size: 14px; }
.cat__units b { font-family: var(--mono); color: var(--blue); }
.cat__help { position: relative; overflow: hidden; background: var(--blue); color: #fff; border-radius: var(--r); padding: 26px; }
.cat__help strong { display: block; font-size: 24px; font-weight: 700; font-stretch: 85%; line-height: 1.1; }
.cat__help p { margin: 10px 0 18px; font-size: 14.5px; line-height: 1.6; color: #E6F2FA; }
.cat__help a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px; background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; transition: background .25s; }
.cat__help a:hover { background: var(--sun); }
.cat__main { flex: 999 1 560px; min-width: 0; padding-top: 36px; }
.cat__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.cat__bar h2 { font-size: 30px; font-weight: 700; font-stretch: 82%; color: var(--navy); }
.cat__bar h2 .mono { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 10px; }
.cat__bar label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.cat__bar select { height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 22px; background: #fff; color: var(--ink); font-size: 14px; }
.empty { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 72px 24px; text-align: center; margin-top: 28px; }
.empty__title { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.empty a { margin-top: 20px; }

/* ---------- Scheda prodotto ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: .875rem; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.pp { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 22px; padding-bottom: 88px; }
.pp__gallery { flex: 1 1 520px; min-width: 0; }
.pp__buy { flex: 1 1 420px; min-width: 0; }
.pp__stage { position: relative; aspect-ratio: 5/4; border-radius: var(--r-lg); background: var(--mist); overflow: hidden; }
.pp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 28px; mix-blend-mode: multiply; opacity: 0; transform: scale(.98); transition: opacity .35s, transform .5s var(--ease); }
@media (min-width: 768px) { .pp__img { padding: 52px; } }
.pp__img.is-on { opacity: 1; transform: none; }
.pp__tag { position: absolute; top: 18px; left: 18px; z-index: 2; }
.pp__thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.pp__thumbs button { width: 96px; height: 78px; padding: 6px; border-radius: 16px; border: 2.5px solid transparent; background: var(--mist); transition: border-color .2s; }
.pp__thumbs button:hover { border-color: var(--line-2); }
.pp__thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.pp__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pp__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 24px; }
.pp__specs div { background: var(--mist); border-radius: 16px; padding: 14px 16px; }
.pp__specs dt { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pp__specs dd { margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--navy); font-family: var(--sans); }
.pp__desc { margin-top: 24px; max-width: 64ch; line-height: 1.7; color: #26333D; }
.pp__desc p + p { margin-top: 1em; }
.pp__sticky { position: sticky; top: calc(var(--hdr) + 20px); }
.admin-bar .pp__sticky { top: calc(var(--hdr) + 52px); }
.pp__cat { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.pp__title { margin-top: 10px; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; font-weight: 700; font-stretch: 78%; letter-spacing: -0.01em; color: var(--navy); }
.pp__title .soft-it { white-space: nowrap; }
.pp__lede { margin-top: 14px; color: var(--muted); line-height: 1.55; }
.pp__from { font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.pp__from .woocommerce-Price-amount { font-family: var(--sans); }
.cfg { margin-top: 24px; }
.cfg__box { background: var(--mist-2); border-radius: 24px; padding: 22px; }
.cfg legend, .cfg label[for], .cfg .lbl { font-size: 16px; font-weight: 700; color: var(--navy); padding: 0; }
.cfg fieldset { border: 0; padding: 0; margin: 0; }
.cfg__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 128px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: all .2s; }
.opt:hover { border-color: var(--blue); transform: translateY(-2px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.opt__top { display: flex; flex-direction: column; gap: 4px; }
.opt__top strong { font-size: 15.5px; line-height: 1.2; color: var(--navy); }
.opt__top .mono { font-size: 12px; color: var(--muted); order: 2; }
.opt__desc { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.opt__warn { font-family: var(--mono); font-size: 11.5px; color: var(--warn); }
.opt:has(input:checked) { background: var(--navy); border-color: var(--navy); box-shadow: 0 14px 30px rgba(2,48,71,.25); }
.opt:has(input:checked) strong { color: #fff; }
.opt:has(input:checked) .opt__desc { color: #C8DCE8; }
.opt:has(input:checked) .mono, .opt:has(input:checked) .opt__warn { color: var(--sun); }
.cfg__qty { margin-top: 24px; }
.stepper { display: flex; align-items: stretch; margin-top: 10px; height: 58px; max-width: 380px; border: 1.5px solid var(--line-2); border-radius: 29px; background: #fff; overflow: hidden; }
.stepper button { width: 58px; display: flex; align-items: center; justify-content: center; color: var(--navy); transition: background .2s; }
.stepper button:hover { background: var(--mist); }
.stepper input { flex: 1; min-width: 0; text-align: center; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--navy); border: 0; background: transparent; }
.stepper input:focus { outline: none; }
.stepper:focus-within { border-color: var(--blue); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick button { height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: #fff; font-size: 12.5px; color: var(--navy); transition: all .2s; }
.quick button:hover { border-color: var(--navy); }
.quick button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-meaning] { margin-top: 10px; color: var(--navy); font-size: 14px; }
.cfg__tiers { margin-top: 20px; }
.cfg__tiers ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cfg__tiers li { font-size: 12px; border: 1.5px solid var(--line-2); color: var(--muted); padding: 6px 11px; border-radius: 16px; background: #fff; transition: all .3s; }
.cfg__tiers li.is-on { background: var(--sun); border-color: var(--sun); color: var(--navy); font-weight: 700; }
.tierbar { position: relative; height: 8px; border-radius: 4px; background: #E1E8EE; margin-top: 12px; overflow: hidden; }
.tierbar span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--blue); border-radius: 4px; transition: width .35s var(--ease); }
[data-next] { margin-top: 8px; font-size: 13.5px; color: var(--ink); }
.cfg__total { margin-top: 14px; background: var(--navy); color: #fff; border-radius: 24px; padding: 22px; }
.cfg__total .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #C8DCE8; font-size: 14.5px; }
.cfg__total .row .mono { color: #fff; }
.cfg__total .row + .row { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(142,202,230,.25); }
.row--big span:first-child { color: #fff; font-weight: 600; }
.row--big .mono { font-size: 1.9rem; font-weight: 700; font-family: var(--sans) !important; }
.cfg__total .muted { color: #9FC0D3; }
.cfg__total .ink { color: #fff; }
.warn { display: flex; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,183,3,.14); color: #FFD77A; font-size: 14px; }
.warn .ico { flex-shrink: 0; }
.btn-add { position: relative; overflow: hidden; width: 100%; margin-top: 18px; min-height: 58px; border-radius: 29px; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; transition: transform .2s; }
.btn-add:active { transform: scale(.99); }
.btn-add__fill { position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn-add:hover .btn-add__fill { transform: scaleX(1); }
.btn-add:hover .btn-add__label { color: var(--navy); }
.btn-add__label { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; transition: color .3s; }
.pp__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: .9rem; }
.pp__meta .btn--text { color: var(--blue); }
.related { background: var(--mist); padding: 72px 0 88px; }
.related .h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-stretch: 78%; }
.related .pcard { border-color: transparent; }

/* ---------- Pagine contenuto ---------- */
.bordered { width: 100%; border-radius: var(--r); }
figcaption.muted { margin-top: 12px; }
.split { display: grid; gap: 48px; align-items: center; }
.split--top { align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(12, 1fr); }
  .split__a { grid-column: span 5; } .split__b { grid-column: span 7; }
  .split__a5 { grid-column: span 5; } .split__b7 { grid-column: span 7; }
  .split__a7 { grid-column: span 7; } .split__b5 { grid-column: span 5; }
  .split--top .split__a { grid-column: span 4; } .split--top .split__b { grid-column: span 8; }
  .split--top .split__a.lead { grid-column: span 6; } .split--top .split__a.lead + .split__b { grid-column: span 6; }
}
.split__a.lead { margin-top: 0; color: #26333D; }
.numlist { display: grid; gap: 12px; }
.numlist li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--mist); }
.numlist li > .mono { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.numlist h2 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.numlist p { margin-top: 6px; line-height: 1.6; }
.band { background: var(--mist); padding: 64px 0 72px; }
.band .btn { margin-top: 32px; }
.grid2, .grid3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.cover43 { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.cover34 { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tile { border-radius: var(--r); background: var(--mist); overflow: hidden; }
.tile figcaption { padding: 16px 18px; }
.topline { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 56px; }
.topline .btn { margin-top: 24px; }
.grid3.topline { margin-top: 0; }
.grid3.topline > div { background: var(--mist); border-radius: var(--r); padding: 24px; }
.grid3.topline + .btn { margin-top: 36px; }
.grid3 p { margin-top: 8px; line-height: 1.6; }
.zig { display: grid; gap: 64px; }
.zig__row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .zig__row { grid-template-columns: 1fr 1fr; gap: 56px; } .zig__row--rev figure { order: 2; } }
.zig img { border-radius: 24px; }
.zig .mono.accent { display: inline-block; background: var(--mist); color: var(--blue); border-radius: 14px; padding: 4px 12px; font-weight: 700; }
.zig h2 { margin-top: 12px; }
.deflist { margin-top: 20px; display: grid; gap: 10px; }
.deflist div { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--mist); }
@media (min-width: 768px) { .deflist div { grid-template-columns: 190px 1fr; gap: 20px; } }
.deflist dt { font-weight: 700; color: var(--navy); }
.deflist + .btn { margin-top: 28px; }
.dlcard { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 580px; padding: 26px; border-radius: var(--r); background: var(--navy); color: #fff; margin-bottom: 28px; transition: background .25s, transform .25s var(--ease); }
.dlcard:hover { background: var(--blue); transform: translateY(-3px); }
.dlcard strong { display: block; font-size: 1.3rem; }
.dlcard .muted { color: var(--fog); }
.contacts { display: grid; gap: 14px; }
.contacts li { display: flex; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--mist); }
.contacts li > .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #fff; color: var(--blue); flex-shrink: 0; }
.contacts li.muted { background: transparent; padding: 4px 18px; }
.contacts .big { font-weight: 700; color: var(--navy); }
.formcard { border-radius: 24px; background: var(--mist-2); border: 1px solid var(--line); padding: 24px; }
@media (min-width: 768px) { .formcard { padding: 34px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex-shrink: 0; white-space: nowrap; height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 21px; border: 1.5px solid var(--line-2); font-size: .9rem; background: #fff; transition: all .2s; }
.chip:hover { border-color: var(--navy); }
.chip .mono { opacity: .6; font-size: 12px; }
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.masonry { columns: 1; column-gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .masonry { columns: 2; } } @media (min-width: 1024px) { .masonry { columns: 3; } }
.mcard { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.mcard__img { overflow: hidden; }
.mcard img { width: 100%; transition: transform .8s var(--ease); }
.mcard:hover img { transform: scale(1.04); }
.mcard figcaption { display: grid; gap: 4px; padding: 16px 18px; }
.mcard strong { font-weight: 700; color: var(--navy); }

/* ---------- Prosa ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 56px 16px 88px; font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 1.7rem; font-weight: 700; font-stretch: 85%; color: var(--navy); line-height: 1.15; margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 1.6rem 0 .5rem; }
.prose p { margin: 0 0 1rem; color: #26333D; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; list-style: disc; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Regole pubbliche ---------- */
.ilp-rules { display: grid; gap: 40px; margin-bottom: 48px; }
@media (min-width: 1024px) { .ilp-rules { grid-template-columns: 1fr 1fr; } .ilp-rules__wide { grid-column: 1 / -1; } }
.ilp-rules > * { background: var(--mist-2); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.ilp-rules h2 { font-size: 1.6rem; font-weight: 700; font-stretch: 85%; color: var(--navy); }
.ilp-dl, .ilp-list { margin-top: 18px; }
.ilp-dl div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ilp-dl dt { font-family: var(--mono); font-weight: 700; color: var(--blue); }
.ilp-dl dd { color: var(--muted); line-height: 1.6; }
.ilp-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ilp-list--stack li { display: block; }
.ilp-list--stack li div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ilp-list--stack p { margin-top: 4px; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.ilp-accent { color: var(--blue); font-weight: 700; }
.ilp-muted { margin-top: 16px; font-size: .875rem; color: var(--muted); line-height: 1.6; }
.ilp-table-wrap { overflow-x: auto; margin-top: 18px; }
.ilp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .875rem; }
.ilp-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-2); }
.ilp-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.ilp-table td:first-child { font-family: var(--sans); font-weight: 600; }

/* ---------- Modulo contatti ---------- */
.ilp-form__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .ilp-form__grid { grid-template-columns: 1fr 1fr; } .ilp-form__wide { grid-column: 1 / -1; } }
.ilp-form label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); }
.ilp-form input:not([type=checkbox]), .ilp-form textarea, .ilp-form select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; font-weight: 400; color: var(--ink); }
.ilp-form input:focus, .ilp-form textarea:focus { outline: none; border-color: var(--blue); }
.ilp-form__check { display: flex !important; gap: 10px; font-weight: 400 !important; color: var(--muted) !important; }
.ilp-form__check input { accent-color: var(--blue); }
.ilp-hp { position: absolute; left: -9999px; }
.ilp-form .ilp-btn { margin-top: 22px; min-height: 54px; padding: 0 28px; border-radius: 27px; background: var(--blue); color: #fff; font-weight: 700; transition: background .25s, color .25s; }
.ilp-form .ilp-btn:hover { background: var(--sun); color: var(--navy); }
.ilp-sent__title { font-size: 1.5rem; font-weight: 700; color: var(--navy); }

/* ---------- WooCommerce ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .ilp-notice { list-style: none; margin: 0 0 24px; padding: 16px 20px; border-radius: 16px; background: #EAF4FB; color: var(--navy); font-size: .95rem; border-left: 4px solid var(--blue); }
.woocommerce-error { background: #FDECEA; border-color: var(--alert); }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 12px; text-decoration: underline; border: 0 !important; background: none !important; padding: 0 !important; min-height: 0 !important; }
.ilp-notice--quote { background: #FFF6DE; border-color: var(--sun); color: #4A3500; }
.ilp-quote-tag { font-size: .85rem; color: var(--muted); }
.ilp-disc { color: var(--blue); font-family: var(--mono); }
.ilp-pack { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ilp-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.woocommerce-cart .prose, .woocommerce-checkout .prose, .woocommerce-account .prose { max-width: 1360px; padding: 40px 16px 88px; font-size: 16px; }
@media (min-width: 768px) { .woocommerce-cart .prose, .woocommerce-checkout .prose, .woocommerce-account .prose { padding: 48px 32px 100px; } }
.woocommerce-cart .prose p, .woocommerce-checkout .prose p { color: inherit; }
.woocommerce table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .95rem; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table tr:last-child > * { border-bottom: 0; }
.woocommerce table.shop_table thead th { font-weight: 600; color: var(--muted); font-size: .85rem; background: var(--mist-2); }
.woocommerce table.shop_table .product-thumbnail img { width: 84px; height: 84px; object-fit: contain; mix-blend-mode: multiply; background: var(--mist); border-radius: 14px; padding: 6px; }
.woocommerce table.shop_table .product-name a { font-weight: 700; color: var(--navy); }
.woocommerce table.shop_table dl.variation { margin-top: 6px; font-size: .8rem; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.woocommerce table.shop_table dl.variation dd p { margin: 0; }
.woocommerce .product-remove a { width: 34px; height: 34px; border-radius: 50%; background: var(--mist); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--muted); }
.woocommerce .product-remove a:hover { background: #FDECEA; color: var(--alert); }
.woocommerce .quantity .qty { width: 78px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 22px; text-align: center; font-family: var(--mono); }
.woocommerce .woocommerce-Price-amount { font-family: var(--mono); }
.woocommerce .coupon { display: none; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1.5px solid var(--navy); border-radius: 23px; background: #fff; color: var(--navy); font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; }
.woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--navy); color: #fff; }
.woocommerce button.button:disabled { opacity: .45; }
.woocommerce .cart-collaterals { margin-top: 28px; display: flex; justify-content: flex-end; }
.woocommerce .cart_totals { width: 100%; max-width: 500px; background: var(--mist-2); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.woocommerce .cart_totals h2 { font-size: 1.4rem; font-weight: 700; font-stretch: 85%; color: var(--navy); margin-bottom: 12px; }
.woocommerce .cart_totals table { border: 0; background: transparent; border-radius: 0; }
.woocommerce .cart_totals th, .woocommerce .cart_totals td { padding: 12px 0; }
.woocommerce .cart_totals .order-total td { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.woocommerce ul#shipping_method, .woocommerce ul.woocommerce-shipping-methods { margin: 0; }
.woocommerce ul#shipping_method li { margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.woocommerce ul#shipping_method input { accent-color: var(--blue); }
.woocommerce .shipping-calculator-button { font-size: .85rem; text-decoration: underline; color: var(--muted); }
.ilp-free-hint td { color: var(--blue); font-size: .875rem; }
.woocommerce .wc-proceed-to-checkout { margin-top: 16px; }
.woocommerce .wc-proceed-to-checkout .checkout-button, .woocommerce #place_order { width: 100%; min-height: 58px; border: 0; border-radius: 29px; background: var(--blue); color: #fff; font-weight: 700; font-size: 1rem; transition: background .25s, color .25s; }
.woocommerce .wc-proceed-to-checkout .checkout-button:hover, .woocommerce #place_order:hover { background: var(--sun); color: var(--navy); }
.woocommerce form.checkout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .woocommerce form.checkout { grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 16px; align-items: start; } .woocommerce form.checkout #order_review_heading, .woocommerce form.checkout #order_review { grid-column: 2; } .woocommerce form.checkout #customer_details { grid-row: span 2; } }
.woocommerce-checkout h3 { font-size: 1.4rem; font-weight: 700; font-stretch: 85%; color: var(--navy); margin: 8px 0 16px; }
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.woocommerce form .form-row .required { color: var(--alert); text-decoration: none; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-2) !important; background: #fff; border-radius: 14px !important; min-height: 48px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 24px; padding-left: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: none; border-color: var(--blue) !important; }
@media (min-width: 768px) { .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; } .woocommerce form .form-row-first { margin-right: 12px; } }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100%; }
#order_review { background: var(--mist-2); border: 1px solid var(--line); border-radius: 24px; padding: 22px; position: sticky; top: calc(var(--hdr) + 20px); }
#order_review .shop_table { border: 0; background: transparent; border-radius: 0; }
#order_review .shop_table th, #order_review .shop_table td { padding: 12px 0; background: transparent; }
.woocommerce-checkout-payment ul.payment_methods { list-style: none; padding: 0; margin: 16px 0; }
.woocommerce-checkout-payment ul.payment_methods li { list-style: none; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 8px; }
.woocommerce-checkout-payment ul.payment_methods li input { accent-color: var(--blue); margin-right: 8px; }
.woocommerce-checkout-payment .payment_box { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.woocommerce-terms-and-conditions-wrapper { font-size: .875rem; margin: 12px 0; }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 24px 0; }
.woocommerce-order-overview li { background: var(--mist); border-radius: 16px; padding: 16px; font-size: .875rem; color: var(--muted); }
.woocommerce-order-overview li strong { display: block; color: var(--navy); font-family: var(--mono); margin-top: 4px; }
.woocommerce-order h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 21px; border: 1.5px solid var(--line-2); font-size: .9rem; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--navy); color: #fff; border-color: var(--navy); }
.cart-empty { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.return-to-shop { margin-top: 24px; }
.blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
