/* ==========================================================================
   Beweb Studio — mockups.css (comune a v1, v2 e v3, copiato da tools/mockups.css)
   --------------------------------------------------------------------------
   Scene di mockup illustrativi delle pagine servizio (markup: tools/mockups.js).
   - .ms        scena, container CSS: cornici e card si misurano in cqw della scena
   - .scr       schermo di un dispositivo, container CSS: la UI interna si misura
                in cqw dello schermo (.scr--t tablet, .scr--m telefono)
   - .is-in     aggiunta da js/pages.js quando la scena entra in vista: avvia
                anelli, grafici e barre (solo con .has-motion, altrimenti
                tutto è già nello stato finale)
   Ogni versione imposta --ms-font, --ms-acc e --ms-glow nel suo pages.css.
   ========================================================================== */

.ms {
  --ms-shadow: 0 3cqw 6cqw -2cqw rgba(2, 26, 41, .38), 0 0 0 1px rgba(2, 26, 41, .06);
  --ms-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  margin-top: clamp(24px, 4vw, 56px);
  font-family: var(--ms-font, system-ui, sans-serif);
  color: #14202b;
  line-height: 1.3;
  -webkit-user-select: none;
  user-select: none;
}
.ms p { margin: 0; }
.ms__glow { position: absolute; inset: 12% 14%; border-radius: 50%; background: var(--ms-glow, rgba(29, 152, 198, .25)); filter: blur(6cqw); pointer-events: none; }
.ms__l { position: absolute; will-change: transform; }
.ms__note { margin: clamp(16px, 2vw, 28px) 0 0; text-align: center; font-size: .78rem; opacity: .6; }

/* ---------- Dispositivi ---------- */
.d-browser { overflow: hidden; border-radius: 1.1cqw; background: #fff; box-shadow: var(--ms-shadow); }
.d-browser__bar { display: flex; align-items: center; gap: .5cqw; height: 2.6cqw; padding: 0 1cqw; background: #eef1f4; }
.d-browser__bar i { width: .75cqw; height: .75cqw; border-radius: 50%; background: #ff6b5f; }
.d-browser__bar i:nth-child(2) { background: #ffbd2e; }
.d-browser__bar i:nth-child(3) { background: #28c840; }
.d-browser__bar span { flex: 0 1 38%; height: 1.6cqw; margin-left: 1cqw; padding: 0 .8cqw; border-radius: .5cqw; background: #fff; color: #6b7680; font: 600 .85cqw/1.6cqw system-ui, sans-serif; overflow: hidden; white-space: nowrap; }
.scr { position: relative; overflow: hidden; container-type: inline-size; background: #fff; }
.d-browser .scr { aspect-ratio: 16 / 10; }
.d-phone { position: relative; padding: 4.5%; border-radius: 16% / 7.4%; background: #0f1418; box-shadow: var(--ms-shadow), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.d-phone .scr { aspect-ratio: 9 / 19.5; border-radius: 12% / 5.6%; }
.d-phone__notch { position: absolute; top: 3.2%; left: 50%; width: 30%; aspect-ratio: 5 / 1; translate: -50% 0; border-radius: 99px; background: #0f1418; }
.d-phone--l { rotate: -7deg; }
.d-phone--r { rotate: 7deg; }
.d-tablet { padding: 3.2%; border-radius: 7% / 5.2%; background: #0f1418; box-shadow: var(--ms-shadow); }
.d-tablet .scr { aspect-ratio: 3 / 4; border-radius: 3.4% / 2.6%; }

/* ---------- Card flottanti (misure in cqw della scena) ---------- */
.d-card { padding: 1.2cqw 1.4cqw; border-radius: 1.2cqw; background: #fff; box-shadow: var(--ms-shadow); font-size: 1cqw; }
.d-card p { display: grid; gap: .25cqw; }
.d-card b { font-size: 1.15cqw; }
.d-card small { font-size: .88cqw; color: #6b7680; }
.d-card--row { display: flex; align-items: center; gap: 1cqw; }
.d-card--notif { animation: ms-float 5s ease-in-out infinite; }
.d-card--wide { padding: 1.8cqw; }
.d-ok, .d-ico { display: grid; place-items: center; flex: none; width: 2.6cqw; height: 2.6cqw; color: #fff; }
.d-ok { border-radius: 50%; background: #18a957; }
.d-ico { border-radius: .8cqw; background: #FF6B57; }
.d-ok svg, .d-ico svg { width: 58%; }
.d-score { position: relative; flex: none; width: 3.8cqw; }
.d-score svg { display: block; width: 100%; rotate: -90deg; }
.d-score b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.15cqw; }
.ring-bg { fill: none; stroke: #e6ecef; stroke-width: 4; }
.ring-fg { --v: 98; fill: none; stroke: #18a957; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); transition: stroke-dashoffset 1.8s var(--ms-ease) .3s; }
.d-stores { display: flex !important; flex-wrap: wrap; gap: .6cqw !important; }
.d-stores b { padding: .6cqw 1.1cqw; border-radius: 99px; background: #0f1418; color: #fff; font-size: 1cqw; }
.d-card p.d-kpi { display: block; }
.d-kpi small { display: block; font-size: .85cqw; color: #6b7680; }
.d-kpi b { font-size: 2cqw; }
.d-kpi em, .d-dash__kpis em { margin-left: .5cqw; padding: .15cqw .6cqw; border-radius: 99px; background: #E3F6EA; color: #18a957; font-size: .85cqw; font-style: normal; font-weight: 700; }
.d-kpi--sm b { font-size: 2.6cqw; }
.d-spark { display: block; width: 100%; height: 3.4cqw; margin-top: .8cqw; }
.d-spark path { fill: none; stroke: #18a957; stroke-width: 2; stroke-linecap: round; }
.d-meter { display: block; height: .7cqw; margin-top: .9cqw; overflow: hidden; border-radius: 99px; background: #eef1f4; }
.d-meter i { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--ms-acc); transform-origin: left; transition: transform 1.4s var(--ms-ease) .5s; }
.d-dash__head { display: flex; align-items: center; justify-content: space-between; }
.d-dash__head small { display: block; }
.d-dash__head b { font-size: 1.5cqw; }
.d-chip { padding: .35cqw 1cqw; border-radius: 99px; background: #E3F6EA; color: #18a957; font-size: .9cqw; font-weight: 700; }
.d-dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; margin: 1.4cqw 0 1cqw; }
.d-dash__kpis p { display: block; padding: 1cqw; border-radius: .8cqw; background: #F4F7F9; }
.d-dash__kpis small { display: block; font-size: .8cqw; }
.d-dash__kpis b { font-size: 1.6cqw; }
.d-dash__kpis em { margin: 0; display: inline-block; }
.d-chart { display: block; width: 100%; height: 12cqw; }
.d-chart .grid path { stroke: #e8edf0; stroke-width: 1; }
.d-chart .area { fill: var(--ms-acc); opacity: .14; }
.d-chart .line { fill: none; stroke: var(--ms-acc); stroke-width: 2.5; stroke-linecap: round; }
.d-chart .line--b { stroke: #9fb3c2; stroke-width: 1.6; stroke-dasharray: 3 4; }
.d-serp small { display: block; font-size: .85cqw; color: #18794e; }
.d-serp b { display: block; margin: .3cqw 0; font-size: 1.25cqw; color: #1a4fd6; }
.d-serp span { font-size: .9cqw; color: #55606a; }
.d-card .u-lines, .d-bcard .u-lines, .d-flyer .u-lines { gap: .5cqw; }
.d-card .u-lines i, .d-bcard .u-lines i, .d-flyer .u-lines i { height: .45cqw; }

/* ---------- Grafica e stampa ---------- */
.d-poster { position: relative; display: flex; flex-direction: column; aspect-ratio: 1 / 1.414; padding: 2.4cqw; overflow: hidden; border-radius: .4cqw; background: #1E3A5F; color: #FFE7C2; box-shadow: var(--ms-shadow); }
.d-poster__sun { position: absolute; right: -18%; top: 14%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: #F26B3A; }
.d-poster__k, .d-poster__t, .d-poster__f { position: relative; }
.d-poster__k { font-size: 1cqw; letter-spacing: .2em; text-transform: uppercase; }
.d-poster__t { margin-top: auto !important; font-family: Georgia, serif; font-size: 4.4cqw; line-height: .92; }
.d-poster__f { margin-top: 1cqw !important; font-size: .9cqw; opacity: .8; }
.d-sheet { display: grid; gap: 2cqw; padding: 2.4cqw; border-radius: .6cqw; background: #fff; box-shadow: var(--ms-shadow); }
.d-logo { display: flex; align-items: center; gap: .8cqw; color: #2B2A4C; }
.d-logo i { width: 3cqw; aspect-ratio: 1; border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, #2B2A4C, #7C6FD6); }
.d-logo b { font-family: Georgia, serif; font-size: 2.6cqw; font-weight: 400; }
.d-logo em { align-self: flex-end; margin-bottom: .5cqw; color: #8a8aa3; font-size: .85cqw; font-style: normal; letter-spacing: .2em; text-transform: uppercase; }
.d-logo--w { color: #fff; }
.d-logo--w i { background: linear-gradient(135deg, #fff, #7C6FD6); }
.d-sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6cqw; }
.d-sw i { aspect-ratio: 1 / 1.2; border-radius: .4cqw; }
.d-sw .a { background: #2B2A4C; }
.d-sw .b { background: #7C6FD6; }
.d-sw .c { background: #E9E4F7; }
.d-sw .d { background: #F2B880; }
.d-type { display: flex; align-items: center; gap: 1.4cqw; }
.d-type b { color: #2B2A4C; font-family: Georgia, serif; font-size: 4cqw; font-weight: 400; }
.d-type small { color: #6b7680; font-size: .95cqw; line-height: 1.4; }
.d-bcard { display: flex; flex-direction: column; gap: .3cqw; aspect-ratio: 85 / 55; padding: 1.6cqw; border-radius: .5cqw; background: #fff; box-shadow: var(--ms-shadow); rotate: -6deg; }
.d-bcard b { color: #2B2A4C; font-size: 1.25cqw; }
.d-bcard small { color: #8a8aa3; font-size: .85cqw; }
.d-bcard .u-lines { width: 60%; margin-top: auto; }
.d-bcard--back { display: grid; place-items: center; background: #7C6FD6; rotate: 5deg; }
.d-bcard--back .d-logo--w i { background: linear-gradient(135deg, #fff, #E9E4F7); }
.d-letter { display: flex; flex-direction: column; gap: 1.2cqw; aspect-ratio: 1 / 1.414; padding: 2cqw; border-radius: .3cqw; background: #fff; box-shadow: var(--ms-shadow); rotate: 4deg; }
.d-letter .d-logo i { width: 2cqw; }
.d-letter .d-logo b { font-size: 1.7cqw; }
.d-letter .u-lines { gap: .6cqw; }
.d-letter .u-lines i { height: .4cqw; }
.d-letter__sign { width: 45%; margin-top: auto; border-bottom: 1px solid #c9c6d8; }
.d-letter__sign path { fill: none; stroke: #2B2A4C; stroke-width: 1.4; stroke-linecap: round; }
.d-flyer { display: grid; grid-template-columns: repeat(3, 1fr); rotate: 3deg; box-shadow: var(--ms-shadow); }
.d-flyer__p { display: flex; flex-direction: column; gap: 1cqw; aspect-ratio: 1 / 2.1; padding: 1.2cqw; background: #fff; }
.d-flyer__p.p1 { background: #2B2A4C; }
.d-flyer__p.p1 .u-lines i { background: rgba(255, 255, 255, .3); }
.d-flyer__p.p1 .d-logo { color: #fff; }
.d-flyer__p.p1 .d-logo i { width: 1.8cqw; background: linear-gradient(135deg, #fff, #7C6FD6); }
.d-flyer__p.p1 .d-logo b { font-size: 1.5cqw; }
.d-flyer__p.p2 { background: linear-gradient(90deg, #e9e6f2, #fff 30%); }
.d-flyer__p.p3 { background: linear-gradient(90deg, #f1eff6, #fff 25%); }
.d-flyer__img { display: block; aspect-ratio: 1; border-radius: .4cqw; background: linear-gradient(135deg, #F2B880, #7C6FD6); }

/* ==========================================================================
   UI degli schermi (misure in cqw dello schermo)
   ========================================================================== */
.ui { height: 100%; font-size: 2.4cqw; }
.u-lines { display: grid; gap: .9cqw; }
.u-lines i { display: block; height: 1cqw; border-radius: 1cqw; background: #e3e7ea; }
.u-lines i:nth-child(2) { width: 78%; }
.u-lines i:nth-child(3) { width: 56%; }
.u-lines i:nth-child(4) { width: 88%; }
.u-lines i:nth-child(5) { width: 64%; }
.ui-btn { display: inline-block; padding: 1.1cqw 2.2cqw; border-radius: 99px; background: var(--ui-acc); color: #fff; font-size: 1.5cqw; font-weight: 700; white-space: nowrap; }
.ui-btn--full { display: block; text-align: center; }
.ui-nav { display: flex; align-items: center; gap: 3cqw; padding: 2cqw 4cqw; }
.ui-nav b { font-size: 2cqw; font-weight: 800; letter-spacing: .3em; }
.ui-links { display: flex; gap: 2.6cqw; margin-left: auto; color: #55606a; font-size: 1.45cqw; }
.ui-links i { font-style: normal; }
.ui-burger { display: none; }
.ui-burger i { display: block; height: .6cqw; border-radius: 1cqw; background: currentColor; }

/* --- Sito hotel --- */
.ui-hotel { --ui-acc: #0E7C7B; background: #FBF7F1; }
.ui-hotel .ui-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.4cqw; height: 30cqw; margin: 0 4cqw; padding: 4cqw; overflow: hidden; border-radius: 1.6cqw; background: linear-gradient(180deg, #F6C28B, #F4A27A 45%, #E98A6F 62%); color: #fff; }
.ui-sun { position: absolute; left: 62%; top: 22%; width: 12cqw; aspect-ratio: 1; border-radius: 50%; background: #FFE3B0; }
.ui-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; background: linear-gradient(180deg, #2E8A99, #145A6B); }
.ui-hero > p, .ui-hero > .ui-btn { position: relative; }
.ui-k { font-size: 1.3cqw; letter-spacing: .2em; text-transform: uppercase; opacity: .92; }
.ui-h { font-family: Georgia, serif; font-size: 5.4cqw; line-height: .95; }
.ui-hotel .ui-hero .ui-btn { align-self: flex-start; background: #fff; color: #0E7C7B; }
.ui-book { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 1.6cqw; margin: -3cqw 7cqw 0; padding: 1.6cqw 2cqw; border-radius: 1.4cqw; background: #fff; box-shadow: 0 1.5cqw 3cqw -1cqw rgba(0, 0, 0, .2); font-size: 1.5cqw; font-weight: 600; }
.ui-book small { display: block; color: #8a939b; font-size: 1.1cqw; font-weight: 500; }
.ui-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 3cqw 4cqw; }
.ui-rooms b { display: block; margin: 1cqw 0 .8cqw; font-size: 1.6cqw; }
.ui-ph { display: block; aspect-ratio: 4 / 3; border-radius: 1cqw; }
.ui-ph--1 { background: linear-gradient(160deg, #9fd3d6, #2E8A99); }
.ui-ph--2 { background: linear-gradient(160deg, #f3d2b3, #d98f6a); }
.ui-ph--3 { background: linear-gradient(160deg, #cfe3c2, #6f9a5e); }

/* hotel su tablet */
.scr--t .ui-nav { padding: 4cqw 5cqw; }
.scr--t .ui-nav b { font-size: 3.4cqw; }
.scr--t .ui-links { display: none; }
.scr--t .ui-burger { display: grid; gap: 1cqw; width: 4cqw; margin-left: auto; }
.scr--t .ui-btn { padding: 1.8cqw 3.6cqw; font-size: 2.6cqw; }
.scr--t .ui-hotel .ui-hero { height: 62cqw; padding: 6cqw; border-radius: 3cqw; gap: 2.4cqw; }
.scr--t .ui-k { font-size: 2.3cqw; }
.scr--t .ui-h { font-size: 9cqw; }
.scr--t .ui-book { grid-template-columns: 1fr 1fr 1fr; margin: -4cqw 6cqw 0; padding: 3cqw; gap: 2.4cqw; font-size: 2.6cqw; border-radius: 2.4cqw; }
.scr--t .ui-book small { font-size: 2cqw; }
.scr--t .ui-book .ui-btn { grid-column: 1 / -1; text-align: center; }
.scr--t .ui-rooms { grid-template-columns: 1fr 1fr; gap: 3cqw; padding: 5cqw; }
.scr--t .ui-rooms b { font-size: 3cqw; }
.scr--t .u-lines i { height: 1.6cqw; }

/* hotel su telefono */
.scr--m .ui-nav { padding: 12cqw 6cqw 4cqw; }
.scr--m .ui-nav b { font-size: 5cqw; }
.scr--m .ui-links, .scr--m .ui-nav .ui-btn--sm { display: none; }
.scr--m .ui-burger { display: grid; gap: 1.6cqw; width: 6cqw; margin-left: auto; }
.scr--m .ui-burger i { height: .9cqw; }
.scr--m .ui-btn { padding: 3cqw 5cqw; font-size: 3.8cqw; }
.scr--m .ui-hotel .ui-hero { height: 100cqw; margin: 0 4cqw; padding: 7cqw; border-radius: 5cqw; gap: 3cqw; }
.scr--m .ui-sun { width: 26cqw; left: 55%; }
.scr--m .ui-k { font-size: 3.4cqw; }
.scr--m .ui-h { font-size: 13cqw; }
.scr--m .ui-book { grid-template-columns: 1fr 1fr; margin: -6cqw 7cqw 0; padding: 4cqw; gap: 3cqw; font-size: 3.6cqw; border-radius: 4cqw; }
.scr--m .ui-book small { font-size: 2.8cqw; }
.scr--m .ui-book span:nth-child(3) { display: none; }
.scr--m .ui-book .ui-btn { grid-column: 1 / -1; text-align: center; }
.scr--m .ui-rooms { grid-template-columns: 1fr; gap: 5cqw; padding: 6cqw; }
.scr--m .ui-rooms b { font-size: 4.4cqw; }
.scr--m .ui-ph { border-radius: 3cqw; }
.scr--m .u-lines { gap: 2cqw; }
.scr--m .u-lines i { height: 2.4cqw; }

/* --- App fitness (telefono) --- */
.ui-app { --ui-acc: #FF6B57; position: relative; display: flex; flex-direction: column; gap: 4.5cqw; padding: 13cqw 6cqw 6cqw; background: #12142B; color: #fff; font-size: 4cqw; }
.ui-top { display: flex; align-items: center; gap: 3cqw; }
.ui-av { flex: none; width: 11cqw; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #FF6B57, #C6F432); }
.ui-top small { display: block; font-size: 3.1cqw; opacity: .6; }
.ui-top b { font-size: 4.6cqw; }
.ui-ico { display: grid; place-items: center; width: 9cqw; height: 9cqw; margin-left: auto; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ui-ico svg { width: 50%; color: #fff; }
.ui-ring { position: relative; width: 60%; margin: 0 auto; }
.ui-ring svg { display: block; width: 100%; rotate: -90deg; }
.ui-ring .ring-bg { stroke: rgba(255, 255, 255, .1); stroke-width: 11; }
.ui-ring .ring-fg { --v: 72; stroke: #C6F432; stroke-width: 11; }
.ui-ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ui-ring b { font-size: 9cqw; }
.ui-ring small { font-size: 3cqw; opacity: .6; }
.ui-bars { display: flex; align-items: flex-end; gap: 2.4cqw; height: 22cqw; }
.ui-bars span { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: 1.4cqw; height: 100%; }
.ui-bars i { display: block; width: 100%; height: var(--h); border-radius: 1.6cqw; background: rgba(255, 255, 255, .16); transform-origin: bottom; transition: transform 1s var(--ms-ease); }
.ui-bars span:nth-child(4) i { background: #FF6B57; }
.ui-bars small { font-size: 2.8cqw; opacity: .5; }
.ui-tile, .ui-li { display: flex; align-items: center; gap: 3cqw; border-radius: 5cqw; background: rgba(255, 255, 255, .06); }
.ui-tile { padding: 4cqw; }
.ui-dot { flex: none; width: 9cqw; aspect-ratio: 1; border-radius: 3cqw; background: #FF6B57; }
.ui-tile b, .ui-li b { display: block; font-size: 4cqw; }
.ui-tile small, .ui-li small { font-size: 3cqw; opacity: .6; }
.ui-chip { margin-left: auto; padding: 1.4cqw 3cqw; border-radius: 99px; background: #C6F432; color: #12142B; font-size: 2.8cqw; font-weight: 700; }
.ui-tab { display: flex; justify-content: space-around; margin-top: auto; padding: 4cqw; border-radius: 6cqw; background: rgba(255, 255, 255, .06); }
.ui-tab i { width: 6cqw; aspect-ratio: 1; border-radius: 2cqw; background: rgba(255, 255, 255, .25); }
.ui-tab i.on { background: #FF6B57; }
.ui-title { font-size: 7cqw; font-weight: 800; }
.ui-days { display: flex; gap: 2cqw; }
.ui-days span { display: grid; flex: 1; justify-items: center; gap: 1cqw; padding: 2.6cqw 0; border-radius: 4cqw; background: rgba(255, 255, 255, .06); font-size: 2.8cqw; opacity: .8; }
.ui-days b { font-size: 4.4cqw; }
.ui-days span.on { background: #FF6B57; opacity: 1; }
.ui-li { padding: 3cqw; border-radius: 4cqw; }
.ui-li__c { flex: none; align-self: stretch; width: 1.8cqw; border-radius: 2cqw; }
.ui-li__c.c0 { background: #C6F432; }
.ui-li__c.c1 { background: #FF6B57; }
.ui-li__c.c2 { background: #8C7CFF; }
.ui-li__c.c3 { background: #4CC9F0; }
.ui-li__c.c4 { background: #FFB84C; }
.ui-plus { display: grid; place-items: center; width: 8cqw; aspect-ratio: 1; margin-left: auto; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ui-graph { padding: 4cqw; border-radius: 5cqw; background: rgba(255, 255, 255, .05); }
.ui-graph svg { display: block; width: 100%; height: 40cqw; }
.ui-graph .area { fill: rgba(198, 244, 50, .15); }
.ui-graph .line { fill: none; stroke: #C6F432; stroke-width: 2.4; stroke-linecap: round; }
.ui-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.ui-kpis p { padding: 4cqw; border-radius: 4cqw; background: rgba(255, 255, 255, .06); }
.ui-kpis b { display: block; font-size: 6.4cqw; }
.ui-kpis small { font-size: 3cqw; opacity: .6; }

/* --- Negozio online --- */
.ui-shop { --ui-acc: #C8643B; background: #FAF6F1; color: #2B211B; }
.ui-shop .ui-nav b { font-size: 2.4cqw; letter-spacing: 0; }
.ui-shop .ui-nav em { color: #C8643B; font-style: normal; font-weight: 400; }
.ui-search { display: flex; flex: 0 1 40%; align-items: center; gap: 1cqw; margin-left: auto; padding: 1cqw 1.6cqw; border: 1px solid #eadfd5; border-radius: 99px; background: #fff; color: #9a8f86; font-size: 1.4cqw; }
.ui-search svg { width: 1.6cqw; }
.ui-search i { font-style: normal; }
.ui-cart { position: relative; width: 2.6cqw; }
.ui-cart svg { display: block; width: 100%; }
.ui-badge { position: absolute; right: -1.3cqw; top: -1.3cqw; display: grid; place-items: center; min-width: 2.4cqw; height: 2.4cqw; padding: 0 .5cqw; border-radius: 99px; background: #C8643B; color: #fff; font-size: 1.4cqw; font-style: normal; font-weight: 700; line-height: 1; }
.ui-shop .ui-nav .ui-badge { color: #fff; }
.ui-badge.is-pop { animation: ms-pop .6s var(--ms-ease); }
.ui-cats { display: flex; gap: 1.2cqw; padding: 0 4cqw 2cqw; }
.ui-cats span { padding: .8cqw 1.8cqw; border: 1px solid #eadfd5; border-radius: 99px; background: #fff; font-size: 1.3cqw; }
.ui-cats .on { border-color: #2B211B; background: #2B211B; color: #fff; }
.ui-banner { display: flex; align-items: center; justify-content: space-between; margin: 0 4cqw; padding: 3cqw 4cqw; border-radius: 1.6cqw; background: linear-gradient(110deg, #E9C9A8, #D98F6A); }
.ui-banner small { display: block; font-size: 1.3cqw; letter-spacing: .16em; text-transform: uppercase; }
.ui-banner b { font-family: Georgia, serif; font-size: 3.6cqw; font-weight: 400; }
.ui-banner .ui-btn { background: #2B211B; }
.ui-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; padding: 2.6cqw 4cqw; }
.ui-prod b { display: block; margin-top: 1cqw; font-size: 1.5cqw; }
.ui-prod small { color: #C8643B; font-size: 1.4cqw; font-weight: 700; }
.ui-prod__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 1.2cqw; }
.ui-prod__img svg { width: 62%; }
.ui-prod__img.p0 { background: #F1DCCB; }
.ui-prod__img.p1 { background: #F6E8C3; }
.ui-prod__img.p2 { background: #DCE5D3; }
.ui-prod__img.p3 { background: #D5E3EC; }
.ui-pdp { display: flex; flex-direction: column; gap: 3cqw; padding: 12cqw 6cqw 6cqw; }
.scr--m .ui-pdp .ui-nav { gap: 4cqw; padding: 0; }
.ui-pdp .ui-nav b { font-size: 5cqw; }
.ui-back { font-size: 8cqw; line-height: 1; }
.ui-pdp .ui-cart { width: 6cqw; margin-left: auto; }
.ui-pdp__img { aspect-ratio: 1 / 1.05; border-radius: 5cqw; }
.ui-dots { display: flex; justify-content: center; gap: 1.6cqw; }
.ui-dots i { width: 1.8cqw; height: 1.8cqw; border-radius: 99px; background: #dccfc4; }
.ui-dots i.on { width: 5cqw; background: #2B211B; }
.ui-pdp__t { font-family: Georgia, serif; font-size: 7.4cqw; line-height: 1; }
.ui-stars { display: flex; align-items: center; gap: .6cqw; color: #E9A23B; }
.ui-stars svg { width: 3.6cqw; }
.ui-stars small { margin-left: 1cqw; color: #9a8f86; font-size: 3cqw; }
.ui-pdp__p { color: #C8643B; font-size: 5.6cqw; font-weight: 800; }
.ui-swatch { display: flex; gap: 2.6cqw; }
.ui-swatch i { width: 7cqw; aspect-ratio: 1; border-radius: 50%; }
.ui-swatch .s1 { background: #C8643B; }
.ui-swatch .s2 { background: #7A8F6A; }
.ui-swatch .s3 { background: #3E6E8E; }
.ui-swatch .on { box-shadow: 0 0 0 .8cqw #FAF6F1, 0 0 0 1.4cqw #2B211B; }
.ui-pdp .ui-btn--full { margin-top: auto; padding: 4cqw; font-size: 4cqw; transition: background-color .3s; }
.ui-pdp .ui-btn--full.is-pressed { background: #18a957; }

/* --- Post social (telefono) --- */
.ui-social { --ui-acc: #C8643B; display: flex; flex-direction: column; gap: 3cqw; padding: 12cqw 0 5cqw; background: #fff; font-size: 3.6cqw; }
.ui-social .ui-top { padding: 0 5cqw; }
.ui-av--brand { width: 9cqw; background: conic-gradient(#C8643B, #E9B44C, #C8643B); }
.ui-social .ui-top b { font-size: 3.8cqw; }
.ui-social .ui-top small { opacity: .55; }
.ui-more { margin-left: auto; letter-spacing: .1em; }
.ui-post { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: linear-gradient(180deg, #F3D9C2, #E9B48F); }
.ui-post__sun { position: absolute; right: 12%; top: 12%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: #FBE9D2; }
.ui-post .ui-prod__img { position: relative; width: 56%; background: none; }
.ui-post p { position: absolute; left: 6cqw; bottom: 6cqw; color: #5a2d18; font-family: Georgia, serif; font-size: 8cqw; line-height: 1; }
.ui-acts { display: flex; gap: 4cqw; padding: 0 5cqw; }
.ui-acts span { width: 7cqw; color: #14202b; }
.ui-acts .ui-like { color: #E8445A; }
.ui-likes { padding: 0 5cqw; font-size: 3.4cqw; }
.ui-social .u-lines { padding: 0 5cqw; }
.ui-social .ui-btn--full { margin: auto 5cqw 0; padding: 3cqw; font-size: 3.6cqw; }

/* ---------- Animazioni (solo con .has-motion, avviate da .is-in) ---------- */
.d-chart .line, .ui-graph .line, .d-spark path { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ms-ease) .5s; }
.d-chart .line--b { stroke-dasharray: 3 4; transition: none; }
.has-motion .ms:not(.is-in) .ring-fg,
.has-motion .ms:not(.is-in) .d-chart .line:not(.line--b),
.has-motion .ms:not(.is-in) .ui-graph .line,
.has-motion .ms:not(.is-in) .d-spark path { stroke-dashoffset: 100; }
.has-motion .ms:not(.is-in) .ui-bars i { transform: scaleY(0); }
.has-motion .ms:not(.is-in) .d-meter i { transform: scaleX(0); }
.ui-bars span:nth-child(2) i { transition-delay: .08s; }
.ui-bars span:nth-child(3) i { transition-delay: .16s; }
.ui-bars span:nth-child(4) i { transition-delay: .24s; }
.ui-bars span:nth-child(5) i { transition-delay: .32s; }
.ui-bars span:nth-child(6) i { transition-delay: .4s; }
.ui-bars span:nth-child(7) i { transition-delay: .48s; }
.has-motion .ms.is-in .ui-like { animation: ms-like 2.8s ease-in-out 1.2s infinite; }
@keyframes ms-float { 50% { transform: translateY(-.8cqw); } }
@keyframes ms-pop { 40% { transform: scale(1.5); } }
@keyframes ms-like { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.3); } 86% { transform: scale(.95); } }

/* ---------- Mobile: la scena si allarga un po' oltre i bordi per restare leggibile ---------- */
@media (max-width: 700px) {
  .psec--mock { overflow-x: clip; }
  .ms { width: 128%; margin-left: -14%; }
}
@media (prefers-reduced-motion: reduce) {
  .d-card--notif, .ui-badge.is-pop { animation: none; }
}
