/* Groma PG · sito di vendita
   Fondo scuro caldo, linee sottili color bronzo, accento terracotta, testo avorio.
   Titoli in Marcellus, testo in Manrope. */

:root {
  --bg: #14100d;
  --bg-2: #1b1612;
  --bg-3: #241d18;
  --ivory: #f0e7d6;
  --stone: #bcae98;
  --dim: #95876f;
  --terra: #d06a42;
  --terra-2: #e58a5c;
  --bronze: #c9a066;
  --bronze-2: #e0c08e;
  --line: rgba(201, 160, 102, .16);
  --line-2: rgba(201, 160, 102, .32);
  --grid: rgba(201, 160, 102, .075);
  --ink: linear-gradient(100deg, #e58a5c 0%, #d06a42 48%, #c9a066 100%);
  --on-ink: #1a110b;
  --r: 14px;
  --r-sm: 10px;
  --gut: clamp(16px, 4vw, 40px);
  --serif: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* grana della pietra: rumore procedurale, nessuna foto */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .94 0 0 0 0 .87 0 0 0 0 .74 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='v' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0025 .045' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .86 0 0 0 0 .72 0 0 0 0 .52 0 0 0 .17 -.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; background-image: var(--grain); opacity: .55; mix-blend-mode: overlay; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, dd a, li a { color: var(--bronze-2); text-decoration-color: rgba(224, 192, 142, .45); text-underline-offset: 3px; }
p a:hover, dd a:hover, li a:hover { color: #fff3dc; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--bronze-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(208, 106, 66, .4); color: #fff; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.8rem); line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); line-height: 1.6; color: var(--stone); max-width: 62ch; margin-top: 1.15rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  font: 700 .8em/1 var(--sans); display: inline-block; padding: .3em .45em .26em; border-radius: 6px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(240, 231, 214, .04); color: var(--ivory); white-space: nowrap;
}

.wrap { width: min(1180px, 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap-wide { width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; }
section { position: relative; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ivory); color: #000; border-radius: 8px; }
.skip:focus { top: 12px; }

/* percorso lungo la pagina (svg creato da js/linee.js) */
.route { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; overflow: visible; }
.route path { fill: none; }
.route .r-base { stroke: rgba(201, 160, 102, .1); stroke-width: 1; }
.route .r-ink { stroke: url(#rGrad); stroke-width: 1.4; }
.route .r-lead { stroke: rgba(224, 192, 142, .7); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.6, 0, .2, 1); }
.route .r-lead.on { stroke-dashoffset: 0; }
.route .r-node { fill: var(--bg); stroke: rgba(201, 160, 102, .35); stroke-width: 1; transition: fill .4s, stroke .4s; }
.route .r-node.on { fill: var(--terra); stroke: var(--bronze-2); }
.route .r-pen { fill: var(--terra-2); }
.route .r-halo { fill: rgba(208, 106, 66, .18); }

/* bordo che si traccia tutto intorno (hover e cambi di immagine) */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-ghost::after, .plan::after, .stage-frame::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from 210deg, var(--terra-2), var(--bronze-2) var(--sweep), transparent var(--sweep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: --sweep .75s cubic-bezier(.45, 0, .2, 1);
}
.btn-ghost:hover::after, .btn-ghost:focus-visible::after, .plan:hover::after { --sweep: 360deg; }
.stage-frame::after { inset: 0; z-index: 2; opacity: 0; }
.stage-frame.swept::after { animation: sweep 1.1s cubic-bezier(.45, 0, .2, 1); }
@keyframes sweep { 0% { --sweep: 0deg; opacity: 1; } 75% { --sweep: 360deg; opacity: 1; } 100% { --sweep: 360deg; opacity: 0; } }

/* linea di quota che compare sotto un elemento (hover) */
.fmt, .who-list dt, .lib-num { position: relative; width: fit-content; }
.fmt::after, .who-list dt::after, .lib-num::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 9px; pointer-events: none; transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.6, 0, .2, 1);
  background: linear-gradient(var(--terra-2), var(--terra-2)) center / 100% 1px no-repeat, linear-gradient(var(--terra-2), var(--terra-2)) left center / 1px 9px no-repeat, linear-gradient(var(--terra-2), var(--terra-2)) right center / 1px 9px no-repeat; }
.fmt-list li:hover .fmt::after, .who-list > div:hover dt::after, .lib:hover .lib-num::after, .lib-num.in::after { transform: none; }
.lib-num::after { bottom: -6px; }
.who-list dt::after { bottom: -4px; }

/* ---------- pulsanti ---------- */
.btn {
  --h: 52px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 700 .98rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 12px 30px -12px rgba(208, 106, 66, .65), inset 0 1px 0 rgba(255, 240, 220, .35); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(208, 106, 66, .8), inset 0 1px 0 rgba(255, 240, 220, .35); }
.btn-ink::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 244, 228, .5) 50%, transparent 62%) -160% 0 / 260% 100% no-repeat; transition: background-position .9s cubic-bezier(.3, 0, .2, 1); }
.btn-ink:hover::before { background-position: 160% 0; }
.btn-ghost { background: rgba(240, 231, 214, .03); color: var(--ivory); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(240, 231, 214, .07); border-color: rgba(224, 192, 142, .6); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn svg { flex: none; }
.btn .os { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* acquisto e download insieme: il pulsante principale sopra, i due download sotto */
.get { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 500px); margin-top: 2rem; }
.get-buy { grid-column: 1 / -1; }
.get-os { padding: 0 18px; }
.get-note { grid-column: 1 / -1; margin: 4px 0 0; color: var(--dim); font-size: .9rem; line-height: 1.45; }
.get-note a { color: var(--bronze-2); }
.get-card { width: 100%; margin-top: 0; }
.get-card .get-note { text-align: center; }
.get-center { margin-inline: auto; }
.get-center .get-note { text-align: center; }

/* ---------- testata ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(20, 16, 13, .8); backdrop-filter: saturate(130%) blur(14px); -webkit-backdrop-filter: saturate(130%) blur(14px); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--serif); font-size: 1.32rem; letter-spacing: .02em; }
.brand em, .foot-brand em { font-style: normal; color: var(--bronze); font-size: .78em; letter-spacing: .08em; margin-left: .12em; }
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--stone); font-size: .94rem; transition: color .2s, background-color .2s; }
.nav a:not(.btn):hover { color: var(--ivory); background: rgba(240, 231, 214, .05); }
.nav-cta { margin-left: 8px; }

/* menu Download nella barra */
.dl-menu { position: relative; margin-left: 10px; }
.dl-toggle .ico { margin-left: -2px; }
.dl-toggle[aria-expanded="true"] { background: rgba(240, 231, 214, .08); border-color: rgba(224, 192, 142, .6); }
.dl-pop { position: absolute; right: 0; top: calc(100% + 14px); width: 312px; padding: 8px; border-radius: 16px; border: 1px solid transparent;
  background: linear-gradient(var(--bg-3), var(--bg-2)) padding-box, linear-gradient(150deg, rgba(229, 138, 92, .75), rgba(201, 160, 102, .25)) border-box;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .9); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.dl-pop::before { content: ""; position: absolute; right: 56px; top: -15px; width: 1px; height: 14px; background: linear-gradient(transparent, var(--bronze-2)); }
.dl-menu.open .dl-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.nav .dl-pop .dl-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; color: var(--ivory); text-decoration: none; position: relative; border: 0; font-size: 1rem; }
.nav .dl-pop .dl-item:hover, .nav .dl-pop .dl-item:focus-visible { background: rgba(240, 231, 214, .06); }
.dl-item .os { width: 22px; height: 22px; flex: none; fill: var(--bronze-2); }
.dl-item b { display: block; font-weight: 700; line-height: 1.2; }
.dl-item small { display: block; color: var(--dim); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.dl-item .dl-tag { margin-left: auto; align-self: center; font-style: normal; font-size: .74rem; color: var(--terra-2); border: 1px solid rgba(229, 138, 92, .45); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.dl-pop-note { margin: 6px 8px 4px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8rem; line-height: 1.4; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(240, 231, 214, .04); cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ivory); transition: transform .25s ease, top .25s ease; }
.menu-btn i:nth-of-type(1) { top: 16px; }
.menu-btn i:nth-of-type(2) { top: 25px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- apertura ---------- */
.hero { padding: clamp(110px, 14vh, 150px) 0 clamp(64px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 78%, transparent), linear-gradient(90deg, rgba(0, 0, 0, .5), #000 62%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 78%, transparent), linear-gradient(90deg, rgba(0, 0, 0, .5), #000 62%); mask-composite: intersect; }
.plumb { position: absolute; z-index: -1; left: var(--px, -10px); top: var(--py, 0px); bottom: 0; width: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(224, 192, 142, .55), rgba(224, 192, 142, .32) 60%, transparent); transform-origin: top; }
.plumb.on { opacity: 1; }
.hero::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 58%; width: min(1100px, 120vw); height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(208, 106, 66, .16), rgba(201, 160, 102, .07) 55%, transparent); }
.hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { display: flex; flex-direction: column; gap: .9rem; }
.wordmark { font-size: clamp(4.4rem, 2rem + 9vw, 9.6rem); line-height: .86; letter-spacing: .015em; color: var(--ivory); }
.wordmark .pg { font-size: .34em; letter-spacing: .12em; color: var(--bronze); vertical-align: 1.05em; white-space: pre; }
.tagline { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.5rem); line-height: 1.16; color: var(--bronze-2); max-width: 22ch; }
.hero-sub { font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: var(--stone); max-width: 44rem; margin: 1.5rem 0 0; line-height: 1.6; }
.hero-facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--stone); font-size: .94rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero-facts li::before { content: ""; width: 9px; height: 9px; flex: none; transform: rotate(45deg); border: 1.5px solid var(--terra-2); }
.hero-groma { color: var(--bronze); --accent: var(--terra); align-self: stretch; display: flex; align-items: center; justify-content: center; }
.groma-art { width: 100%; max-width: 420px; height: auto; overflow: visible; }

.hero-shot { margin-top: clamp(48px, 6vw, 88px); position: relative; perspective: 2200px; }
.hero-shot .frame-hero { transform-origin: 50% 0; transform: rotateX(calc(var(--t, 0) * 11deg)); will-change: transform; background: var(--bg-2); }
/* la schermata parte come disegno a linee e poi appare */
.frame-hero picture { display: block; opacity: clamp(0, calc((var(--bp, 1) - .42) * 2.4), 1); }
.blueprint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: clamp(0, calc(1 - (var(--bp, 1) - .82) * 6), 1); }
.blueprint .bp { stroke: rgba(224, 192, 142, .75); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: clamp(0, calc(1 - (var(--bp, 1) * 1.9 - var(--i) * .07) * 1.6), 1); }
.blueprint .bp-plan { stroke: var(--terra-2); stroke-width: 1.6; }
.hero-shot figcaption, .cap { text-align: center; color: var(--dim); font-size: .88rem; margin-top: 18px; }

/* ---------- quote (linee di misura, come nei rilievi) ---------- */
.quota-row { position: relative; height: 34px; margin-bottom: 10px; }
.q { position: absolute; bottom: 6px; left: var(--a); width: calc(var(--b) - var(--a)); height: 1px; background: rgba(224, 192, 142, .6); transform-origin: left center; }
.q::before, .q::after { content: ""; position: absolute; top: -6px; width: 1.5px; height: 13px; background: var(--bronze-2); transform: rotate(45deg); }
.q::before { left: 0; } .q::after { right: 0; }
.q b { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); font: 400 .9rem/1 var(--serif); letter-spacing: .04em; color: var(--bronze-2); white-space: nowrap; }
.q-side { background: rgba(224, 192, 142, .3); }
.q-side b { color: var(--dim); }

/* ---------- cornici delle schermate ---------- */
.frame { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .45); }
.frame img { width: 100%; }
.frame-glow { box-shadow: 0 40px 120px -40px rgba(208, 106, 66, .45), 0 0 0 1px rgba(0, 0, 0, .45); }

/* ---------- cos'è ---------- */
.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 10vw, 130px); align-items: start; }
.intro-lead > p:not(.lead) { color: var(--stone); max-width: 60ch; margin-top: 1rem; }
.who-title { font: 600 .95rem/1.4 var(--sans); color: var(--dim); margin-bottom: 6px; }
.who-list { margin: 0; }
.who-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.who-list > div:last-child { border-bottom: 1px solid var(--line); }
.who-list dt { font-family: var(--serif); font-size: 1.3rem; }
.who-list dd { margin: 4px 0 0; color: var(--stone); font-size: .98rem; line-height: 1.55; }

/* ---------- tour delle funzioni ---------- */
.tour { padding: clamp(72px, 10vw, 130px) 0 clamp(60px, 8vw, 120px); border-top: 1px solid var(--line); }
.tour-head { margin-bottom: clamp(24px, 4vw, 48px); }
.tour-body { display: grid; grid-template-columns: minmax(300px, .72fr) 1.5fr; gap: clamp(32px, 4vw, 64px); }
.tour-stage { grid-column: 2; grid-row: 1; position: sticky; top: 92px; height: calc(100vh - 124px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.stage-frame { aspect-ratio: 2000 / 1192; }
.stage-frame img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .55s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.stage-frame img.on { opacity: 1; transform: none; }
.stage-dots { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.stage-dots li { font-size: .84rem; padding: 5px 12px; border-radius: 999px; color: var(--dim); border: 1px solid transparent; transition: color .3s, border-color .3s, background-color .3s; }
.stage-dots li.on { color: var(--ivory); border-color: var(--line-2); background: rgba(240, 231, 214, .05); }
.tour-steps { grid-column: 1; grid-row: 1; padding-bottom: 16vh; }
.step { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .36; transition: opacity .45s ease; }
.step.on { opacity: 1; }
.step h3 { margin-bottom: 1rem; }
.step p { color: var(--stone); }
.step p kbd { margin: 2px 0; }
.step-inset { margin-top: .6rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.step-img { display: none; margin: 1.2rem 0 0; }
.step-img img { border-radius: 12px; border: 1px solid var(--line-2); }

/* ---------- 3D ---------- */
.view3d { padding: clamp(72px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.v3d-head { margin-bottom: clamp(28px, 4vw, 48px); }
.styles-view { aspect-ratio: 16 / 10; background: #e6e8ea; }
.styles-view img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.styles-view img.on { opacity: 1; }
.styles-btns { display: flex; justify-content: center; gap: 4px; margin: 18px auto 0; padding: 4px; width: fit-content; max-width: 100%; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(240, 231, 214, .03); flex-wrap: wrap; }
.styles-btns button { font: 700 .93rem/1 var(--sans); color: var(--stone); background: transparent; border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; transition: color .2s, background-color .2s; }
.styles-btns button:hover { color: var(--ivory); }
.styles-btns button[aria-pressed="true"] { color: var(--on-ink); background: var(--ink); }
.interiors { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(48px, 7vw, 96px); align-items: start; }
.int { margin: 0; }
.int .frame { transform: translateY(var(--py, 0px)) perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tilt { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.int-b { margin-top: clamp(40px, 9vw, 140px); }
.int figcaption { color: var(--dim); font-size: .9rem; margin-top: 14px; max-width: 40ch; }

/* ---------- sole e ombre ---------- */
.sun { padding: clamp(72px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); border-top: 1px solid var(--line);
  background: radial-gradient(50% 45% at 85% 20%, rgba(229, 138, 92, .10), transparent 70%), var(--bg); }
.sun-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sun-view { aspect-ratio: 16 / 9; background: #2a3324; }
.sun-view img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.sun-view img.on { opacity: 1; }
.sun-caps { display: grid; margin: 12px auto 0; text-align: center; color: var(--dim); font-size: .92rem; }
.sun-caps p { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .3s; }
.sun-caps p.on { opacity: 1; visibility: visible; }
.sun-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.sun-copy h3 { margin-bottom: .2rem; }
.sun-facts { margin-top: 1.4rem; }
.sun-panel { margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.sun-panel figcaption { color: var(--dim); font-size: .9rem; margin-top: 14px; }
@media (max-width: 900px) { .sun-grid { grid-template-columns: 1fr; } .sun-panel { max-width: 560px; justify-self: start; } }

/* ---------- assistente AI ---------- */
.ai { padding: clamp(80px, 11vw, 150px) 0; background:
  radial-gradient(55% 50% at 78% 45%, rgba(208, 106, 66, .14), transparent 70%),
  radial-gradient(40% 40% at 8% 90%, rgba(201, 160, 102, .08), transparent 70%),
  var(--bg-2);
  border-block: 1px solid var(--line); overflow: hidden; }
.ai-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ai-try { margin: 1.8rem 0 .6rem; color: var(--dim); font-size: .95rem; }
.esempi { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.esempi li { align-self: flex-start; padding: 9px 14px; border-radius: 14px 14px 14px 4px; background: rgba(201, 160, 102, .09); border: 1px solid var(--line-2); color: var(--ivory); font-size: .97rem; line-height: 1.42; }
.ai-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.ai-facts li { color: var(--stone); padding-left: 18px; border-left: 2px solid var(--terra); }
.ai-facts b { color: var(--ivory); font-weight: 700; }
.ai-shot { margin: 0; }
.ai-shot figcaption { color: var(--dim); font-size: .9rem; margin-top: 14px; }

/* ---------- libreria ---------- */
.library { padding: clamp(80px, 11vw, 150px) 0 clamp(40px, 6vw, 80px); }
.lib-head { width: min(1180px, 100%); margin: 0 auto clamp(28px, 4vw, 48px); }
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.lib { margin: 0; }
.lib-num { margin: 0; font: 400 clamp(3.2rem, 2rem + 3.4vw, 5.6rem)/.95 var(--serif); letter-spacing: .01em; color: var(--ivory); }
.lib-name { margin: .5rem 0 1.1rem; color: var(--stone); }
.lib-strip { height: clamp(300px, 34vw, 460px); overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); background: #15181e;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* ---------- formati ---------- */
.formats { padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px); }
.fmt-list { list-style: none; padding: 0; margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fmt-list li { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line); color: var(--stone); font-size: .98rem; line-height: 1.55; }
.fmt-list li:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.fmt { font: 400 2rem/1 var(--serif); letter-spacing: .04em; color: var(--ivory); margin-bottom: 8px; }
.dwg { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: rgba(240, 231, 214, .025); border: 1px solid var(--line); }
.dwg h3 { margin-bottom: .8rem; }
.dwg p { color: var(--stone); margin: 0; }
.dwg-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.dwg-flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 8px; }
.dwg-flow li b { font: 400 1.4rem/1 var(--serif); color: var(--ivory); }
.dwg-flow li span { color: var(--dim); font-size: .88rem; }
.dwg-flow li + li::before { content: ""; position: absolute; left: -14%; top: 30px; width: 28%; height: 1px; background: var(--bronze); }
.dwg-flow li + li::after { content: ""; position: absolute; left: 12%; top: 26px; width: 8px; height: 8px; border-top: 1px solid var(--bronze); border-right: 1px solid var(--bronze); transform: rotate(45deg); }
.dwg-flow li:last-child b { color: var(--terra-2); }

/* ---------- confronto ---------- */
.compare { padding: clamp(80px, 11vw, 150px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.cost { margin: clamp(36px, 5vw, 64px) 0 0; padding: clamp(20px, 3vw, 36px); border-radius: var(--r); border: 1px solid var(--line); background: rgba(20, 16, 13, .6); }
.cost-title { font: 400 1.4rem/1.2 var(--serif); margin-bottom: 22px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bars li { display: grid; grid-template-columns: minmax(140px, 14rem) 1fr 6.5rem; align-items: center; column-gap: 20px; min-height: 42px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; cursor: default; outline: none; transition: background-color .25s; }
.bars li:hover, .bars li:focus-visible, .bars li.sel { background: rgba(240, 231, 214, .04); }
.bars li:focus-visible { box-shadow: inset 0 0 0 1px var(--bronze-2); }
.b-name { color: var(--stone); font-size: .93rem; line-height: 1.25; transition: color .25s; }
.bars li:hover .b-name, .bars li:focus-visible .b-name, .bars li.sel .b-name { color: var(--ivory); }
.b-track { position: relative; height: 9px; display: flex; align-items: center; }
.b-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(201, 160, 102, .1); }
.b-bar { position: relative; height: 1px; width: max(6px, calc(var(--v) / var(--max) * 100%)); background: linear-gradient(90deg, rgba(224, 192, 142, .35), rgba(224, 192, 142, .9)); transform-origin: left; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), height .25s; }
.b-bar::after { content: ""; position: absolute; right: -0.5px; top: -4px; width: 1px; height: 9px; background: var(--bronze-2); }
.bars li:hover .b-bar, .bars li:focus-visible .b-bar, .bars li.sel .b-bar { height: 2px; }
.b-val { justify-self: end; font-weight: 600; font-size: .93rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ivory); transition: opacity .4s ease; }
.bars li.us .b-name { color: var(--ivory); font-weight: 700; }
.bars li.us .b-bar { height: 2px; background: var(--terra-2); }
.bars li.us .b-bar::after { background: var(--terra-2); height: 11px; top: -4.5px; }
.bars li.us .b-val { font: 400 1.5rem/1 var(--serif); color: var(--terra-2); }
.cost.wait .b-bar { transform: scaleX(0); }
.cost-detail { min-height: 3em; margin: 18px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--stone); font-size: .92rem; line-height: 1.5; }
.cost-detail b { color: var(--ivory); font-weight: 700; }
.cost-detail .more { color: var(--terra-2); font-weight: 700; white-space: nowrap; }
.cost .note { color: var(--dim); font-size: .86rem; margin: 22px 0 0; max-width: 90ch; line-height: 1.5; }

.table-wrap { margin-top: clamp(28px, 4vw, 48px); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.38; }
.cmp th, .cmp td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-weight: 600; color: var(--dim); background: rgba(20, 16, 13, .6); font-size: .85rem; }
.cmp tbody th { font-weight: 700; white-space: nowrap; }
.cmp tbody td { color: var(--stone); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tr.us { background: linear-gradient(90deg, rgba(208, 106, 66, .16), rgba(201, 160, 102, .06)); }
.cmp tr.us > * { color: var(--ivory); }
.cmp tr.us th { box-shadow: inset 3px 0 0 var(--terra); font-family: var(--serif); font-weight: 400; font-size: 1.08rem; }

.thoughts { margin-top: clamp(48px, 6vw, 80px); }
.thoughts-cols { columns: 2 22rem; column-gap: clamp(28px, 4vw, 56px); margin-top: 1.4rem; }
.thoughts-cols p { color: var(--stone); break-inside: avoid; }
.thoughts-cols b { color: var(--ivory); font-weight: 700; }
.sources { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--dim); font-size: .9rem; }
.sources summary { cursor: pointer; color: var(--stone); font-weight: 600; padding: 6px 0; width: fit-content; }
.sources ul { padding-left: 1.1rem; margin: .6rem 0 0; display: grid; gap: 6px; }

/* ---------- specifiche ---------- */
.specs { padding: clamp(80px, 11vw, 150px) 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.specs-head { position: sticky; top: 100px; }
.spec-list { margin: 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--dim); font-weight: 600; }
.spec-list dd { margin: 0; }

/* ---------- prezzo ---------- */
.pricing { padding: clamp(80px, 11vw, 150px) 0; background: radial-gradient(50% 45% at 50% 35%, rgba(208, 106, 66, .12), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(16px, 2.4vw, 28px); max-width: 980px; margin: clamp(36px, 5vw, 60px) auto 0; align-items: stretch; }
.plan { position: relative; border-radius: 20px; padding: clamp(26px, 3.4vw, 40px); background: var(--bg-2); border: 1px solid var(--line-2); display: flex; flex-direction: column; overflow: hidden; }
.plan-main { border: 1px solid transparent; background: var(--veins) 0 0 / 900px 600px, linear-gradient(var(--bg-3), var(--bg-2)) padding-box, linear-gradient(140deg, var(--terra-2), var(--bronze) 60%, rgba(201, 160, 102, .3)) border-box; box-shadow: 0 40px 100px -50px rgba(208, 106, 66, .6); }
.plan h3 { font-size: 1.6rem; }
.price-box { width: fit-content; }
.price-quota { position: relative; height: 30px; margin-top: 22px; }
.price-quota .q { --a: 0%; --b: 100%; bottom: 4px; }
.js .price-quota .q { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.js .price-quota.in .q { transform: none; }
.price { margin: 6px 0 0; display: flex; align-items: flex-start; gap: 8px; line-height: .9; }
.price .amount { font: 400 clamp(5.4rem, 3rem + 7vw, 8.6rem)/.9 var(--serif); letter-spacing: -.01em; }
.price .cur { font: 400 2.4rem/1 var(--serif); margin-top: .5rem; color: var(--bronze-2); }
.price.small { margin-top: 22px; align-items: baseline; }
.price.small .amount { font-size: clamp(3.8rem, 2.6rem + 4vw, 5.6rem); }
.price.small .cur { font-size: 1.7rem; margin-top: 0; }
.price-note { color: var(--stone); margin: 12px 0 0; }
.incl { list-style: none; padding: 0; margin: 24px 0 26px; display: grid; gap: 12px; flex: 1; align-content: start; }
.incl li { position: relative; padding-left: 26px; line-height: 1.5; }
.incl li::before { content: ""; position: absolute; left: 2px; top: .48em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--terra); }
.plan-trial .incl li::before { background: none; border: 1.5px solid var(--bronze); }
.pay { color: var(--dim); font-size: .88rem; text-align: center; margin: 12px 0 0; }
.how { margin-top: clamp(56px, 7vw, 96px); }
.how h3 { margin-bottom: clamp(24px, 3vw, 36px); }
.steps3 { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); max-width: 980px; }
.steps3 li { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--stone); }
.steps3 b { color: var(--ivory); font-size: 1.1rem; }
.steps3 .n { font: 400 1.9rem/1 var(--serif); color: var(--terra-2); margin-bottom: 8px; letter-spacing: .06em; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 11vw, 140px) 0; max-width: 900px; }
.faq-list { margin-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 700; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--bronze-2), var(--bronze-2)) center/14px 1.5px no-repeat,
  linear-gradient(var(--bronze-2), var(--bronze-2)) center/1.5px 14px no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--stone); margin: 0 0 22px; max-width: 70ch; }

/* ---------- CTA finale e piè di pagina ---------- */
.final { padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(var(--grid) 1px, transparent 1px) 50% 50%/56px 56px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 50% 50%/56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%); }
.final::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(201, 160, 102, .35), transparent); }
.final-logo { margin: 0 auto 28px; width: 76px; height: 76px; filter: drop-shadow(0 14px 32px rgba(208, 106, 66, .35)); }
.final h2 { font-size: clamp(2.3rem, 1.3rem + 4vw, 4.6rem); }

.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--dim); font-size: .92rem; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); font: 400 1.15rem/1 var(--serif); letter-spacing: .02em; }
.foot-contact { margin: 0; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--stone); }
.foot-legal { grid-column: 1 / -1; margin: 8px 0 0; font-size: .8rem; line-height: 1.55; max-width: 110ch; }

/* ---------- avviso (pagamento non ancora attivo) ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--ivory); max-width: min(520px, calc(100vw - 32px)); width: 100%; }
.modal::backdrop { background: rgba(10, 8, 6, .72); backdrop-filter: blur(6px); }
.modal-in { margin: 0; padding: 30px; border-radius: 20px; background: linear-gradient(var(--bg-3), var(--bg-2)) padding-box, linear-gradient(140deg, var(--terra-2), var(--bronze)) border-box; border: 1px solid transparent; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9); }
.modal h2 { font-size: 1.7rem; margin-bottom: .8rem; }
.modal p { color: var(--stone); }
.modal-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.modal[open] .modal-in { animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- un solo momento animato: il disegno dell'apertura ---------- */
.js .plumb.on { animation: plumb 1.4s cubic-bezier(.6, 0, .2, 1) 2.1s both; }
.js .groma-art .g-axes path { stroke-dasharray: 1; animation: trace 1.4s cubic-bezier(.6, 0, .2, 1) .5s both; }
.js .groma-art .g-tool path { stroke-dasharray: 1; animation: trace 1s cubic-bezier(.5, 0, .2, 1) both; }
.js .groma-art .g-tool path:nth-child(2) { animation-delay: .55s; }
.js .groma-art .g-tool path:nth-child(3) { animation-delay: .8s; }
.js .groma-art .g-tool circle, .js .groma-art .g-knots { animation: fadein .5s ease 1s both; }
.js .groma-art .g-plumb path { stroke-dasharray: 1; animation: trace 1s cubic-bezier(.3, 0, .2, 1) 1.05s both; }
.js .groma-art .g-weights path { animation: drop .7s cubic-bezier(.3, 1.4, .5, 1) 1.6s both; transform-box: fill-box; transform-origin: 50% 0; }
.js .groma-art .g-station { animation: fadein .6s ease 2s both; }
.js .groma-art .g-grid { animation: fadein 1.4s ease .4s both; }
.js .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-shot .frame-hero { animation: fadein 1.1s ease .35s both; }
.js .hero-shot .q { animation: draw 1s cubic-bezier(.6, 0, .2, 1) both; }
.js .hero-shot .q:nth-child(1) { animation-delay: .7s; }
.js .hero-shot .q:nth-child(2) { animation-delay: .8s; }
.js .hero-shot .q:nth-child(3) { animation-delay: .9s; }
.js .hero-shot .q:nth-child(4) { animation-delay: 1s; }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes plumb { from { transform: scaleY(0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }

/* ---------- pagine legali ---------- */
.doc { padding: 120px 0 80px; max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); margin-bottom: .6rem; }
.doc h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; }
.doc p, .doc li { color: var(--stone); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.doc .updated { color: var(--dim); font-size: .92rem; }
.draft { margin: 1.4rem 0 2rem; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(229, 138, 92, .7); background: rgba(208, 106, 66, .08); color: #f2c4a8; font-size: .95rem; }
.ph { color: #f2c4a8; background: rgba(208, 106, 66, .14); padding: 0 4px; border-radius: 4px; }
.top.solid-always { background: rgba(20, 16, 13, .92); border-bottom-color: var(--line); }

/* ---------- schermi medi ---------- */
@media (max-width: 1100px) {
  .nav a:not(.btn) { padding: 8px 8px; font-size: .9rem; }
  .tour-body { grid-template-columns: 1fr; }
  .tour-stage { display: none; }
  .tour-steps { grid-column: 1; padding-bottom: 0; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; padding-top: 8px; }
  .step-img { display: block; }
  .ai-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs-head { position: static; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gut) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .7); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav a:not(.btn) { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 14px 0 0; --h: 50px; }
  .dl-menu { margin: 14px 0 0; }
  .dl-toggle { display: none; }
  .dl-pop { position: static; width: auto; opacity: 1; visibility: inherit; transform: none; transition: none; box-shadow: none; padding: 6px;
    background: rgba(240, 231, 214, .03); border: 1px solid var(--line); }
  .dl-pop::before { display: none; }
  .top.menu-open { background: var(--bg); }
  .nav.nav-static { position: static; inset: auto; flex-direction: row; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav.nav-static a:not(.btn) { border: 0; padding: 8px 6px; font-size: .95rem; }
  .hero-in { grid-template-columns: 1fr; }
  .plumb { display: none; }
  .hero-groma { position: absolute; right: max(-40px, calc(var(--gut) - 60px)); top: 40px; width: min(46vw, 340px); opacity: .55; z-index: -1; }
  .intro { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .fmt-list { grid-template-columns: repeat(2, 1fr); }
  .fmt-list li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .fmt-list li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .dwg { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; }
  .steps3 { grid-template-columns: 1fr; max-width: 560px; }
  .foot-in { grid-template-columns: 1fr; }
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { display: none; }
  .cmp tr { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 6px 16px 10px; background: rgba(20, 16, 13, .5); }
  .cmp tbody th { padding: 12px 0 8px; font-size: 1.08rem; border-bottom: 1px solid var(--line); white-space: normal; }
  .cmp td { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; padding: 7px 0; border-bottom: 0; }
  .cmp td::before { content: attr(data-l); color: var(--dim); font-size: .85rem; }
  .cmp tr.us th { box-shadow: none; }
  .cmp tr.us { border-color: rgba(229, 138, 92, .55); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .hero-groma { top: 64px; width: 50vw; opacity: .3; }
  .blueprint { display: none; }
  .frame-hero picture { opacity: 1; }
  .hero-shot { margin-top: 44px; }
  .quota-row .q-side { display: none; }
  .quota-row .q:nth-child(2) { --a: 0% !important; --b: 50% !important; }
  .quota-row .q:nth-child(3) { --a: 50% !important; --b: 100% !important; }
  .frame { border-radius: 12px; }
  .interiors { grid-template-columns: 1fr; }
  .int-b { margin-top: 0; }
  .bars li { grid-template-columns: 1fr 5.6rem; row-gap: 4px; min-height: 0; padding: 8px 10px 9px; }
  .bars li .b-name { grid-column: 1 / -1; }
  .spec-list > div { grid-template-columns: 1fr; gap: 2px; }
  .styles-btns button { padding: 11px 13px; font-size: .88rem; }
  .sun-grid { grid-template-columns: 1fr; }
  .sun-view { aspect-ratio: 4 / 3; }
  .sun-btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .sun-btns button { padding: 11px 8px; }
  .fmt-list { grid-template-columns: 1fr; }
  .fmt-list li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .fmt { font-size: 1.7rem; }
  .dwg-flow li b { font-size: 1.15rem; }
  .cmp td { grid-template-columns: 7.6rem 1fr; }
  .lib-strip { height: 260px; }
  .lib-num { font-size: 3.2rem; }
}
@media (max-width: 480px) {
  .get { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .btn { padding: 0 18px; }
  .lib-grid { gap: 12px; }
}

/* ---------- meno movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-shot .frame-hero, .int .frame, .tilt { transform: none !important; }
  .cost.wait .b-bar { transform: none; }
  .cost.wait .b-val { opacity: 1; }
  .frame-hero { --bp: 1 !important; }
  .js .price-quota .q { transform: none; }
}

/* ---------- confronto: blocco breve in home e pagina completa ---------- */
.compare-short { padding: clamp(64px, 8vw, 110px) 0; }
.cmp-more { margin: 1.6rem 0 0; color: var(--stone); }
.cmp-more a { color: var(--bronze-2); font-weight: 700; margin-left: .3em; }
.compare-page { padding-top: 68px; }
.compare-page h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }

/* testo solo per lettori di schermo */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- scelta della lingua ---------- */
.lang-pick { position: relative; display: inline-flex; align-items: center; margin-left: 6px; }
.lang-pick select { appearance: none; -webkit-appearance: none; font: 600 .86rem/1 var(--sans); color: var(--stone); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 26px 9px 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(-45deg, transparent 50%, var(--stone) 50%); background-position: right 13px center, right 9px center; background-size: 4px 4px; background-repeat: no-repeat; }
.lang-pick select:hover { color: var(--ivory); border-color: var(--line-2); }
.lang-pick option { color: #111; }
.nav-static .lang-pick { margin-left: 12px; }
@media (max-width: 960px) {
  .nav:not(.nav-static) .lang-pick { margin: 14px 0 0; }
  .nav:not(.nav-static) .lang-pick select { width: 100%; padding: 13px 30px 13px 14px; font-size: 1rem; }
}

/* pagina Grazie: il codice comprato */
.codice-acquisto { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 16px; padding: 16px 18px; border: 1px solid var(--line, rgba(232,145,95,.35)); border-radius: 14px; background: rgba(232,145,95,.08); }
.codice-acquisto b { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(20px, 5vw, 28px); letter-spacing: .06em; color: #f3e9df; user-select: all; }
.btn-copia { margin-left: auto; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(232,145,95,.6); background: transparent; color: #f0b48d; font: inherit; font-weight: 600; cursor: pointer; }
.btn-copia:hover { background: rgba(232,145,95,.15); }

/* ---------- firma dell'autore nel piè di pagina ---------- */
.foot-credit { grid-column: 1 / -1; margin: -4px 0 0; color: var(--dim); font-size: .86rem; }
.foot-credit .pgpg { font: 400 .95rem/1 var(--serif); letter-spacing: .14em; color: var(--bronze-2); text-decoration: none; border-bottom: 1px solid rgba(224, 192, 142, .4); padding-bottom: 1px; }
.foot-credit .pgpg:hover { color: var(--ivory); border-bottom-color: currentColor; }

/* ---------- pagina aggiorna.html ---------- */
.upd-from { margin: 1rem 0 0; font-size: 1.15rem; color: var(--ivory); }
.upd-from b { color: var(--terra-2); }
.upd-get { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
.upd-get .upd-btn { --h: 58px; min-width: min(100%, 260px); }
.upd-get .upd-btn:first-child { flex: 1 1 100%; max-width: 420px; }
.upd-keep { margin: 1.2rem 0 0; color: var(--bronze-2); }
.upd h3.upd-os { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
