/* Inter ospitato sul nostro server: niente Google Fonts, quindi nessun dato inviato a terzi */
@font-face { font-family: "Inter"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #1b2b63;          /* blu scuro del marchio */
  --navy-2: #253c88;        /* blu del logo UnionBags */
  --kraft: #9fb3ec;         /* blu chiaro: numeri e dettagli sui fondi scuri */
  --kraft-light: #eef1f8;   /* fondo azzurrino al posto del beige */
  --accent: #a10d32;        /* bordeaux del logo UnionBags */
  --green: #25d366;
  --text: #1c2430;
  --muted: #5d6878;
  --bg: #ffffff;
  --bg-alt: #f6f4f0;
  --line: #e4e0d8;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 780px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section--kraft { background: var(--kraft-light); }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 40px; }
.section--dark .sub { color: #b9c3d3; }
.note { font-size: .8rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 15px 26px; border-radius: 999px; border: 2px solid var(--accent);
  transition: transform .15s, box-shadow .15s; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(161, 13, 50, .3); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { box-shadow: none; background: var(--navy); color: #fff; }
.btn--small { padding: 9px 18px; font-size: .9rem; }
.btn--wa { background: #128c4a; border-color: #128c4a; width: 100%; }   /* verde più scuro: scritta bianca leggibile */
.btn--wa:hover { box-shadow: 0 8px 20px rgba(18, 140, 74, .35); }
.pill {
  display: inline-block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: var(--kraft-light); color: #253c88; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.pill--dark { background: var(--navy); color: var(--kraft-light); }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; text-decoration: none; color: var(--navy); font-weight: 500; }
.logo b { font-weight: 800; color: var(--accent); }
.logo svg { width: 28px; height: 28px; color: var(--kraft); }
.logo--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(160deg, #fff 0%, var(--kraft-light) 100%); padding: 80px 0 100px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 24px; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: .95rem; }
.hero__checks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }
.hero__art { position: relative; height: 420px; }

/* CSS bags */
.bag {
  --c: #c69a62; --t: #5b3d17;
  position: relative; width: 130px; height: 150px; background: var(--c);
  border-radius: 4px 4px 8px 8px; display: flex; align-items: center; justify-content: center;
  box-shadow: inset -18px 0 0 rgba(0,0,0,.08), 0 18px 30px rgba(15, 30, 51, .18);
  margin-top: 40px;
}
.bag::before {
  content: ""; position: absolute; top: -38px; left: 50%; transform: translateX(-50%);
  width: 52%; height: 60px; border: 6px solid var(--c); border-bottom: 0; border-radius: 60px 60px 0 0;
  filter: brightness(.85);
}
.bag span { color: var(--t); font-weight: 800; letter-spacing: .1em; font-size: .8rem; text-align: center; border: 2px solid currentColor; padding: 6px 10px; }
.bag--kraft { --c: #c69a62; --t: #5b3d17; }
.bag--black { --c: #1c1c1e; --t: #d9b46a; }
.bag--white { --c: #fbfaf7; --t: var(--navy); }
.bag--blue { --c: #2c5aa0; --t: #fff; }
.bag--cotton { --c: #ece4d3; --t: #6b5a3c; }
.bag--green { --c: #8fbf7a; --t: #1f3d16; }
.bag--teal { --c: #1f6f6b; --t: #f3e7d6; }
.bag--grey { --c: #8a8d91; --t: #fff; }
.bag--yellow { --c: #f2c230; --t: #1c1c1e; }
.bag--navy { --c: #1a2d4a; --t: #f3e7d6; }
.bag--red { --c: #b3261e; --t: #fff; }
.bag--mini { width: 44px; height: 50px; margin-top: 14px; flex-shrink: 0; box-shadow: inset -6px 0 0 rgba(0,0,0,.08), 0 6px 12px rgba(15,30,51,.15); }
.bag--mini::before { top: -14px; height: 22px; border-width: 3px; }
.bag--mini span { display: none; }
.hero__art .bag { position: absolute; }
.bag--xl { width: 230px; height: 270px; left: 18%; top: 50px; z-index: 2; }
.bag--xl span { font-size: 1.1rem; padding: 12px 18px; }
.bag--md { width: 160px; height: 190px; right: 4%; top: 110px; z-index: 1; transform: rotate(6deg); }
.bag--sm { width: 120px; height: 140px; left: 0; top: 220px; z-index: 3; transform: rotate(-8deg); }

/* Trust */
.trust { background: var(--navy); color: #fff; padding: 36px 0 16px; }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--kraft); }
.trust div > span { color: #b9c3d3; font-size: .9rem; }
.trust .note { color: #7e8aa0; text-align: center; margin: 18px auto 0; }

/* Grid & cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, box-shadow .2s; background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15, 30, 51, .1); }
.card__img { background: var(--bg-alt); border-radius: 10px; height: 210px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card p { color: var(--muted); font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .75rem; font-weight: 600; background: var(--kraft-light); color: #253c88; padding: 4px 10px; border-radius: 999px; }

a.card { display: block; text-decoration: none; color: inherit; }
.card__from { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.card__from b { color: var(--accent); font-size: 1.1rem; }

/* Prezzo di esempio */
.example {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center;
  margin-top: 28px; padding: 16px 20px; max-width: 540px; text-decoration: none; color: inherit;
  background: #fff; border: 2px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(161, 13, 50, .12);
}
.example__label { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.example__text { font-size: .95rem; color: var(--muted); }
.example__price { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; text-align: right; white-space: nowrap; }
.example__price small { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.example--inline { margin-top: 24px; box-shadow: none; }
.model__table tr.es td { background: #fbeef1; }
.es__tag { display: inline-block; margin-left: 6px; font-size: .78rem; font-weight: 800; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* Confronto Italia / Import */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 20px; }
.cbar { margin-bottom: 26px; }
.cbar__label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.cbar__label b { font-size: 1.2rem; color: var(--navy); }
.cbar__track { height: 22px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.cbar__fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .8s; }
.cbar__fill--it { background: #9aa3b0; }
.compare__big { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; color: var(--accent); line-height: 1; }
.compare__big small { display: block; font-size: 1rem; font-weight: 500; color: var(--muted); margin-top: 8px; }
.compare__sizes { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.compare__sizes li { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; }
.compare__sizes span { display: block; font-size: .8rem; color: var(--muted); }
.compare__sizes b { font-size: 1.3rem; color: var(--navy); }
.compare__table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare__table th, .compare__table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare__table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.compare__table thead th:last-child { background: var(--accent); }
.compare__table td:first-child { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.compare__table tbody tr:last-child td { border-bottom: 0; }
.model .btn--wa { width: auto; align-self: flex-start; }

/* Listino */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer;
}
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.listino { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 20px; }
.model { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.model__head { display: flex; gap: 16px; align-items: center; }
.model__head h3 { margin: 4px 0 0; }
.origin { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.origin--it { color: #1d7a3a; }
.origin--it::before { content: "● "; color: #1d7a3a; }
.model__spec { color: var(--muted); font-size: .93rem; margin: 0; }
.vs-it { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 800; color: #fff; background: #1d7a3a; padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.card__img { position: relative; }
.vs-it--card { position: absolute; top: 12px; left: 12px; margin: 0; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.model__from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; background: #fbeef1; border-radius: 10px; padding: 10px 14px; }
.model__from span { font-size: .85rem; color: var(--muted); }
.model__from b { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.model__from small { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.model__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.model__table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 0 8px 8px 0; border-bottom: 2px solid var(--navy); }
.model__table td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.model__table td:first-child { font-weight: 600; }
.model__table .pr, .model__table th:last-child { text-align: right; padding-right: 0; }
.model__table .pr { color: var(--accent); font-weight: 800; white-space: nowrap; }
.model .tags { margin-top: auto; }
.model__calc { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.calc label { display: block; font-weight: 600; margin-bottom: 22px; }
.calc select, .calc input[type=range] { display: block; width: 100%; margin-top: 8px; }
.calc select, .calc input[type=number], .calc input[type=text] { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.hint { display: block; font-weight: 500; color: var(--muted); margin-top: 6px; }
.check[hidden] { display: none !important; }
.calc input[type=range] { accent-color: var(--accent); }
.seg { border: 0; padding: 0; margin: 0 0 22px; }
.seg legend { font-weight: 600; margin-bottom: 8px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 6px 6px 0; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--accent); background: #fbeef1; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; }
.calc__result { position: sticky; top: 90px; background: var(--navy); color: #fff; border-radius: 20px; padding: 32px; }
.calc__label { color: #b9c3d3; font-size: .9rem; }
.calc__total { font-size: 3rem; font-weight: 800; line-height: 1.1; margin: 6px 0; }
.calc__unit { color: #aec4ff; font-weight: 600; margin-bottom: 20px; }
.calc__incl { list-style: none; padding: 0; margin: 0 0 24px; }
.calc__incl li { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.calc__incl li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.calc__incl li.off { opacity: .35; text-decoration: line-through; }
.calc__result small { display: block; text-align: center; color: #7e8aa0; margin-top: 10px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: var(--navy-2); border-radius: var(--radius); padding: 26px; }
.steps b { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 16px; }
.steps p { color: #b9c3d3; font-size: .95rem; margin: 0; }

/* Badges */
.badge { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.badge strong { display: block; font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.badge span { color: var(--muted); font-size: .92rem; }

/* Split */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.split p { font-size: 1.1rem; }
.link { font-weight: 700; color: var(--accent); text-decoration: none; }
.sample { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 20px 40px rgba(91, 61, 23, .12); }
.sample p { color: var(--muted); }
.sample__price { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.sample__price small { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.footer { background: var(--navy); color: #b9c3d3; padding: 48px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { margin: 6px 0; }
.footer .note { color: #9aa6bd; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
}
.wa-float svg { width: 32px; height: 32px; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .calc, .split, .compare { grid-template-columns: 1fr; }
  .hero__art { height: 340px; max-width: 420px; margin: 0 auto; width: 100%; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .listino { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .calc__result { position: static; }
}
@media (max-width: 1000px) {
  .burger { display: block; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .bag--xl { width: 190px; height: 220px; left: 22%; }
  .bag--md { width: 130px; height: 155px; }
  .bag--sm { width: 100px; height: 115px; }
}

.compare__confirm { margin-top: 18px; padding: 14px 16px; border: 1px dashed #1d7a3a; border-radius: var(--radius); }
.compare__confirm p { margin: 0; font-size: .9rem; color: var(--muted); }
.compare__confirm p b { color: #1d7a3a; }
.compare__sizes--alt { margin-top: 10px; }
.compare__sizes--alt li { background: #eef7f0; }
.compare__sizes--alt b { color: #1d7a3a; font-size: 1.1rem; }

/* Programma l'ordine */
.plan { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan li { background: #fff; border-radius: var(--radius); padding: 24px; position: relative; }
.plan li:not(:last-of-type)::after { content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--navy-2); font-weight: 800; font-size: 1.3rem; }
.plan b { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; margin-bottom: 12px; }
.plan p { color: var(--muted); font-size: .95rem; margin: 0; }
.plan__example { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px; }
.plan__example p { margin: 0; max-width: 620px; }
.plan__example p b { color: #aec4ff; }   /* azzurro chiaro: leggibile sul blu scuro */
.calc__reorder { background: rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin-bottom: 18px; }
.calc__reorder:empty { display: none; }
.calc__reorder b { color: #aec4ff; }
.compare__table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--navy); padding: 0 0 10px; }
.compare__table td.win { color: #1d7a3a; font-weight: 700; }
@media (max-width: 960px) {
  .plan { grid-template-columns: repeat(2, 1fr); }
  .plan li::after { display: none; }
}
@media (max-width: 560px) {
  .plan { grid-template-columns: 1fr; }
}

/* Animazioni allo scorrimento */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.cbar__fill { transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cbar__fill { transition: none; }
}

/* Giostra 3D foto */
.ring { --cw: 250px; height: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ring__stage { position: relative; width: 100%; height: 420px; perspective: 1100px; perspective-origin: 50% 35%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring__stage:active { cursor: grabbing; }
.ring__track { position: absolute; left: 50%; top: 44%; width: 0; height: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.ring__track.dragging { transition: none; }
.ring__card {
  position: absolute; margin: 0; width: var(--cw); height: calc(var(--cw) * 1.08);
  left: calc(var(--cw) / -2); top: calc(var(--cw) * -0.54);
  border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 44px rgba(15, 30, 51, .25);
  opacity: .45; filter: saturate(.5) brightness(.92);
  transition: opacity .7s, filter .7s;
  -webkit-box-reflect: below 8px linear-gradient(transparent 72%, rgba(255, 255, 255, .28));
}
.ring__card.front { opacity: 1; filter: none; }
.ring__card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ring__nav { display: flex; align-items: center; gap: 14px; }
.ring__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; box-shadow: 0 6px 14px rgba(15,30,51,.08); }
.ring__btn:hover { background: var(--navy); color: #fff; }
.ring__caption { margin: 0; min-width: 220px; text-align: center; font-weight: 700; color: var(--navy); font-size: .95rem; }
.ring__note { margin: 0; font-size: .75rem; color: var(--muted); text-align: center; }
.card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
@media (max-width: 960px) { .ring { max-width: none; } }
@media (max-width: 560px) {
  .ring { --cw: 175px; }
  .ring__stage { height: 320px; }
  .ring__caption { min-width: 0; font-size: .88rem; }
}
@media (max-width: 560px) {
  .compare__table { table-layout: fixed; font-size: .82rem; }
  .compare__table th, .compare__table td { padding: 9px 8px; overflow-wrap: anywhere; }
  .compare__table td:first-child { font-size: .7rem; width: 26%; }
}

/* Giostra più grande */
@media (min-width: 961px) { .hero__inner { grid-template-columns: 1fr 1fr; } }
.ring { --cw: 340px; }
.ring__stage { height: 540px; }
.hero__text { position: relative; z-index: 2; }
@media (max-width: 960px) {
  .ring { --cw: 300px; }
  .ring__stage { height: 480px; }
}
@media (max-width: 560px) {
  .ring { --cw: 240px; }
  .ring__stage { height: 400px; }
}

/* Card materiali con pulsante */
#cat-grid .card { display: flex; flex-direction: column; }
#cat-grid .card__from { margin-top: auto; }
.card__wa { margin-top: 14px; width: 100%; }

/* Sigillo anti-reso */
.antireso { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.antireso__text .sub { margin-bottom: 24px; }
.antireso__steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.antireso__steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.antireso__steps b { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #f7d117; color: #1c1c1e; display: inline-flex; align-items: center; justify-content: center; }
.antireso__steps span { color: var(--muted); font-size: .95rem; }
.antireso__steps strong { color: var(--navy); }
.antireso__specs { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.antireso__specs li { background: #fff; border-radius: 10px; padding: 10px 14px; border: 1px solid var(--line); }
.antireso__specs span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.antireso__specs b { color: var(--navy); font-size: .95rem; }
.antireso__colors { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.antireso__colors span { font-size: .85rem; font-weight: 700; color: var(--navy); margin-right: 6px; }
.antireso__colors i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.antireso__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: #fff; border: 2px solid #f7d117; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.antireso__price { font-size: .95rem; color: var(--muted); }
.antireso__price b { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.antireso__price small { display: block; font-size: .78rem; }
.antireso__cta .btn--wa { width: auto; flex: 1; min-width: 220px; }
.antireso__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.antireso__gallery img { width: 100%; border-radius: var(--radius); display: block; object-fit: cover; box-shadow: 0 14px 30px rgba(15,30,51,.12); background: #fff; }
.antireso__gallery { align-items: stretch; }
.antireso__main { grid-row: span 2; height: 100%; aspect-ratio: 2 / 3; }
.antireso__gallery img:not(.antireso__main) { height: 100%; aspect-ratio: 4 / 3; }
@media (max-width: 960px) { .antireso { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .antireso__specs { grid-template-columns: 1fr; } }
.card__link { display: block; margin-top: 12px; font-size: .92rem; }
.antireso__colors { flex-direction: column; align-items: flex-start; gap: 8px; }
.antireso__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.antireso__swatches button { width: 34px; height: 34px; border-radius: 8px; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); cursor: pointer; padding: 0; transition: transform .15s; }
.antireso__swatches button:hover { transform: translateY(-2px); }
.antireso__swatches button.on { box-shadow: 0 0 0 3px var(--accent); }
canvas.antireso__main { width: 100%; border-radius: var(--radius); box-shadow: 0 14px 30px rgba(15,30,51,.12); display: block; }
.antireso__hint { font-size: .78rem; color: var(--muted); }
.antireso__gallery .antireso__colors { grid-column: 1 / -1; margin: 4px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
@media (max-width: 560px) {
  .antireso__main { grid-column: 1 / -1; grid-row: auto; height: auto; max-height: 520px; }
  .antireso__gallery .antireso__colors { order: 1; }
  .antireso__gallery img:not(.antireso__main) { order: 2; }
}

/* Card sigillo su fondo bianco */
.card__img--seal { position: relative; background: #fff; border: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.card__img--seal canvas { height: 92%; width: auto; max-width: 100%; display: block; opacity: 0; transition: opacity .3s; }
.card__img--seal canvas.ready { opacity: 1; }
.seal-tag { position: absolute; left: 10px; top: 10px; font-size: .75rem; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.92); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.seal-tag b { color: var(--navy); }
.back { display: inline-block; margin-bottom: 18px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }
@media (max-width: 960px) { .antireso__gallery { order: -1; } }

/* TNT termosaldato: pagina con modello e colore a scelta, card che cambia colore */
.card__img--tnt { position: relative; overflow: hidden; text-decoration: none; background: #f1f1f1; }
.card__img--tnt canvas { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; opacity: 0; transition: opacity .3s; }
.card__img--tnt canvas.ready { opacity: 1; }
/* card TNT: busta intera, manici compresi (le foto sono quadrate su bianco) */
.card__img--tnt { background: #fff; }
.card__img--tnt canvas { object-fit: contain; }
.tnt__models { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.tnt__model { text-align: left; font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.tnt__model:hover { border-color: var(--accent); }
.tnt__model.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.tnt__model strong { color: var(--navy); font-size: 1rem; }
.tnt__model span { color: var(--muted); font-size: .85rem; }
.tnt__model em { font-style: normal; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.tnt__model em b { color: var(--accent); font-size: 1.05rem; }
.tnt__cta { border-color: var(--accent); }
.tnt__gallery { display: grid; gap: 14px; }
.tnt__main { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 14px 30px rgba(15,30,51,.12); display: block; background: #f1f1f1; }
.tnt__gallery .antireso__colors { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tnt__swatches button { width: 30px; height: 30px; }
@media (max-width: 960px) { .tnt__gallery { order: -1; } }
@media (max-width: 560px) { .tnt__models { grid-template-columns: 1fr; } }
.tnt__swatches button { position: relative; }
.tnt__swatches button.req::after { content: '*'; position: absolute; top: -7px; right: -5px; font-size: .9rem; font-weight: 800; color: var(--navy); line-height: 1; }

/* Card materiali: 5 in fila su schermo largo, righe allineate (foto, titolo, testo, prezzo, link, pulsante) */
#cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
#cat-grid > .card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; padding: 18px; }
#cat-grid .card__img { height: 200px; }
#cat-grid .card h3 { margin: 0 0 8px; font-size: 1.12rem; }
#cat-grid .card p { margin: 0 0 16px; font-size: .9rem; }
#cat-grid .card__from { margin-top: 0; font-size: .85rem; }
#cat-grid .card__link { margin-top: 10px; font-size: .88rem; }
#cat-grid .card__wa { align-self: end; }
#cat-grid .card__img--seal { border: 0; }
@media (min-width: 1240px) {
  #cat-grid { --w: min(1320px, calc(100vw - 40px)); width: var(--w); margin-inline: calc((100% - var(--w)) / 2); }
}
@media (max-width: 1239px) {
  #cat-grid { grid-template-columns: repeat(6, 1fr); }
  #cat-grid > .card { grid-column: span 2; }
  #cat-grid > .card:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 960px) {
  #cat-grid { grid-template-columns: repeat(4, 1fr); }
  #cat-grid > .card, #cat-grid > .card:nth-child(4) { grid-column: span 2; }
  #cat-grid > .card:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 560px) {
  #cat-grid { grid-template-columns: 1fr; }
  #cat-grid > .card, #cat-grid > .card:nth-child(n) { grid-column: auto; }
}
/* Popup colore TNT: materiale vero + shopper ricolorata */
.tnt-pop { width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 0; border-radius: var(--radius); padding: 24px; box-shadow: 0 30px 80px rgba(15,30,51,.35); color: inherit; }
.tnt-pop::backdrop { background: rgba(15,30,51,.55); }
.tnt-pop h3 { margin: 0 40px 16px 0; color: var(--navy); font-size: 1.35rem; }
.tnt-pop h3 small { font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--bg-alt); padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.tnt-pop__x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--navy); }
.tnt-pop__mat { margin-bottom: 18px !important; }
.tnt-pop__mat canvas { aspect-ratio: 3 / 1; }
.tnt-pop__grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.tnt-pop figure { margin: 0; }
.tnt-pop canvas { width: 100%; display: block; border-radius: 10px; background: var(--bg-alt); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.tnt-pop figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.tnt-pop__hint { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
.tnt-pop__actions { display: grid; gap: 10px; }
.tnt-pop__actions .btn { width: 100%; text-align: center; font-size: .95rem; }
@media (max-width: 560px) { .tnt-pop { padding: 18px; } .tnt-pop__grid { grid-template-columns: 1fr; } .tnt-pop__grid figure { max-width: 240px; } }
.tnt__models--3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Selettore colori TNT: quadratini con il tessuto vero e il nome sotto */
.tnt-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; width: 100%; }
.tnt-colors.short .tnt-sw:nth-child(n+13) { display: none; }
.tnt-sw { font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px 6px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; transition: border-color .15s, background .15s; }
.tnt-sw:hover { border-color: #cfd6e4; }
.tnt-sw.on { border-color: var(--accent); background: #fbeef1; }
.tnt-sw canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 9px; background: var(--c); }
.tnt-sw span { font-size: .78rem; line-height: 1.2; color: var(--navy); text-align: center; }
.tnt-sw.req::after { content: '*'; position: absolute; top: 3px; right: 7px; font-size: 1.1rem; font-weight: 800; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.6); }
/* ingrandimento al passaggio del mouse */
.tnt-zoom { position: absolute; z-index: 50; transform: translate(-50%, calc(-100% - 12px)); background: #161616; padding: 10px; border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 14px 30px rgba(0,0,0,.25); text-align: center; }
.tnt-zoom.on { opacity: 1; }
.tnt-zoom canvas { display: block; width: 180px; height: 180px; border-radius: 10px; }
.tnt-zoom b { display: block; color: #fff; font-size: .8rem; font-weight: 600; margin-top: 7px; }
.tnt-zoom::after { content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-bottom: 0; border-top-color: #161616; }
.tnt-more { font: inherit; font-size: .85rem; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; align-self: center; }
.tnt-more:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .tnt-colors { grid-template-columns: repeat(4, 1fr); gap: 7px; } .tnt-sw { padding: 4px 4px 6px; border-radius: 11px; } .tnt-sw span { font-size: .68rem; } }

/* Colore manici (TNT cucito): pallini, il primo = come la busta */
.tnt-handles { width: 100%; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.tnt-handles[hidden] { display: none; }
.tnt-handles > span { font-size: .85rem; font-weight: 700; color: var(--navy); }
.tnt-hcolors { display: flex; flex-wrap: wrap; gap: 7px; }
.tnt-hsw { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); cursor: pointer; padding: 0; transition: transform .15s; }
.tnt-hsw:hover { transform: scale(1.12); }
.tnt-hsw.on { box-shadow: 0 0 0 3px var(--accent); }
.tnt-hsw--same { background: conic-gradient(from 45deg, #e8e2d6 0 50%, #fff 0 100%); position: relative; }
.tnt-hsw--same::after { content: '='; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--navy); }
/* card TNT: l'etichetta del colore sta in basso, così non copre i manici */
.seal-tag--tnt { top: auto; bottom: 10px; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Logo UnionBags (immagine) */
.logo__img { height: 48px; width: auto; display: block; }
.logo__img--footer { height: 110px; margin-bottom: 8px; }
@media (max-width: 560px) { .logo__img:not(.logo__img--footer) { height: 40px; } }

/* Card con più foto che si alternano */
.card__img--slides { overflow: hidden; }
.card__img--slides img { position: absolute; inset: 0; transition: opacity .8s; }
.card__img--slides img.off { opacity: 0; }
.card__img--slides .vs-it { z-index: 2; }

/* Pagina Manuale luxury: finiture e galleria con miniature */
.lux-finishes { margin-bottom: 18px; }
.lux-finishes > span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.lux-finishes ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lux-finishes li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--navy); }
.lux-gallery .tnt__main { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.lux-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lux-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.lux-thumbs button.on { border-color: var(--accent); }
.lux-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Inizio home: il video parte in un riquadro in basso e scorrendo si allarga a tutta pagina (come dileosolution.it) */
.intro { position: relative; }
.intro .stick { position: sticky; top: 69px; overflow: hidden; min-height: calc(100vh - 69px); min-height: calc(100svh - 69px); }
.intro .hero { min-height: inherit; }
.intro .hero { will-change: opacity, transform; }
.grow { position: absolute; right: 32px; bottom: 32px; width: 320px; height: 200px; border-radius: 20px; overflow: hidden; z-index: 5; background: #111; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); will-change: left, top, width, height; }
.grow__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grow::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,24,.7) 0%, rgba(10,14,24,.2) 45%, rgba(10,14,24,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45)); pointer-events: none; }
.grow__lab { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.grow__big { position: absolute; z-index: 2; left: clamp(20px, 6vw, 96px); bottom: clamp(28px, 8vh, 96px); max-width: 560px; color: #fff; opacity: 0; pointer-events: none; }
.grow__big.on { pointer-events: auto; }
.grow__big h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.15; margin: 10px 0 18px; }
.pill--light { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
@media (max-width: 600px) {
  .grow { left: 16px; right: auto; bottom: 20px; width: 190px; height: 120px; border-radius: 14px; }
  .grow__lab { font-size: .62rem; left: 12px; bottom: 10px; }
  /* su telefono il titolo sta sopra le foto: sfumo di più il fondo per leggerlo bene */
  .grow::after { background: linear-gradient(180deg, rgba(10,14,24,0) 35%, rgba(10,14,24,.55) 62%, rgba(10,14,24,.85) 100%); }
  .grow__big .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .intro .stick { position: relative; top: 0; }
  .intro .hero { padding-bottom: 100px; }
  .grow { position: relative; right: auto; bottom: auto; left: auto; width: auto; height: 70vh; margin: 0; border-radius: 0; }
  .grow__lab { display: none; }
  .grow__big { opacity: 1; pointer-events: auto; }
}

/* Pagine legali: privacy e condizioni di vendita */
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: .3em; }
.legal h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: .6em; }
.legal a { color: var(--navy-2); }
.legal__updated { font-size: .9rem; }
.legal__box { background: var(--kraft-light); border-radius: var(--radius); padding: 20px 22px; margin-top: 24px; }
.legal__box p { margin: 0; color: var(--text); }

/* Avviso cookie (cookie.js): barra scura + pannello preferenze */
.ck-bar { position: fixed; left: 20px; bottom: 20px; z-index: 80; width: min(520px, calc(100vw - 40px)); padding: 30px 28px 24px; border-radius: 16px; background: #0b0f24; color: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .45s, transform .45s; }
.ck-bar.show { opacity: 1; transform: none; pointer-events: auto; }
.ck-bar p { margin: 0 0 10px; font-size: 1rem; line-height: 1.55; color: #e7eaf3; }
.ck-bar p b { color: #fff; }
.ck-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ck-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; color: #c9cede; font-size: 1.9rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.ck-x:hover { color: #fff; background: rgba(255,255,255,.08); }
.ck-btn { display: block; width: 100%; border: 0; border-radius: 999px; padding: 15px 20px; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; transition: filter .15s, transform .15s; }
.ck-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ck-btn--main { background: #3a63d0; color: #fff; }
.ck-btn--dark { background: #1d2340; color: #fff; margin-top: 10px; }
.ck-bar .ck-btn--main { margin-top: 18px; }

.ck-panel { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 15, 36, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.ck-panel.show { opacity: 1; pointer-events: auto; }
.ck-sheet { width: min(860px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; transform: translateY(16px); transition: transform .3s; }
.ck-panel.show .ck-sheet { transform: none; }
.ck-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; }
.ck-back { width: 46px; height: 46px; border: 1px solid #cfd3dc; border-radius: 10px; background: #fff; font-size: 1.8rem; line-height: 1; color: var(--text); cursor: pointer; }
.ck-pill { background: #eef0f4; color: #3a3f4b; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 10px; font-size: .95rem; }
.ck-pill:hover { background: #e2e6ee; }
.ck-body { padding: 18px 28px 8px; overflow-y: auto; }
.ck-body h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.1; margin: 10px 0 18px; color: #0b0f24; }
.ck-body > p { color: #2b303b; margin: 0 0 8px; }
.ck-body h3 { font-size: 1.15rem; margin: 28px 0 6px; padding-top: 22px; border-top: 1px solid var(--line); color: #0b0f24; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-list li { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ck-list li:last-child { border-bottom: 0; }
.ck-list strong { display: block; color: #0b0f24; }
.ck-list span { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.ck-tog { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: not-allowed; }
.ck-tog input { position: absolute; opacity: 0; pointer-events: none; }
.ck-tog i { position: relative; width: 50px; height: 28px; border-radius: 999px; background: #cfd3dc; }
.ck-tog i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ck-tog.on i { background: #128c4a; }
.ck-tog.on i::after { left: 25px; }
.ck-tog em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ck-foot { display: flex; justify-content: flex-end; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.ck-foot .ck-btn { width: auto; padding: 15px 34px; font-size: 1.05rem; }
html.ck-lock { overflow: hidden; }
@media (max-width: 600px) {
  .ck-bar { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 26px 20px 20px; }
  .ck-panel { padding: 0; align-items: flex-end; }
  .ck-sheet { max-height: 92vh; border-radius: 18px 18px 0 0; }
  .ck-body { padding: 14px 20px 6px; }
  .ck-foot .ck-btn { width: 100%; }
}

/* Giostra in alto: le foto laterali non vanno sopra il testo */
.ring__stage { overflow: clip; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
/* --cw deve restare un numero in px: script.js lo legge per calcolare il raggio */
@media (min-width: 961px) and (max-width: 1199px) { .ring { --cw: 270px; } .ring__stage { height: 450px; } }

/* Menu mobile "cartellini" (menu.js): fondo blu che si apre a cerchio dal pulsante,
   voci come cartellini appesi a un laccio che scendono oscillando
   (fino a 1000px: sopra, le 9 voci non stanno su una riga) */
@media (max-width: 1000px) {
  /* niente backdrop-filter qui: farebbe da contenitore al menu fisso e lo taglierebbe alla barra */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .burger { position: relative; z-index: 60; width: 44px; height: 44px; border-radius: 50%; display: block; transition: background .3s; }
  .burger span { position: absolute; left: 10px; width: 24px; margin: 0; transition: transform .35s cubic-bezier(.6,0,.2,1), opacity .2s, background .3s; }
  .burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
  .burger.on { background: rgba(255,255,255,.12); }
  .burger.on span { background: #fff; }
  .burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger.on span:nth-child(2) { opacity: 0; }
  .burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    --cord: 34px; --tag: 62px;
    position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 96px 24px 32px var(--tag); overflow-y: auto;
    background: radial-gradient(circle at 85% 0%, rgba(159,179,236,.22), transparent 55%), var(--navy);
    clip-path: circle(0 at calc(100% - 38px) 34px); visibility: hidden;
    transition: clip-path .6s cubic-bezier(.7,0,.2,1), visibility 0s .6s;
    counter-reset: tag;
  }
  .nav.open { clip-path: circle(150% at calc(100% - 38px) 34px); visibility: visible; transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s; }
  /* il laccio verticale */
  .nav::before { content: ""; position: absolute; left: var(--cord); top: 70px; bottom: 30px; width: 3px; border-radius: 3px; background: linear-gradient(#aec4ff, rgba(174,196,255,.25)); transform: scaleY(0); transform-origin: top; transition: transform .5s .1s; }
  .nav.open::before { transform: scaleY(1); }
  /* i cartellini */
  .nav a, .nav a.btn {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: min(100%, 320px); padding: 13px 18px 13px 36px; margin: 0;
    background: #fff; color: var(--navy); border: 0; border-radius: 8px 16px 16px 8px;
    font-size: 1.05rem; font-weight: 700; text-align: left; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
    transform-origin: calc(var(--cord) - var(--tag)) 50%; opacity: 0; transform: rotate(-24deg);
    counter-increment: tag;
  }
  .nav a::before { content: ""; position: absolute; top: 50%; right: 100%; width: calc(var(--tag) - var(--cord) + 14px); height: 2px; margin-right: -14px; background: #aec4ff; }
  .nav a::after { content: counter(tag, decimal-leading-zero); order: 2; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
  .nav a { background-image: radial-gradient(circle at 16px 50%, var(--navy) 0 5px, #d9def0 5.5px 7px, transparent 7.5px); }
  .nav a.btn { background-color: var(--accent); color: #fff; background-image: radial-gradient(circle at 16px 50%, var(--navy) 0 5px, rgba(255,255,255,.55) 5.5px 7px, transparent 7.5px); }
  .nav a.btn::after { color: rgba(255,255,255,.75); }
  /* a riposo dritti: con inclinazioni alterne gli spazi sembravano irregolari */
  .nav.open a { animation: tag-swing .9s cubic-bezier(.3,.7,.3,1) both; animation-delay: calc(.18s + var(--i, 0) * .07s); }
  .nav a:active { transform: rotate(var(--tilt)) scale(.97); }
  html.menu-lock { overflow: hidden; }
  html.menu-lock .wa-float, html.menu-lock .ck-bar { opacity: 0; pointer-events: none; }
  .topbar:has(.nav.open) .logo { position: relative; z-index: 60; filter: brightness(0) invert(1); transition: filter .3s .2s; }
}
@keyframes tag-swing {
  0%   { opacity: 0; transform: rotate(-24deg); }
  35%  { opacity: 1; }
  55%  { transform: rotate(7deg); }
  75%  { transform: rotate(-3deg); }
  100% { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
}
@media (max-width: 1000px) and (prefers-reduced-motion: reduce) {
  .nav, .nav.open { transition: visibility 0s; }
  .nav.open a { animation: none; opacity: 1; transform: none; }
}

/* Esempio concreto nel confronto: risparmio sull'Italia e nota sul cambio */
.example__vs { grid-column: 1 / -1; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--text); }
.example__vs b { color: var(--accent); font-weight: 800; }
.example__fx { grid-column: 1 / -1; font-size: .75rem; color: var(--muted); }

/* Nota cambio sotto ogni prezzo */
.fx { display: block; margin-top: 4px; font-size: .72rem; font-weight: 500; font-style: normal; color: var(--muted); letter-spacing: 0; text-transform: none; }
.legal__steps { padding-left: 22px; }
.legal__steps li { margin-bottom: .6em; color: var(--muted); }

/* Esperienza e garanzia: 20+ anni di import, fabbriche specializzate */
.expert .pill--light { margin-bottom: 14px; }
.expert h2 { color: #fff; max-width: 820px; }
.expert__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; margin-top: 8px; }
.expert__num { font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 800; line-height: .9; color: #fff; letter-spacing: -.04em; }
.expert__num span { display: block; margin-top: 10px; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: #aec4ff; }
.expert blockquote { margin: 28px 0 0; padding: 20px 22px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.06); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.05rem; line-height: 1.6; color: #e7eaf3; }
.expert cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: #fff; font-size: .9rem; }
.expert__points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.expert__points li { padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.expert__points strong { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.expert__points strong::before { content: "✓"; display: inline-grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #128c4a; color: #fff; font-size: .8rem; }
.expert__points span { color: #c3cbe0; font-size: .93rem; }
@media (max-width: 960px) { .expert__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .expert__points { grid-template-columns: 1fr; } }

/* Programma: shopper che salta da un passo all'altro (script.js) */
.plan--live { position: relative; }
.plan--live li > b { position: relative; z-index: 2; transition: background .35s, transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .35s; }
.plan--live li > b.hit { background: var(--accent); transform: scale(1.18); box-shadow: 0 0 0 6px rgba(161, 13, 50, .15); }
.plan__rail { position: absolute; z-index: 1; height: 0; border-top: 2px dashed rgba(37, 60, 136, .35); pointer-events: none; display: none; }
.plan[data-mode="row"] .plan__rail { display: block; }
.plan__bag { position: absolute; left: 0; top: 0; z-index: 3; width: 28px; height: 32px; color: var(--accent); pointer-events: none; opacity: 0; filter: drop-shadow(0 6px 6px rgba(161, 13, 50, .25)); will-change: transform; }
.plan__bag svg { width: 100%; height: 100%; display: block; }
.plan[data-mode="grid"] .plan__bag { display: none; }
@media (max-width: 640px) {
  .example { grid-template-columns: 1fr; }
  .example__price { text-align: left; margin-top: 6px; }
}
.lux-finishes { margin-top: 22px; }
.tnt .example--inline { margin-bottom: 22px; }
.piva-note { margin-top: 18px; color: var(--text); }

/* Modulo "Chiedi il prezzo" (quote.js) */
.qf { width: min(620px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 80px rgba(15,30,51,.4); color: inherit; }
.qf::backdrop { background: rgba(11, 15, 36, .6); }
.qf form { position: relative; padding: 26px 26px 22px; }
.qf h3 { margin: 0 44px 4px 0; font-size: 1.45rem; color: var(--navy); }
.qf__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-alt); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text); }
.qf__intro { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.qf__ctx { list-style: none; margin: 0 0 16px; padding: 10px 14px; background: var(--kraft-light); border-radius: 10px; font-size: .88rem; color: var(--navy); }
.qf__ctx:empty { display: none; }
.qf__ctx li { margin: 2px 0; }
.qf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.qf__grid label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text); }
.qf__grid label[data-f="formato"], .qf__grid label[data-f="finiture"] { grid-column: 1 / -1; }
.qf__grid label[hidden] { display: none; }
.qf input, .qf select { font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.qf input:focus, .qf select:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(37, 60, 136, .15); }
.qf [aria-invalid="true"] { border-color: var(--accent); background: #fbeef1; }
.qf small { font-weight: 400; font-size: .76rem; color: var(--muted); }
.qf__err { min-height: 1.2em; margin: 12px 0 8px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.qf .btn--wa { width: 100%; cursor: pointer; font-family: inherit; font-size: 1rem; }
.qf .btn--wa.off { background: #9aa6bd; border-color: #9aa6bd; }
.qf__privacy { margin: 10px 0 0; font-size: .76rem; color: var(--muted); text-align: center; }
.qf__privacy a { color: var(--navy-2); }
@media (max-width: 560px) {
  .qf { width: 100%; max-width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .qf form { padding: 22px 18px 18px; }
  .qf__grid { grid-template-columns: 1fr; }
}

/* Sigillo: disegno tecnico intero, senza ritaglio */
.antireso__gallery img.antireso__blueprint { object-fit: contain; background: #012a8f; }


/* Sigillo: immagine "come funziona" in apertura di pagina, a tutta larghezza */
.antireso__howto { display: block; width: 100%; height: auto; margin: 0 0 40px; border-radius: var(--radius); box-shadow: 0 14px 30px rgba(15,30,51,.12); }
@media (max-width: 560px) { .antireso__howto { margin-bottom: 28px; } }

/* ------------------------------------------------------------
   Manuale luxury in evidenza (home, #luxury): il prodotto principale.
   Fondo nero come le buste di fascia alta, dettagli color oro (come l'oro a caldo) */
.lux { --gold: #cfae6c; overflow-x: clip; background: radial-gradient(120% 90% at 85% 10%, #1d2230 0%, #0e1015 60%); color: #fff; padding: 96px 0; }
.lux__inner { display: grid; grid-template-columns: .9fr 1.3fr; gap: 40px; align-items: center; }
.lux__tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); border: 1px solid rgba(207, 174, 108, .5); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.lux h2 { font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; }
.lux h2 em { font-style: normal; color: var(--gold); }
.lux__lead { color: #c3c8d4; font-size: 1.1rem; max-width: 560px; }
.lux__finish { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.lux__finish li { font-size: .85rem; color: #e8e2d4; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 12px; border-radius: 999px; }
.lux__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.lux__facts div { background: #14171e; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.lux__facts strong { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; white-space: nowrap; }
.lux__facts span { font-size: .8rem; color: #aab0bd; line-height: 1.4; }
.lux__facts strong span { font-size: inherit; color: inherit; }
.lux__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lux__cta .btn { padding: 14px 20px; flex: 1 1 auto; }
.lux__cta .btn--wa { width: auto; }
.btn--light { background: #fff; color: #0e1015; border-color: #fff; }
.btn--light:hover { box-shadow: 0 8px 24px rgba(207, 174, 108, .35); }
.lux__note { font-size: .78rem; color: #8b92a1; margin: 16px 0 0; max-width: 560px; }
/* Effetto 3D: busta scontornata davanti a una cornice chiara, con fiocco e manici che escono dal bordo. La scena si inclina col mouse (lux3d.js: --rx, --ry, riflesso in --gx/--gy) */
.lux3d { display: block; perspective: 1100px; text-decoration: none; }
.lux3d__scene { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 40%; position: relative; aspect-ratio: 1 / 1.02; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.lux3d__frame { position: absolute; left: 5%; right: 5%; top: 34%; bottom: 6%; border-radius: 20px; overflow: hidden; transform: translateZ(0);
  background: linear-gradient(160deg, #f7f2e8 0%, #e6dccb 100%); border: 1px solid rgba(207, 174, 108, .7); box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 8px rgba(255, 255, 255, .35); }
.lux3d__glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .7), transparent 55%); mix-blend-mode: soft-light; }
.lux3d__bag { position: absolute; left: 50%; bottom: 10%; height: 94%; width: auto; transform: translateX(-50%) translateZ(80px); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .45)); pointer-events: none; }
.lux3d__tag { position: absolute; left: 50%; bottom: -1%; transform: translateX(-50%) translateZ(110px); white-space: nowrap; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #0e1015; background: var(--gold); padding: 7px 14px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
@media (max-width: 960px) {
  .lux__inner { grid-template-columns: 1fr; gap: 36px; }
  .lux3d { order: -1; max-width: 520px; width: 100%; margin: 0 auto 18px; }
  .lux3d__tag { font-size: .68rem; }
}
@media (max-width: 560px) {
  .lux { padding: 64px 0; }
  .lux__facts { grid-template-columns: 1fr; }
  .lux__facts div { flex-direction: row; align-items: baseline; gap: 12px; }
  .lux__facts strong { font-size: 1.3rem; min-width: 92px; }
  .lux__cta .btn { width: 100%; }
}
/* 9 voci nel menu: più strette sugli schermi medi */
@media (max-width: 1180px) and (min-width: 1001px) { .nav { gap: 16px; } .nav a { font-size: .88rem; } }
/* card Manuale luxury nella griglia prodotti: prima e in evidenza (fuori dalla subgrid: posizione assoluta) */
#cat-grid > .card--top { position: relative; border: 2px solid #0e1015; box-shadow: 0 14px 30px rgba(14, 16, 21, .14); }
.card__flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #cfae6c; background: #0e1015; padding: 5px 12px; border-radius: 999px; }
/* Pagina Manuale luxury (2026-11-04): titolo centrato, striscia di foto a tutta larghezza (la foto al centro è in evidenza),
   sotto due colonne: modelli e finiture a sinistra, esempio prezzo e WhatsApp a destra (fermi mentre scorri) */
.lux-wide { max-width: 1200px; }
.lux-head { max-width: 860px; text-align: center; margin-bottom: 36px; }
.lux-head h2 { margin-left: auto; margin-right: auto; }
.lux-head .sub { margin: 0 auto; max-width: 720px; }
.lux-strip { position: relative; margin-bottom: 32px; }
.lux-track { --sh: min(34vw, 470px); --sw: calc(var(--sh) * 4 / 3); display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 24px calc(50% - var(--sw) / 2) 64px; }
.lux-track::-webkit-scrollbar { display: none; }
.lux-slide { flex: 0 0 auto; height: var(--sh); margin: 0; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; background: #fff; cursor: pointer;
  transform: scale(.88); filter: saturate(.85) brightness(.97); transition: transform .45s ease, filter .45s ease, box-shadow .45s ease; }
.lux-slide.on { transform: none; filter: none; box-shadow: 0 22px 40px -12px rgba(15, 30, 51, .28); cursor: default; }
/* foto intere (niente tagli): altezza fissa, larghezza naturale di ogni foto */
.lux-slide img { display: block; height: 100%; width: auto; }
.lux-strip .lux-arrow { top: calc(50% - 20px); }
.lux-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(15, 30, 51, .18); display: grid; place-items: center; padding: 0 0 4px; transition: transform .15s; }
.lux-arrow:hover { transform: translateY(-50%) scale(1.08); }
.lux-arrow--prev { left: max(16px, calc(50% - 640px)); }
.lux-arrow--next { right: max(16px, calc(50% - 640px)); }
.lux-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: .78rem; font-weight: 700; color: #fff; background: rgba(14, 16, 21, .7); padding: 4px 12px; border-radius: 999px; }
.lux-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.lux-body__side { position: sticky; top: 96px; }
.lux-sub { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 14px; }
.lux-body .lux-example { margin-top: 0; }
@media (max-width: 960px) {
  .lux-body { grid-template-columns: 1fr; gap: 8px; }
  .lux-body__side { position: static; order: -1; }
  .lux-track { --sh: 52vw; }
  .lux-arrow--prev { left: 8px; } .lux-arrow--next { right: 8px; }
}
@media (max-width: 560px) {
  .lux-head { text-align: left; }
  .lux-track { --sh: 62vw; gap: 12px; }
  .lux-slide { transform: scale(.92); }
  .lux-arrow { width: 38px; height: 38px; font-size: 1.5rem; }
}
/* Piè di pagina: social come icone; su telefono tutto più compatto (link su due colonne, logo più piccolo) */
.footer__social { display: flex; gap: 10px; margin: 10px 0 !important; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s; }
.footer__social a:hover { background: rgba(255, 255, 255, .2); }
.footer__social svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .footer { padding: 32px 0 96px; font-size: .9rem; }
  .footer__inner { gap: 18px; }
  .logo__img--footer { height: 70px; margin-bottom: 4px; }
  .footer__inner > div:last-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; width: 100%; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
  .footer__inner > div:last-child p { margin: 4px 0; }
  .footer__social { grid-column: 1 / -1; order: -1; margin: 0 0 8px !important; }
}
/* TNT: si vendono solo personalizzate (avviso sotto il titolo) */
.only-print { display: inline-block; margin: -4px 0 16px; font-size: .95rem; color: var(--accent); background: #fbeef1; border: 1px solid #f0c9d3; border-radius: 10px; padding: 8px 14px; }
.only-print b { text-transform: uppercase; letter-spacing: .04em; }
/* TNT: due viste dello stesso modello (davanti / fondo e soffietti) */
.tnt-views { display: flex; gap: 8px; justify-content: center; margin-top: -4px; }
.tnt-views[hidden] { display: none; }
.tnt-views button { font: inherit; font-size: .88rem; font-weight: 600; color: var(--navy); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.tnt-views button.on { border-color: var(--accent); color: var(--accent); }
/* Pagina luxury: "Le finiture, da vicino" (2026-11-04). Fondo nero con oro come la sezione luxury della home.
   La lamina brilla: una banda di luce passa sopra la foto (.shine) e un riflesso morbido segue il mouse (--mx, --my) */
.lux-fin { --gold: #cfae6c; background: radial-gradient(120% 90% at 85% 10%, #1d2230 0%, #0e1015 60%); color: #e9e6df; }
.lux-fin h2 { color: #fff; max-width: 760px; }
.lux-fin .sub { color: #a9adb6; max-width: 680px; margin-bottom: 36px; }
.lux-fin__kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.lux-fin__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fin { margin: 0; outline: none; }
.fin__img { --mx: 50%; --my: 40%; position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 2; background: #1a1c22;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.fin__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
/* riflesso morbido che segue il mouse */
.fin__img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%); mix-blend-mode: soft-light; }
/* banda di luce che attraversa la lamina */
.fin__img::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: 2; pointer-events: none;
  transform: translateX(0) skewX(-20deg); opacity: 0; mix-blend-mode: color-dodge;
  background: linear-gradient(90deg, rgba(255, 240, 200, 0) 0%, rgba(255, 236, 190, .75) 50%, rgba(255, 240, 200, 0) 100%); }
.fin--silver .fin__img::after { background: linear-gradient(90deg, rgba(220, 230, 255, 0) 0%, rgba(225, 232, 255, .7) 50%, rgba(220, 230, 255, 0) 100%); }
.fin.shine .fin__img::after { animation: finShine 1.3s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes finShine { 0% { opacity: 0; transform: translateX(0) skewX(-20deg); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(420%) skewX(-20deg); } }
.fin:hover .fin__img, .fin:focus-visible .fin__img { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(207, 174, 108, .5); }
.fin:hover .fin__img::before, .fin:focus-visible .fin__img::before { opacity: 1; }
.fin:hover .fin__img img, .fin:focus-visible .fin__img img { transform: scale(1.06); }
.fin figcaption { padding: 14px 2px 0; }
.fin figcaption strong { display: block; color: #fff; font-size: 1.02rem; }
.fin figcaption strong::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.fin figcaption span { display: block; color: #9ba0aa; font-size: .88rem; margin-top: 4px; padding-left: 28px; }
@media (max-width: 960px) { .lux-fin__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .lux-fin__grid { gap: 14px; }
  .fin figcaption strong { font-size: .92rem; }
  .fin figcaption strong::before { display: none; }
  .fin figcaption span { padding-left: 0; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .fin.shine .fin__img::after { animation: none; } .fin__img, .fin__img img { transition: none; } }

/* Fascia "sito madre": riporta a dileosolution.it (prima del piè di pagina, su tutte le pagine) */
.mother { background: radial-gradient(120% 140% at 100% 0%, rgba(161, 13, 50, .35), transparent 55%), linear-gradient(135deg, #111a3d, var(--navy)); color: #fff; padding: 56px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.mother__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.mother__text { max-width: 680px; }
.mother__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kraft); margin-bottom: 12px; }
.mother__kicker::before { content: ""; width: 28px; height: 2px; background: var(--kraft); }
.mother h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4em; }
.mother h2 em { font-style: normal; color: var(--kraft); }
.mother p { color: #c9d1e3; margin: 0; }
.mother__btn { background: #fff; color: var(--navy); white-space: nowrap; }
.mother__btn:hover { background: var(--kraft-light); }
.footer__mother { color: #fff; text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 640px) { .mother { padding: 44px 0; } .mother__btn { width: 100%; text-align: center; } }

/* Invito a scorrere (home): pillola in basso al centro, sparisce quando si scorre oltre l'apertura */
.scroll-hint { position: fixed; left: 50%; bottom: 26px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(27, 43, 99, .88); color: #fff; font: 600 .82rem/1 Inter, system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; box-shadow: 0 14px 40px -12px rgba(10, 14, 40, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translate(-50%, 0); transition: opacity .4s, transform .4s; animation: hint-in .7s 1.2s both; }
.scroll-hint:hover { background: var(--navy-2); }
.scroll-hint.off { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
.scroll-hint__mouse { width: 18px; height: 28px; border: 2px solid #fff; border-radius: 10px; position: relative; flex: none; }
.scroll-hint__mouse span { position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hint-wheel 1.6s infinite; }
.scroll-hint__arrows { display: grid; gap: 1px; }
.scroll-hint__arrows i { width: 8px; height: 8px; border-right: 2px solid var(--kraft); border-bottom: 2px solid var(--kraft); transform: rotate(45deg); animation: hint-arrow 1.6s infinite; }
.scroll-hint__arrows i + i { animation-delay: .2s; }
@keyframes hint-in { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes hint-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
@keyframes hint-arrow { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (max-width: 600px) {
  /* in basso a sinistra c'è il video e a destra WhatsApp: cartellino verticale piccolo nello spazio tra i due */
  .scroll-hint { left: calc(50% + 63px); bottom: 26px; flex-direction: column; gap: 5px; padding: 8px 9px 7px; border-radius: 16px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
  .scroll-hint__more { display: none; }
  .scroll-hint__mouse { width: 16px; height: 24px; }
  .scroll-hint__arrows i { width: 6px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint, .scroll-hint * { animation: none !important; } }
html.menu-lock .scroll-hint { opacity: 0; pointer-events: none; }

/* Calcolatore 2026-11-05: tipi con foto, cursori, barre, anni, calendario ordini */
.calc__q { display: block; font-weight: 700; margin: 26px 0 10px; }
.calc__types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc__type { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 8px 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.calc__type img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 9px; margin-bottom: 4px; transition: transform .3s; }
.calc__type span { font-weight: 700; font-size: .86rem; line-height: 1.2; text-align: center; }
.calc__type small { color: var(--muted); font-size: .72rem; }
.calc__type:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(27,43,99,.5); }
.calc__type:hover img { transform: scale(1.05); }
.calc__type[aria-checked="true"] { border-color: var(--accent); background: #fbeef1; box-shadow: 0 10px 24px -14px rgba(161,13,50,.6); }
.calc__type[aria-checked="true"] small { color: var(--accent); font-weight: 700; }
.calc__slide { background: var(--kraft-light); border-radius: 14px; padding: 16px 18px 12px; }
.calc__val { display: flex; align-items: baseline; gap: 10px; }
.calc .calc__val input[type=text] { display: inline-block; width: 7ch; margin: 0; padding: 0; border: 0; border-bottom: 2px dashed rgba(27,43,99,.25); border-radius: 0; background: transparent; font-size: 2rem; font-weight: 800; color: var(--navy); }
.calc .calc__val input[type=text]:focus { outline: none; border-bottom-color: var(--accent); }
.calc__val span { color: var(--muted); font-weight: 600; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; margin: 14px 0 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), #d5dbea var(--p, 50%)); cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(161,13,50,.35); transition: transform .15s; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(161,13,50,.35); }
.calc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.calc__slide .hint { margin-top: 4px; font-size: .8rem; }

.calc__plan { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.calc__plan-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.calc__plan-head span { color: var(--muted); font-size: .88rem; }
.calc__months { list-style: none; margin: 0; padding: 0 0 22px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.calc__months li { position: relative; text-align: center; font-size: .68rem; color: var(--muted); }
.calc__months li i { display: block; height: 14px; margin-top: 4px; border-radius: 4px; background: #d9e0f1; }
.calc__months li.o i { background: var(--accent); }
.calc__months li.a i { background: var(--green); }
.calc__months li b { position: absolute; left: 50%; top: 38px; transform: translateX(-50%); white-space: nowrap; font-size: .64rem; color: var(--text); }
.calc__months li.o b { color: var(--accent); }
.calc__months li.a b { color: #149447; }
.calc__legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .75rem; color: var(--muted); }
.calc__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: #d9e0f1; }
.calc__legend .o::before { background: var(--accent); }
.calc__legend .a::before { background: var(--green); }

.calc__bars { display: grid; gap: 12px; margin: 4px 0 22px; }
.calc__bar { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; font-size: .82rem; color: #b9c3d3; }
.calc__bar b { color: #fff; font-size: .9rem; min-width: 70px; text-align: right; }
.calc__track { position: relative; height: 14px; border-radius: 99px; background: rgba(255,255,255,.07); }
.calc__track i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: #7e8aa0; transition: width .6s cubic-bezier(.3,.7,.3,1); }
.calc__bar--us .calc__track i { background: var(--green); }
.calc__bar--us .calc__track { background: repeating-linear-gradient(-45deg, rgba(37,211,102,.18) 0 6px, rgba(37,211,102,.06) 6px 12px); }
.calc__track em { position: absolute; top: 50%; transform: translateY(-50%); padding-left: 8px; font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8ef0b5; }
.calc__years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.calc__years div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px 8px; text-align: center; }
.calc__years div:last-child { background: rgba(37,211,102,.14); outline: 1px solid rgba(37,211,102,.35); }
.calc__years b { display: block; font-size: 1.05rem; color: #fff; }
.calc__years span { font-size: .72rem; color: #b9c3d3; }

@media (max-width: 600px) {
  .calc__types { grid-template-columns: repeat(2, 1fr); }
  .calc .calc__val input[type=text] { font-size: 1.7rem; }
  .calc__months li span { font-size: .58rem; }
  .calc__months li b { font-size: .56rem; }
  .calc__result { padding: 24px 18px; }
  .calc__total { font-size: 2.4rem; }
  .calc__bar { grid-template-columns: 70px 1fr auto; }
  .calc__years b { font-size: .92rem; }
}
.calc__months li.w i, .calc__legend .w::before { background: repeating-linear-gradient(-45deg, #f2c9d3 0 4px, #fbeef1 4px 8px); }
.calc__months li.u i, .calc__legend .u::before { background: #cfe9d9; }
@media (max-width: 600px) { .calc__type img { aspect-ratio: 4 / 3; } .calc__type { padding: 6px 6px 8px; } }
