/* Marmeria Piccolo · foglio di stile (solo tema chiaro)
   Layout: colonna centrale 72rem, fasce piene alternate marmo/lastra, il rombo rosso del logo come segno ricorrente */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/sourcesans3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/sourcesans3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --marble: #f3f3f0;   /* fondo pagina, marmo */
  --slab: #ffffff;     /* superfici */
  --ink: #17181f;      /* testo */
  --muted: #5d6070;    /* testo secondario */
  --vein: #dedee3;     /* linee e bordi */
  --draw: #141414;     /* disegni al tratto */
  --blue: #2f00bb;     /* blu del logo: pulsanti e link */
  --red: #e30613;      /* rosso del logo: solo il rombo */
  --on-blue: #ffffff;
  --display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 72rem;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --rose: clamp(220px, 27vw, 370px);   /* lato della rosa dei venti */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--marble); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-text-size-adjust: 100%; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 64px); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 40rem) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: -999px; top: 0; background: var(--slab); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
.eyebrow { display: flex; align-items: center; gap: .6rem; font: 700 .76rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: .55rem; height: .55rem; background: var(--red); transform: rotate(45deg); flex: none; }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 40rem; }
em.hand { font-style: normal; background: linear-gradient(transparent 62%, rgb(227 6 19 / .14) 0); }

/* parole dei titoli che salgono */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }

/* intestazione */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgb(255 255 255 / .86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--vein); transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.scrolled { background: rgb(255 255 255 / .95); box-shadow: 0 8px 30px rgb(20 20 40 / .07); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--slab); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 3.4rem; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font: 600 .95rem/1 var(--display); }
.nav a:not(.btn) { position: relative; padding-block: .5rem; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--vein); color: var(--ink); height: 2.75rem; padding: 0 .9rem; font: 600 .95rem/1 var(--display); cursor: pointer; border-radius: 2px; }
.menu-toggle span { width: 1.1rem; height: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 60rem) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--slab); border-bottom: 1px solid var(--vein); padding: .25rem var(--gut-r) 1.25rem var(--gut); box-shadow: 0 20px 40px rgb(20 20 40 / .08); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease), visibility 0s .45s; }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--vein); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .logo img { height: 2.8rem; }
  .site-header .wrap { min-height: 4rem; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: 0 1.4rem; border: 1px solid var(--blue); background: transparent; color: var(--blue); font: 700 .98rem/1 var(--display); letter-spacing: -.005em; text-decoration: none; cursor: pointer; border-radius: 2px; position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), color .25s ease, box-shadow .25s ease; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.btn:hover { color: var(--on-blue); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(47 0 187 / .18); }
.btn:hover::before { transform: scaleY(1); }
.btn.primary { background: var(--blue); color: var(--on-blue); }
.btn.primary::before { background: #1f0086; }
.btn.small { min-height: 2.6rem; padding: 0 1.05rem; font-size: .92rem; }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* apertura */
.hero { position: relative; overflow: hidden; background: #fbfbfa; border-bottom: 1px solid var(--vein); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bg.static { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.016' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.46 0 0 0 0 0.5 0 0 0 -2.4 1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); background-size: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(251 251 250 / .92) 0%, rgb(251 251 250 / .7) 45%, rgb(251 251 250 / 0) 75%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); }
.hero .lead { margin-top: 1.4rem; color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--vein); padding-top: 1.4rem; }
.hero-stats div { padding-right: clamp(1rem, 3vw, 2.2rem); margin-right: clamp(1rem, 3vw, 2.2rem); border-right: 1px solid var(--vein); min-width: 0; }
.hero-stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats strong { display: block; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-stats span { display: block; margin-top: .35rem; font-size: .9rem; line-height: 1.3; color: var(--muted); }
.hero-art { color: var(--draw); min-width: 0; perspective: 900px; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.1rem; z-index: 1; width: 1.4rem; height: 2.2rem; border: 1.5px solid var(--muted); border-radius: 1rem; transform: translateX(-50%); opacity: .7; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: .4rem; width: 3px; height: .45rem; margin-left: -1.5px; background: var(--muted); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(.7rem); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgb(251 251 250 / .9) 0%, rgb(251 251 250 / .55) 60%, rgb(251 251 250 / .2) 100%); }
  .hero-art { max-width: 26rem; width: 100%; justify-self: center; }
  .scroll-cue { display: none; }
}
@media (max-width: 30rem) { .hero .actions { display: grid; grid-template-columns: 1fr; } }
@media (max-width: 26rem) { .hero-stats { grid-template-columns: 1fr 1fr 1fr; } .hero-stats div { padding-right: .8rem; margin-right: .8rem; } }

/* nastro dei materiali */
.ticker { background: var(--ink); color: #f3f3f0; overflow: hidden; border-block: 1px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; gap: 1.6rem; padding: 1rem 0 1rem 1.6rem; font: 700 clamp(1rem, 2vw, 1.3rem)/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.ticker li::after { content: ""; width: .5rem; height: .5rem; background: var(--red); transform: rotate(45deg); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* sezioni */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.section.alt { background: var(--slab); }
.section > .wrap { position: relative; z-index: 1; }
/* rosa dei venti a cavallo tra apertura e sezione successiva */
.rose-anchor { position: relative; z-index: 6; height: 0; }
.rose { --p: var(--rose); --t: 14px; position: absolute; left: 50%; top: 0; width: var(--p); height: var(--p); margin: calc(var(--p) / -2) 0 0 calc(var(--p) / -2); perspective: 1100px; pointer-events: none; }
.rose-tilt { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(58deg); }
.rose-spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.rose-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: translateZ(calc(var(--t) / 2)); }
.rose-side { position: absolute; left: 0; top: 0; width: 100%; height: var(--t); background: linear-gradient(#cdbd9f, #a8987b); transform-origin: 50% 0; }
.rose-side.s1 { transform: translateZ(calc(var(--t) / 2)) rotateX(-90deg); }
.rose-side.s2 { transform: translateY(var(--p)) translateZ(calc(var(--t) / 2)) rotateX(-90deg); }
.rose-side.s3 { width: var(--p); transform-origin: 0 0; transform: translateZ(calc(var(--t) / 2)) rotateZ(90deg) rotateX(90deg); }
.rose-side.s4 { width: var(--p); transform-origin: 0 0; transform: translateX(var(--p)) translateZ(calc(var(--t) / 2)) rotateZ(90deg) rotateX(90deg); }
.rose-shadow { position: absolute; left: 6%; right: 6%; top: 34%; height: 52%; border-radius: 50%; background: radial-gradient(closest-side, rgb(30 25 20 / .32), rgb(30 25 20 / 0)); filter: blur(6px); transform: translateY(14%); }
.rose .r-all text { font-weight: 700; }
.rose:not(.built) .rose-tilt { opacity: 0; }
.rose.built .rose-tilt { animation: roseIn 1.1s var(--ease) both; }
@keyframes roseIn { from { opacity: 0; transform: rotateX(58deg) translateY(30px) scale(.7); } to { opacity: 1; transform: rotateX(58deg); } }
.rose:not(.built) .rose-shadow { opacity: 0; }
.rose.built .rose-shadow { animation: fade 1.2s ease .3s both; }
.rose .r-band { stroke-dasharray: 1; stroke-dashoffset: 1; }
.rose.built .r-band { animation: draw 1.3s cubic-bezier(.6,0,.2,1) .35s both; }
.rose .r-piece { transform-box: view-box; transform-origin: 0 0; }
.rose .r-star .r-piece { transform: rotate(-40deg) scale(0); opacity: 0; }
.rose.built .r-star .r-piece { animation: petal .8s var(--ease) var(--d) both; }
@keyframes petal { from { transform: rotate(-40deg) scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.rose .r-corners .r-piece { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.rose.built .r-corners .r-piece { animation: pop .7s var(--ease) both; animation-delay: calc(.6s + var(--k, 0) * .12s); }
.rose .r-txt { opacity: 0; }
.rose.built .r-txt { animation: fade .8s ease 2.4s both; }
.rose .r-plate { opacity: 0; }
.rose.built .r-plate { animation: fade .6s ease .1s both; }
@media (max-width: 52rem) { :root { --rose: clamp(200px, 52vw, 300px); } }
.section.pre-rose { padding-bottom: calc(var(--rose) * .36 + 2.5rem); }
.rose-anchor + .section { padding-top: calc(var(--rose) * .5 + 2.5rem); }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.section-head .eyebrow { margin-bottom: 0; }
.deco { position: absolute; z-index: 0; pointer-events: none; color: var(--draw); opacity: .07; }
.deco svg { display: block; width: 100%; height: auto; }
.deco-1 { right: -4%; top: 6%; width: min(38rem, 60vw); }
.deco-2 { right: -8%; bottom: -12%; width: min(30rem, 55vw); }
.bigword { position: absolute; z-index: 0; left: 0; right: 0; bottom: -.12em; pointer-events: none; text-align: center; white-space: nowrap; font: 800 clamp(6rem, 20vw, 17rem)/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgb(20 20 20 / .07); }

.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--vein); border: 1px solid var(--vein); }
.works.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work { position: relative; background: var(--slab); padding: 1.75rem 1.6rem 1.9rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0; transform-style: preserve-3d; transition: background-color .35s ease, box-shadow .35s ease, transform .35s var(--ease); }
.section.alt .work { background: var(--marble); }
.work svg { width: 8.5rem; height: 6.375rem; color: var(--draw); margin: -.25rem 0 .6rem -.4rem; transition: transform .45s var(--ease); }
.work p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.work::after { content: ""; position: absolute; top: 1.4rem; right: 1.4rem; width: .5rem; height: .5rem; background: var(--red); transform: rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.work:hover { z-index: 2; box-shadow: 0 24px 50px rgb(20 20 40 / .12); background: var(--slab); }
.work:hover svg { transform: translateY(-6px) scale(1.04); }
.work:hover::after { transform: rotate(45deg) scale(1); }
.works.four .work svg { width: 7.5rem; height: 5.625rem; }
@media (max-width: 64rem) { .works.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 56rem) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .works, .works.four { grid-template-columns: 1fr; } .work { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1rem; padding: 1.4rem 1.25rem; } .work svg, .works.four .work svg { width: 5.5rem; height: 4.125rem; margin: 0; } .work h3 { flex: 1 1 8rem; } .work p { flex: 1 1 100%; } }

/* lavorato a mano */
.craft { background: var(--slab); }
.craft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.craft-copy { display: grid; gap: 1.2rem; min-width: 0; }
.craft-copy h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.craft-art { color: var(--draw); min-width: 0; }
.craft-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.craft-points { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
.craft-points li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); grid-template-rows: auto 1fr; gap: .15rem .9rem; align-items: start; align-content: start; }
.craft-points svg { grid-row: span 2; width: 2.6rem; height: 2.6rem; color: var(--draw); }
.craft-points strong { font: 700 1rem/1.3 var(--display); }
.craft-points span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 56rem) { .craft-grid { grid-template-columns: 1fr; } .craft-art { order: -1; max-width: 34rem; } }
@media (max-width: 30rem) { .craft-points { grid-template-columns: 1fr; } }

/* fresa a controllo numerico + rifinitura a mano */
.craft-art .cnc { overflow: hidden; }
.cnc .eng-cut { stroke: var(--draw); stroke-width: 3; }
.cnc .eng-hi { stroke: #fff; stroke-width: .9; transform: translate(.9px, .7px); }
.cnc .cnc-bit-spin { opacity: 0; }
.cnc.run .cnc-bit-spin { opacity: 1; animation: bitspin .12s linear infinite; }
@keyframes bitspin { to { stroke-dashoffset: -4.8; } }
.cnc.run .cnc-motor { animation: hum .09s linear infinite; }
@keyframes hum { 50% { transform: translateX(.25px); } }
#cnc-led { transition: fill .3s; }
.cnc-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.2rem; margin-top: 1rem; }
.cnc-step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .15rem .6rem; color: var(--muted); font-size: .9rem; line-height: 1.3; transition: color .3s; }
.cnc-step .n { grid-row: span 2; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid currentColor; font: 700 .85rem/1 var(--display); transition: background-color .3s, color .3s, border-color .3s; }
.cnc-step i { display: block; height: 3px; border-radius: 3px; background: var(--vein); overflow: hidden; }
.cnc-step b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.cnc-step.on, .cnc-step.done { color: var(--ink); }
.cnc-step.on .n { background: var(--ink); border-color: var(--ink); color: var(--slab); }
@media (max-width: 30rem) { .cnc-steps { grid-template-columns: 1fr; } }

/* processo */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: .5rem; padding-top: 1.25rem; min-width: 0; }
.steps li::before { content: "0" counter(s); font: 800 2.6rem/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px var(--draw); }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + .1s); }
.steps p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .steps { grid-template-columns: 1fr; } }

/* chi siamo */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about .text { display: grid; gap: 1.1rem; max-width: 36rem; }
.about blockquote { margin: .4rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--vein); font: 700 clamp(1.2rem, 2vw, 1.45rem)/1.35 var(--display); letter-spacing: -.015em; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1px; background: var(--vein); border: 1px solid var(--vein); }
.facts div { background: var(--marble); padding: 1.6rem 1.4rem; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; }
.facts strong { font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink); }
.facts strong b { font: inherit; }
.facts div > span { color: var(--muted); font-size: .95rem; line-height: 1.4; }
@media (max-width: 56rem) { .about { grid-template-columns: 1fr; } }

/* dove siamo */
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.where > div { min-width: 0; }
.info { display: grid; gap: 1.4rem; margin: 0; }
.info dt { font: 700 .76rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info dd { margin: .4rem 0 0; font-size: 1.12rem; line-height: 1.5; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--vein); font-weight: 400; font-size: 1rem; vertical-align: top; }
.hours th { width: 7.5rem; font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.hours .closed { color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--blue); font-weight: 700; }
.map { position: relative; min-height: 22rem; height: 100%; max-width: 100%; background: var(--slab); border: 1px solid var(--vein); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-gate { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.map-gate svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--muted); }
.map-art .route { stroke-dasharray: 6 8; animation: route 1.2s linear infinite; }
@keyframes route { to { stroke-dashoffset: -14; } }
.map-art .pin { transform-box: fill-box; transform-origin: center; animation: pin 2.4s ease-in-out infinite; }
@keyframes pin { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.map-gate .card { position: relative; background: var(--slab); border: 1px solid var(--vein); padding: 1.3rem 1.4rem; max-width: 22rem; display: grid; gap: .8rem; justify-items: center; box-shadow: 0 16px 40px rgb(20 20 40 / .1); }
.map-gate p { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.map-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
@media (max-width: 56rem) { .where { grid-template-columns: 1fr; } .map { min-height: 0; height: auto; aspect-ratio: 4 / 3; } }

/* contatti */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact > div { min-width: 0; }
.contact .lead { margin-top: 1rem; }
.phones { display: grid; gap: 1.25rem; margin-top: 2rem; }
.phones a { display: inline-block; font: 800 clamp(1.25rem, 2.4vw, 1.6rem)/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.phones a:hover { background-size: 100% 2px; }
.phones small { display: block; margin-bottom: .3rem; font: 700 .76rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
form.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.2rem; background: var(--marble); border: 1px solid var(--vein); padding: clamp(1.25rem, 3vw, 2.25rem); }
.field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field > label { font: 700 .92rem/1.3 var(--display); }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--slab); border: 1px solid #cfcfd6; border-radius: 2px; min-height: 3rem; padding: .7rem .8rem; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(47 0 187 / .14); }
.field textarea { min-height: 9.5rem; resize: vertical; }
.captcha { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 1rem; align-items: center; background: var(--slab); border: 1px solid #cfcfd6; border-radius: 2px; padding: .5rem .5rem .5rem .9rem; }
.captcha .q { font-weight: 600; line-height: 1.35; }
.captcha input { text-align: center; }
.check { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .97rem; line-height: 1.45; cursor: pointer; }
.check input { margin: .15rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--blue); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-weight: 600; min-height: 1.5em; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status.ok { color: #17703a; }
.form-status.err { color: #c10510; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--muted); font-size: .88rem; }
@media (max-width: 56rem) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { form.contact-form { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } .captcha { grid-template-columns: 1fr; padding: .75rem; } .captcha input { text-align: left; } }

/* piè di pagina */
.site-footer { background: var(--ink); color: #cfd0da; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-block: 3.5rem 2rem; }
.site-footer a { color: #fff; }
.site-footer h3 { font: 700 .76rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8f91a4; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .brand { font: 800 1.15rem/1.3 var(--display); color: #fff; margin-bottom: .5rem; letter-spacing: -.01em; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2c2d3a; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: #8f91a4; font-size: .88rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
@media (max-width: 52rem) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* cookie */
.cookie-fab { position: fixed; z-index: 40; left: calc(1rem + env(safe-area-inset-left, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--vein); background: var(--slab); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgb(0 0 0 / .14); transition: transform .3s var(--ease); }
.cookie-fab svg { width: 1.5rem; height: 1.5rem; }
.cookie-fab:hover { transform: rotate(-14deg) scale(1.06); }
.cookie-panel { position: fixed; z-index: 50; left: calc(1rem + env(safe-area-inset-left, 0px)); right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); max-width: 34rem; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--slab); color: var(--ink); border: 1px solid var(--vein); box-shadow: 0 24px 60px rgb(0 0 0 / .2); padding: 1.4rem; display: grid; gap: 1rem; animation: rise .45s var(--ease) both; }
.cookie-panel h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.cookie-panel p { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.cookie-opts { display: grid; gap: .8rem; border-block: 1px solid var(--vein); padding-block: .9rem; }
.cookie-opts label { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .95rem; }
.cookie-opts input { margin: .2rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.cookie-opts strong { font-family: var(--display); }
.cookie-opts small { display: block; color: var(--muted); line-height: 1.4; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.cookie-actions .btn { padding: 0 .6rem; min-height: 2.8rem; font-size: .9rem; }
@media (max-width: 30rem) { .cookie-actions { grid-template-columns: 1fr 1fr; } .cookie-actions .btn.primary { grid-column: 1 / -1; order: -1; } }

/* pagine legali */
.legal-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-page article { max-width: 46rem; display: grid; gap: 1rem; }
.legal-page h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: .25rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 1.5rem; letter-spacing: -.015em; }
.legal-page ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal-page .updated { color: var(--muted); font-size: .95rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--vein); }
.legal-page table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 34rem; background: var(--slab); }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--vein); }
.legal-page tr:last-child td { border-bottom: 0; }
.legal-page th { font: 700 .9rem/1.3 var(--display); background: var(--marble); }
.legal-header .wrap { justify-content: space-between; }

/* ===== movimento ===== */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes wordup { from { transform: translateY(105%); } to { transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.2) rotate(-90deg); } 70% { transform: scale(1.2); } 100% { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }

.hero .eyebrow, .hero .lead, .hero .actions, .hero-stats { animation: rise .8s var(--ease) both; }
.hero .eyebrow { animation-delay: .05s; }
.hero .lead { animation-delay: .55s; }
.hero .actions { animation-delay: .7s; }
.hero-stats { animation-delay: .85s; }
.hero h1.split .w > span { animation: wordup .9s var(--ease) both; animation-delay: calc(.12s + var(--wi, 0) * 70ms); }
.monument .dr * , .monument .dr > * { stroke-dasharray: 1; }
.monument .dr-0 * { animation: draw 2.2s ease .1s both; }
.monument .dr-1 > * { animation: draw 1.2s var(--ease) .2s both; }
.monument .dr-2 > * { animation: draw 1.4s var(--ease) .55s both; }
.monument .dr-3 > * { animation: draw 1.4s ease 1s both; }
.monument .dr-4 > * { animation: draw 1.2s ease 1.5s both; }
.monument .dr-5 > * { animation: draw 1.4s ease 1.7s both; }
.monument .fx-3 { animation: fade .9s ease 1.6s both; }
.monument .pop { transform-box: fill-box; transform-origin: center; animation: pop .7s var(--ease) 2.2s both; }
.monument .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s ease-in-out 2.4s infinite; }
.monument .sway-r { animation-delay: 3.4s; animation-duration: 7s; }
.layer { transition: transform .9s cubic-bezier(.2,.7,.2,1); will-change: transform; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.tilt-in { transform: perspective(900px) translateY(40px) rotateX(12deg); transform-origin: 50% 100%; }
.reveal.tilt-in.in { transform: none; }
.reveal.wipe { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); }
.reveal.wipe.in { clip-path: inset(0 0 0 0); }
.split.reveal { opacity: 1; transform: none; }
.split.reveal .w > span { transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--wi, 0) * 60ms); }
.split.reveal.in .w > span { transform: none; }
.work.reveal svg { stroke-dasharray: 460; stroke-dashoffset: 460; transition: stroke-dashoffset 1.8s ease, transform .45s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + .2s), 0s; }
.work.reveal.in svg { stroke-dashoffset: 0; }
.steps li.reveal::after { transform: scaleX(0); }
.steps li.reveal.in::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal.tilt-in { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split .w > span { transform: none !important; }
  .work.reveal svg, .monument .dr *, .monument .dr > * { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .rose .r-band { stroke-dashoffset: 0 !important; }
  .rose .r-star .r-piece, .rose .r-corners .r-piece { transform: none !important; opacity: 1 !important; }
  .rose .r-txt, .rose .r-plate, .rose-tilt, .rose-shadow { opacity: 1 !important; }
  .ticker-track { transform: none; }
}
