/* Il mio menù — sito. Palette e font presi dall'app (Assets/UI/Fonts, brochure). */
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url("fonts/Nunito-Regular.ttf") format("truetype"); }
@font-face { font-family: Nunito; font-weight: 700 900; font-display: swap; src: url("fonts/Nunito-Bold.ttf") format("truetype"); }

:root {
  --dark: #15100c;
  --dark-2: #221a14;
  --dark-line: #3a2e25;
  --on-dark: #f4ece4;
  --on-dark-soft: #cbbcae;
  --ink: #1d1712;
  --soft: #5b5148;
  --accent: #e8893a;
  --accent-ink: #a8540f;
  --cream: #f7f1ea;
  --peach: #fcefe3;
  --line: #e8ded3;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(21, 16, 12, .22);
  --max: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.6 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 6vw, 46px); }
h3 { font-size: clamp(22px, 4vw, 28px); }
p { margin: 0; }
p + p, p + ul, ul + p, ul + .note { margin-top: 14px; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.dark .eyebrow { color: var(--accent); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--soft); max-width: 640px; margin-top: 16px; }
.dark .lead { color: var(--on-dark-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- barra di avanzamento + header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 60; }
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--on-dark);
  transition: background .3s, box-shadow .3s;
}
.top.solid { background: rgba(21, 16, 12, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--dark-line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 18px; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.top nav a { color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { background: rgba(255, 255, 255, .08); }
.top nav .btn { padding: 10px 18px; }
/* Su telefono "Funzioni" sparisce, ma Privacy e Provala restano visibili: spazi più stretti per farci stare tutto. */
@media (max-width: 640px) {
  .top nav .hide-s:not(.keep) { display: none; }
  .top .wrap { gap: 6px; }
  .brand { font-size: 17px; gap: 8px; }
  .top nav { gap: 2px; }
  .top nav a { padding: 10px 9px; }
  .top nav .btn { padding: 10px 15px; }
}
@media (max-width: 350px) { .brand span { display: none; } }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 16px/1.2 Nunito, sans-serif; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn.primary, .top nav a.btn { background: var(--accent); color: var(--dark); }
.btn.primary:hover, .top nav a.btn:hover { background: #f29a4f; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232, 137, 58, .35); }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.btn svg { width: 20px; height: 20px; }

/* ---------- telefoni ---------- */
.phone {
  position: relative; border-radius: 30px; padding: 7px; background: #0b0806;
  box-shadow: 0 0 0 1.5px #3a2e25, var(--shadow);
  width: 100%; max-width: 270px;
}
.phone img { border-radius: 23px; width: 100%; aspect-ratio: 540 / 1169; object-fit: cover; object-position: top; background: var(--dark-2); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.phones .phone { flex: 1 1 0; min-width: 0; }
.phones .phone:nth-child(2) { margin-top: 44px; }
.phones.three .phone { max-width: 220px; }
.phones.three .phone:nth-child(2) { margin-top: 28px; }
.phones.three .phone:nth-child(3) { margin-top: 56px; }
.phones.five { flex-wrap: wrap; row-gap: 24px; }
.phones.five .phone { flex: 0 0 calc((100% - 32px) / 3); }
.phones.five .phone:nth-child(4), .phones.five .phone:nth-child(5) { margin-top: 0; }

/* ---------- hero ---------- */
.dark { background: var(--dark); color: var(--on-dark); }
.hero { position: relative; overflow: hidden; padding: 112px 0 72px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(circle, rgba(232, 137, 58, .28), rgba(232, 137, 58, 0) 65%);
}
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 8.6vw, 66px); color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .soon { margin-top: 18px; font-size: 15px; color: var(--on-dark-soft); display: flex; align-items: center; gap: 8px; }
.hero .soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #5fbf7a; box-shadow: 0 0 0 4px rgba(95, 191, 122, .2); }
.hero-phones { position: relative; display: flex; justify-content: center; gap: 18px; padding: 0 4px; }
.hero-phones .phone { max-width: 250px; flex: 1 1 0; }
.hero-phones .phone:first-child { margin-top: 48px; }
@media (min-width: 900px) {
  .hero { padding: 150px 0 110px; min-height: 92vh; display: flex; align-items: center; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--dark-line); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.stat { background: var(--dark-2); padding: 22px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(32px, 7vw, 44px); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--on-dark-soft); line-height: 1.35; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sezioni ---------- */
/* clip, non hidden: i telefoni che entrano di lato non allargano la pagina su telefono. */
section { position: relative; overflow-x: clip; }
.block { padding: 88px 0; }
.block.cream { background: var(--cream); }
.block.peach { background: var(--peach); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.cards { display: grid; gap: 16px; margin-top: 40px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--peach); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--soft); font-size: 16px; }
.dark .card { background: var(--dark-2); border-color: var(--dark-line); }
.dark .card p, .dark .card li { color: var(--on-dark-soft); }
.dark .card h3 { color: #fff; }
@media (min-width: 760px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
.card ul { margin: 0; padding-left: 20px; font-size: 16px; }
.card li + li { margin-top: 8px; }

/* ---------- trailer ---------- */
.video { position: relative; margin-top: 40px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--dark); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; text-align: left;
  background: radial-gradient(circle at 75% 40%, rgba(232, 137, 58, .35), transparent 55%), var(--dark);
  display: flex; align-items: center; gap: clamp(14px, 4vw, 40px); padding: clamp(18px, 5vw, 56px); font-family: inherit;
}
.video button img { width: clamp(64px, 14vw, 140px); border-radius: 24%; box-shadow: var(--shadow); }
.video button strong { display: block; font-size: clamp(22px, 5vw, 48px); line-height: 1.1; }
.video button small { display: block; margin-top: 6px; font-size: clamp(14px, 2.2vw, 20px); color: var(--on-dark-soft); }
.video .play { position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vw, 40px); width: clamp(56px, 10vw, 84px); height: clamp(56px, 10vw, 84px); border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .25s; }
.video button:hover .play { transform: scale(1.08); }
.video .play svg { width: 40%; height: 40%; fill: var(--dark); margin-left: 6%; }
.video-note { margin-top: 12px; font-size: 14px; color: var(--soft); text-align: center; }

/* ---------- funzioni ---------- */
.feature { display: grid; gap: 36px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature .step { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; display: block; }
.feature h3 { margin-bottom: 14px; }
.feature p, .feature li { color: var(--soft); }
.feature ul { margin: 0; padding-left: 22px; }
.feature li + li { margin-top: 8px; }
.feature li b { color: var(--ink); }
.note { margin-top: 18px; background: var(--white); border-radius: 16px; padding: 16px 18px; font-size: 16px; color: var(--soft); border-left: 4px solid var(--accent); }
.note b { color: var(--ink); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 88px 0; }
  .feature.flip .text { order: 2; }
}
.icons-grid { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 10px 12px; align-items: center; margin-top: 22px; max-width: 420px; }
.icons-grid span { font-size: 14px; font-weight: 800; color: var(--soft); }
.icons-grid img { width: 100%; max-width: 64px; aspect-ratio: 1; justify-self: center; }
/* Neon and Progetto icons are light lines made for a dark page: shown on their theme's background. */
.icons-grid img.ic-neon, .icons-grid img.ic-progetto { border-radius: 12px; padding: 4px; }
.icons-grid img.ic-neon { background: #140C28; }
.icons-grid img.ic-progetto { background: #18468C; }

/* ---------- privacy, chi sono, test ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about .avatar { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .about { grid-template-columns: auto 1fr; gap: 48px; } .about .avatar { width: 140px; height: 140px; border-radius: 34px; } }

.get { text-align: center; display: flex; flex-direction: column; align-items: center; }
.get .lead { max-width: 620px; margin-top: 4px; }
.get .small { margin-top: 22px; }
.btn svg.gp { width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 4px; box-sizing: content-box; }
.gp-badge {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; min-height: 64px; padding: 10px 28px 10px 22px;
  background: #000; color: #fff; text-decoration: none; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.gp-badge:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6), 0 10px 24px rgba(0, 0, 0, .4); }
.gp-badge svg { width: 36px; height: 36px; }
.gp-badge span { display: flex; flex-direction: column; text-align: left; font: 800 24px/1.1 Nunito, sans-serif; }
.gp-badge small { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.tform { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.tform label { display: grid; gap: 8px; font-weight: 700; font-size: 15px; color: var(--on-dark); }
.tform input, .tform textarea {
  font: 400 17px/1.4 Nunito, sans-serif; color: var(--on-dark); background: var(--dark); min-height: 48px;
  border: 1.5px solid var(--dark-line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.tform textarea { min-height: 96px; resize: vertical; }
.tform input:focus, .tform textarea:focus { outline: none; border-color: var(--accent); }
.tform input[aria-invalid="true"] { border-color: #e0604f; }
.tform .err { color: #ff9a8a; font-size: 15px; margin-top: -8px; }
.tform .err:empty { display: none; }
.small { font-size: 15px; color: var(--on-dark-soft); }

/* ---------- footer ---------- */
footer { background: var(--dark); color: var(--on-dark-soft); padding: 44px 0; font-size: 15px; border-top: 1px solid var(--dark-line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer a { color: var(--on-dark); }
footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- pagina privacy ---------- */
.doc-hero { padding: 120px 0 56px; }
.doc-hero h1 { font-size: clamp(34px, 7vw, 54px); color: #fff; }
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 88px; }
.doc h2 { font-size: clamp(23px, 4vw, 28px); margin: 44px 0 14px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc .updated { color: var(--soft); font-style: italic; }
.doc .summary { background: var(--peach); border-radius: 16px; padding: 18px 20px; margin-top: 20px; }

/* ---------- animazioni allo scroll ---------- */
/* Gli elementi restano visibili senza JS: si nascondono solo quando lo script aggiunge .js all'html. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-36px) rotate(-2deg); }
.js .reveal.from-right { transform: translateX(36px) rotate(2deg); }
.js .reveal.zoom { transform: scale(.94); }
.js .reveal.in { opacity: 1; transform: none; }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes float { 50% { translate: 0 -10px; } }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  .progress { display: none; }
}

/* ======================================================================
   Manda la spesa (demo) e laboratorio dei temi — aggiunti con i temi Cipria, Prugna, Batuffolo, Giardino, Punto croce
   ====================================================================== */
@font-face { font-family: "Sniglet"; font-display: swap; src: url("fonts/Sniglet-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Young Serif"; font-display: swap; src: url("fonts/YoungSerif-Regular.ttf") format("truetype"); }
@font-face { font-family: "Delius"; font-display: swap; src: url("fonts/Delius-Regular.ttf") format("truetype"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("fonts/Caveat-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Lilita One"; font-display: swap; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); }
@font-face { font-family: "Righteous"; font-display: swap; src: url("fonts/Righteous-Regular.ttf") format("truetype"); }
@font-face { font-family: "Share Tech Mono"; font-display: swap; src: url("fonts/ShareTechMono-Regular.ttf") format("truetype"); }
@font-face { font-family: "Silkscreen"; font-display: swap; src: url("fonts/Silkscreen-Regular.ttf") format("truetype"); }

/* ---------- Manda la spesa ---------- */
.sharedemo { display: grid; gap: 14px; max-width: 460px; margin: 0 auto; width: 100%; }
.sd-list, .sd-sheet { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(21, 16, 12, .1); }
.sd-list { padding: 8px 10px 10px; }
.sd-sec { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); padding: 10px 6px 4px; }
.sd-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 44px; padding: 6px; border: 0; background: none; border-radius: 12px; font: 700 16px/1.2 Nunito, sans-serif; color: var(--ink); text-align: left; cursor: pointer; }
.sd-item:hover { background: var(--peach); }
.sd-box { width: 24px; height: 24px; border: 2px solid #b9a894; border-radius: 8px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.sd-item.done .sd-box { background: var(--accent); border-color: var(--accent); }
.sd-item.done .sd-box::after { content: ""; width: 6px; height: 12px; border: solid var(--dark); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.sd-item.done .sd-name { text-decoration: line-through; color: var(--soft); }
.sd-qty { color: var(--soft); font-weight: 400; font-size: 15px; }
.sd-sheet { padding: 18px; }
.sd-title { font-size: 22px; font-weight: 800; }
.sd-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sd-choice { min-height: 56px; padding: 8px 12px; text-align: left; border: 2px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; font: 400 15px/1.25 Nunito, sans-serif; color: var(--ink); }
.sd-choice b { display: block; font-size: 16px; }
.sd-choice small { color: var(--soft); font-size: 14px; }
.sd-choice.on { border-color: var(--accent); background: var(--peach); }
.sd-choice:disabled { opacity: .5; cursor: not-allowed; }
.sd-cap { margin: 16px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.sd-chat { position: relative; background: #e8dfd2 radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .5), transparent 60%); border-radius: 16px; padding: 14px; overflow: hidden; }
.sd-bubble { background: #dcf8c6; color: #1f2a1a; border-radius: 14px 14px 4px 14px; padding: 12px 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; margin-left: 12%; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); transition: transform .5s cubic-bezier(.3, .9, .3, 1), opacity .5s; word-break: break-word; }
.sd-bubble.empty { background: #fff; font-style: italic; }
.sd-sent { position: absolute; right: 18px; bottom: 6px; font-size: 13px; font-weight: 800; color: #2a86c8; opacity: 0; transition: opacity .3s; }
.is-sent .sd-bubble { animation: pop .5s ease; }
.is-sent .sd-sent { opacity: 1; }
@keyframes pop { 0% { transform: translateY(14px) scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }
.sd-actions { display: flex; gap: 10px; margin-top: 14px; }
.sd-actions button { flex: 1; min-height: 48px; border-radius: 999px; border: 0; cursor: pointer; font: 800 16px Nunito, sans-serif; }
.sd-copy { background: var(--peach); color: var(--accent-ink); }
.sd-send { background: var(--accent); color: var(--dark); }
.sd-actions button:disabled { opacity: .45; cursor: not-allowed; }
.sd-toast { margin: 10px 0 0; min-height: 22px; font-size: 14px; color: var(--soft); opacity: 0; transition: opacity .3s; }
.sd-toast.on { opacity: 1; }
@media (min-width: 900px) { #manda .sharedemo { max-width: none; } }

/* ---------- Laboratorio dei temi ---------- */
.tlab { display: grid; gap: 36px; margin-top: 40px; align-items: start; }
@media (min-width: 900px) { .tlab { grid-template-columns: 300px 1fr; gap: 56px; } .tlab-phone { position: sticky; top: 88px; } }
.tlab-phone .phone { margin: 0 auto; max-width: 300px; }
.tlab-ctl h3 { font-size: 20px; margin: 22px 0 10px; }
.tlab-ctl h3:first-child { margin-top: 0; }
.small-dark { font-size: 15px; color: var(--soft); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); cursor: pointer; font: 700 15px Nunito, sans-serif; color: var(--ink); transition: border-color .2s, background .2s, transform .15s; }
.chip:hover { transform: translateY(-1px); border-color: #d6c4b2; }
.chip.on { border-color: var(--accent); background: var(--peach); }
.chip i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); flex: none; }
.chip em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--dark); border-radius: 999px; padding: 2px 7px; }
.tinfo { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--white); border-radius: 14px; color: var(--soft); font-size: 16px; }
.hint { margin-top: 22px; color: var(--soft); font-size: 15px; }
.gallery-h { margin: 64px 0 22px; font-size: 22px; text-align: center; }
.gallery { margin-top: 0; }

/* La copia dell'app: 390 px di larghezza logica, scalata alla larghezza del telefono. */
.mockbox { --k: .7; position: relative; width: 100%; aspect-ratio: 390 / 640; border-radius: 23px; overflow: hidden; background: #000; }
.mock {
  --bg: #15100C; --surface: #2A2019; --border: #5A4636; --text: #F5EDE4; --primary: #E8873A; --on-primary: #1A1410;
  --pat: none; --pat-size: auto; --font: Nunito, sans-serif; --tc: var(--text); --r: 16px; --bw: 1px; --bc: var(--border); --br: 14px; --shadow: none; --mr: 50%; --tsize: 100%; --tick: none;
  position: absolute; left: 0; top: 0; width: 390px; height: 640px; transform: scale(var(--k)); transform-origin: 0 0;
  background: var(--bg) var(--pat); background-size: var(--pat-size); color: var(--text);
  font: 400 17px/1.35 Nunito, sans-serif; padding: 40px 18px 0; overflow: hidden; transition: background-color .35s, color .35s;
}
.mock * { box-sizing: border-box; }
.mock button { font-family: inherit; color: inherit; }
.m-head { padding: 0 4px 12px; }
.m-title { font: 800 31px/1.1 var(--font); font-size: calc(31px * var(--tsize) / 100%); color: var(--tc); letter-spacing: -.01em; transition: color .35s; }
.m-sub { color: var(--muted); font-size: 16px; margin-top: 4px; }
.m-card { background: var(--surface); border: var(--bw) solid var(--bc); border-radius: var(--r); box-shadow: var(--shadow); transition: background-color .35s, border-color .35s; position: relative; }
.mock.seam .m-card::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed var(--primary); border-radius: 6px; opacity: .75; pointer-events: none; }
.m-meal { padding: 14px 16px; border-left: 6px solid var(--primary); }
.m-meal-t { font-size: 14px; color: var(--muted); font-weight: 700; }
.m-meal-n { font: 800 22px/1.2 var(--font); margin: 2px 0 10px; }
.m-btn { min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--br); background: var(--primary); color: var(--on-primary); font: 800 16px var(--font); cursor: pointer; box-shadow: var(--shadow); border: var(--bw) solid var(--primary); }
.mock[data-theme="fumetto"] .m-btn { border-color: #1B1B1B; }
.m-sec { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 6px 8px; }
.m-list { padding: 4px 6px; }
.m-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 8px; border: 0; background: none; text-align: left; cursor: pointer; border-bottom: 1px solid var(--divider); }
.m-row:last-child { border-bottom: 0; }
.m-check { width: 26px; height: 26px; border: 2px solid var(--check-border); border-radius: 50%; display: grid; place-items: center; transition: background .2s, border-color .2s; flex: none; }
.mock[data-theme="fumetto"] .m-check, .mock[data-theme="salagiochi"] .m-check, .mock[data-theme="progetto"] .m-check { border-radius: 4px; }
.mock[data-theme="puntocroce"] .m-check { border-radius: 5px; }
.m-tick { width: 7px; height: 13px; border: solid var(--on-primary); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg) scale(0); transition: transform .2s; }
.m-row.done .m-check { background: var(--primary); border-color: var(--primary); }
.m-row.done .m-tick { transform: translateY(-1px) rotate(45deg) scale(1); }
/* Spunte a immagine (zampa, foglia, punto croce): niente riempimento, la figura è l'unica cosa. */
.mock.ticks-img .m-tick { width: 22px; height: 22px; border: 0; transform: scale(0); background: var(--primary); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.mock.ticks-img .m-row.done .m-tick { transform: scale(1); }
.mock.ticks-img .m-row.done .m-check { background: transparent; }
.m-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.m-ico img { width: 40px; height: 40px; object-fit: contain; }
.m-name { font-weight: 700; font-size: 17px; transition: color .2s; }
.m-qty { color: var(--muted); font-size: 16px; }
.m-row.done .m-name { text-decoration: line-through; color: var(--muted); }
.m-row.done .m-ico { opacity: .55; }
.m-done { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 16px; background: var(--primary); color: var(--on-primary); border-radius: var(--r); animation: pop .5s ease; }
.m-done[hidden] { display: none; }
.m-done b { display: block; font: 800 19px/1.2 var(--font); }
.m-done span { font-size: 15px; }
.m-mascot { position: relative; width: 64px; height: 64px; flex: none; }
.m-mascot img:first-child { width: 64px; height: 64px; object-fit: contain; animation: wiggle 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.m-badge { position: absolute; right: -6px; top: -8px; width: 28px; height: 28px; object-fit: contain; }
.m-done.nomascot .m-mascot { display: none; }
@keyframes wiggle { 50% { transform: rotate(6deg) translateY(-2px); } }
.m-medals { display: flex; gap: 10px; padding: 0 4px; }
.m-medal { flex: 1; aspect-ratio: 1; max-width: 52px; display: grid; place-items: center; background: var(--surface); border: 2.5px solid var(--gold); border-radius: var(--mr); transition: border-radius .3s; }
.m-medal b { font-size: 22px; color: var(--gold); line-height: 1; }
.m-medal img { width: 80%; height: 80%; object-fit: contain; }
.m-medal.off { border-color: var(--border); border-style: dashed; opacity: .6; }
.m-medal.off img { filter: grayscale(1); opacity: .6; }
.m-medals.ribbons .m-medal { position: relative; border-radius: 50%; border-color: var(--primary); background: var(--surface); margin-bottom: 8px; }
.m-medals.ribbons .m-medal::after { content: ""; position: absolute; bottom: -9px; left: 50%; width: 16px; height: 14px; transform: translateX(-50%); background: linear-gradient(90deg, #B23A48 50%, #2F5D9E 50%); clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 70%, 50% 100%, 25% 70%, 0 100%); }
.m-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; background: var(--surface); border-top: var(--bw) solid var(--bc); font-size: 14px; font-weight: 700; color: var(--muted); }
.m-nav .on { color: var(--primary-text, var(--primary)); }
.m-nav .on::before { content: ""; display: block; width: 52px; height: 24px; margin: 0 auto 2px; border-radius: var(--br); background: var(--primary); opacity: .22; }
.m-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.m-conf { position: absolute; width: 14px; height: 9px; border-radius: 2px; animation: fall 1.8s cubic-bezier(.3, .6, .5, 1) forwards; }
.m-conf.shape { width: 22px; height: 22px; border-radius: 0; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
@keyframes fall { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
.m-party { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-6deg); animation: party 1.4s ease-out forwards; z-index: 6; text-align: center; }
.m-party.word { font: 800 54px/1 var(--font); color: var(--primary); background: var(--surface); border: calc(var(--bw) + 2px) solid var(--bc); border-radius: var(--r); padding: 12px 22px; box-shadow: var(--shadow); white-space: nowrap; }
.m-party.mascot { position: absolute; }
.m-party.mascot img { width: 120px; height: 120px; object-fit: contain; }
.m-party.mascot .pb { position: absolute; right: -14px; top: -14px; width: 48px; height: 48px; }
@keyframes party { 0% { transform: translate(-50%, -30%) scale(.3) rotate(-14deg); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.15) rotate(-6deg); opacity: 1; } 35% { transform: translate(-50%, -50%) scale(1) rotate(-6deg); } 80% { opacity: 1; } 100% { transform: translate(-50%, -62%) scale(1) rotate(-6deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m-conf, .m-party, .m-mascot img:first-child, .is-sent .sd-bubble { animation: none; } .m-party { opacity: 1; } }
/* Le immagini della copia dell'app non ereditano la cornice dei telefoni (.phone img). */
.mockbox .mock img { background: none; aspect-ratio: auto; border-radius: 0; object-fit: contain; width: auto; height: auto; }
.mockbox .mock .m-ico img { width: 40px; height: 40px; }
.mockbox .mock .m-medal img { width: 80%; height: 80%; }
.mockbox .mock .m-mascot img:first-child { width: 64px; height: 64px; }
.mockbox .mock .m-badge { width: 28px; height: 28px; }
.mockbox .mock .m-party.mascot img { width: 120px; height: 120px; }
.mockbox .mock .m-party.mascot .pb { width: 48px; height: 48px; }

/* Anteprima del messaggio: solo da guardare. */
.sd-choice, .sd-copy, .sd-send { cursor: default; }
.sd-copy, .sd-send { display: grid; place-items: center; flex: 1; min-height: 48px; border-radius: 999px; font: 800 16px Nunito, sans-serif; }
.sd-bubble { margin-left: 0; }
.sd-bubble b { font-weight: 800; }

/* Stili delle icone: solo immagini */
.center-lead { text-align: center; margin: 12px auto 0; }
.istyles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
@media (min-width: 700px) { .istyles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .istyles { grid-template-columns: repeat(4, 1fr); } }
.istyle { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 16px; }
.istyle-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16px; }
.istyle-h em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--dark); border-radius: 999px; padding: 2px 7px; }
.istyle-i { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-radius: 12px; padding: 6px; }
.istyle-i img { width: 100%; aspect-ratio: 1; }
.istyle.ic-neon .istyle-i { background: #140C28; }
.istyle.ic-progetto .istyle-i { background: #18468C; }

/* Galleria dei temi dal vivo: cinque in fila, su telefono a scorrimento */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 8px; }
.gallery figure { margin: 0; text-align: center; }
.gallery .phone { max-width: none; margin: 0; }
.gallery figcaption { margin-top: 12px; font-weight: 800; font-size: 16px; }
@media (max-width: 899px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 6px var(--gutter) 14px; margin: 8px calc(var(--gutter) * -1) 0; -webkit-overflow-scrolling: touch; }
  .gallery figure { flex: 0 0 58%; max-width: 240px; scroll-snap-align: center; }
}

.istyles { display: flex; flex-wrap: wrap; justify-content: center; }
.istyle { flex: 0 0 calc(50% - 7px); }
@media (min-width: 700px) { .istyle { flex-basis: calc(33.333% - 10px); } }
@media (min-width: 1000px) { .istyle { flex-basis: calc(25% - 11px); } }
.istyle { min-width: 0; }
.istyle-h { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 480px) { .istyle { padding: 12px 10px 14px; } .istyle-h { font-size: 15px; } }

/* ---------- Animazioni legate alla rotella (solo con JS e senza «riduci movimento») ---------- */
.pin, .gallery-fallback ~ .pin { display: none; }
.pinon .pin { display: block; height: var(--h, 360vh); margin-top: 40px; }
.pinon .gallery-fallback, .pinon .istyles-note { display: none; }
.pin-stage { position: sticky; top: 0; height: 100vh; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 76px 0 24px; transition: background-color .5s; }
.pin-stage h3 { font-size: clamp(26px, 5vw, 38px); margin-bottom: 8px; }
.pin-hint { margin-top: 14px; font-size: 14px; color: var(--soft); letter-spacing: .04em; }
.pin-hint::after { content: " ↓"; display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.idots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 640px; margin-top: 14px; }
.idots span, .idots button { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .06); color: var(--soft); transition: background .3s, color .3s, transform .3s; }
.idots span.on, .idots button.on { background: var(--accent); color: var(--dark); transform: scale(1.1); }

/* icone */
.pin-icons .pin-stage { background: transparent; }
.itile { --tile: #fff; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 2vw, 22px); padding: clamp(14px, 3vw, 30px); border-radius: 32px; background: var(--tile); width: min(680px, 94vw); margin-top: 18px; box-shadow: 0 20px 50px rgba(21, 16, 12, .16); transition: background-color .45s; }
.islot { position: relative; aspect-ratio: 1; }
.islot img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; will-change: transform, opacity; }
.iname { margin-top: 18px; font-size: clamp(26px, 5vw, 38px); display: flex; align-items: center; gap: 10px; min-height: 48px; }
.iname b { font-weight: 800; }
.iname em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--dark); border-radius: 999px; padding: 3px 9px; }
.iname em[hidden] { display: none; }

/* temi speciali */
.pin-themes { --stage: #FFF4D6; }
.pin-themes .pin-stage { background: var(--stage); border-radius: 0; color: #fff; }
.pin-themes.lightbg .pin-stage { color: var(--ink); }
.pin-themes .pin-stage .eyebrow { color: inherit; opacity: .75; }
.pin-themes .pin-hint, .pin-themes .idots button { color: inherit; }
.pin-themes .idots button { background: rgba(127, 127, 127, .22); }
.pin-themes .idots button.on { background: var(--accent); color: var(--dark); }
.deck { position: relative; width: min(100%, 760px); height: min(58vh, 560px); margin-top: 10px; perspective: 1200px; }
.dphone { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 540 / 1169; margin-left: calc(min(58vh, 560px) * 540 / 1169 / -2); will-change: transform, opacity; }
.dphone .phone { height: 100%; max-width: none; width: 100%; }
.dphone .phone img { height: 100%; }
.deck-cap { margin-top: 18px; max-width: 520px; padding: 0 var(--gutter); min-height: 74px; }
.deck-cap b { display: block; font-size: clamp(24px, 4.5vw, 32px); }
.deck-cap span { display: block; margin-top: 4px; font-size: 16px; opacity: .85; }
@media (max-width: 899px) { .pin-themes .pin-stage { margin: 0 calc(var(--gutter) * -1); } }
@media (max-width: 520px) { .itile { border-radius: 22px; } .idots span, .idots button { font-size: 12px; padding: 4px 9px; } }

.idots button { border: 0; cursor: pointer; font-family: inherit; min-height: 32px; }
.idots button:hover { background: var(--accent); color: var(--dark); }
@media (pointer: coarse) { .idots button { min-height: 44px; padding: 8px 14px; } }

/* ---------- Tendine ---------- */
.acc { background: var(--white); border: 1px solid var(--line); border-radius: 20px; margin-top: 12px; overflow: hidden; transition: box-shadow .3s; }
.acc.open { box-shadow: 0 14px 34px rgba(21, 16, 12, .1); }
.acc > h3, .acc-card > h3 { font-size: inherit; margin: 0; letter-spacing: 0; }
.acc-h { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; min-height: 68px; padding: 14px 18px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.acc-h:hover { background: rgba(232, 137, 58, .07); }
.acc-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--peach); color: var(--accent-ink); font-weight: 800; }
.acc-t b { display: block; font-size: 19px; line-height: 1.2; font-weight: 800; }
.acc-t small { display: block; margin-top: 2px; font-size: 15px; line-height: 1.35; color: var(--soft); font-weight: 400; }
.acc-c { width: 12px; height: 12px; margin-right: 6px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s; opacity: .6; }
.open > h3 .acc-c, .open > .acc-h .acc-c { transform: rotate(-135deg) translate(-2px, -2px); }
.acc-p { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s ease, visibility 0s .4s; }
.acc-in { overflow: hidden; min-height: 0; }
.open > .acc-p { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.acc-in .feature { padding: 8px 22px 30px; border-top: 0; gap: 28px; }
@media (min-width: 900px) { .acc-in .feature { padding: 12px 32px 40px; gap: 48px; } }
.acc-in .feature .text { padding-top: 4px; }
.acc-tools { margin-top: 18px; }
.acc-tools button { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font: 800 15px Nunito, sans-serif; color: var(--accent-ink); cursor: pointer; }
.acc-tools button:hover { border-color: var(--accent); }
#funzioni .acc:first-of-type { margin-top: 28px; }

/* Schede per i professionisti */
.acc-card { padding: 0; align-self: start; }
.acc-card .acc-h { min-height: 76px; padding: 18px 20px; grid-template-columns: 1fr auto; }
.dark .acc-card .acc-t b { color: #fff; }
.dark .acc-card .acc-t small { color: var(--on-dark-soft); }
.acc-card .acc-in ul { margin: 0; padding: 0 20px 22px 40px; font-size: 16px; }
.acc-card .acc-h:hover { background: rgba(255, 255, 255, .05); }

:root { --vh: 100vh; }
@supports (height: 100svh) { :root { --vh: 100svh; } }
.pinon .istyles, .pinon .center-lead { display: none; }

/* ---------- Funzioni: scorrendo in verticale le schede scorrono di lato; ogni scheda è già aperta, «Approfondisci» mostra il resto ---------- */
.block.hp { padding: 0; }
.hpin { position: relative; }
.hpin-stage { display: flex; flex-direction: column; padding: 74px 0 12px; --cw: min(760px, calc(100vw - 140px)); --ch: clamp(400px, calc(var(--vh) - 250px), 600px); }
.hp-on .hpin-stage { position: sticky; top: 0; height: var(--vh); min-height: 560px; overflow: hidden; overflow: clip; }
.hp-head h2 { font-size: clamp(22px, 3.6vw, 32px); }
.hp-head .eyebrow { margin-bottom: 4px; }
.hp-view { margin-top: 12px; overflow: hidden; overflow: clip; }
html:not(.hp-on) .hp-view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fstrip { list-style: none; margin: 0; display: flex; gap: 22px; width: max-content; padding: 6px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 22px; will-change: transform; }
.fcard { flex: 0 0 var(--cw); scroll-snap-align: center; }
.v0 { --fc-bg: linear-gradient(160deg, #3a2a1e, #15100c); --fc-accent: #E8873A; --fc-card: rgba(255, 255, 255, .09); --fc-line: rgba(255, 255, 255, .16); }
.v1 { --fc-bg: linear-gradient(160deg, #FFE9D5, #F7C494); --fc-ink: #1d1712; --fc-accent: #D9701F; --fc-card: rgba(255, 255, 255, .72); --fc-line: rgba(217, 112, 31, .25); }
.v2 { --fc-bg: linear-gradient(160deg, #2a63b8, #16407f); --fc-accent: #FFD54A; --fc-card: rgba(255, 255, 255, .12); --fc-line: rgba(255, 255, 255, .22); }
.v3 { --fc-bg: linear-gradient(160deg, #F2F4E8, #C3CDA9); --fc-ink: #22281a; --fc-accent: #5F6E2E; --fc-card: rgba(255, 255, 255, .7); --fc-line: rgba(95, 110, 46, .25); }
.v4 { --fc-bg: linear-gradient(160deg, #3a1b5c, #140C28); --fc-accent: #FF3DCB; --fc-card: rgba(255, 255, 255, .08); --fc-line: rgba(255, 61, 203, .35); }
.v5 { --fc-bg: linear-gradient(160deg, #FFF3F6, #F2BFD0); --fc-ink: #3a2230; --fc-accent: #C94F77; --fc-card: rgba(255, 255, 255, .72); --fc-line: rgba(201, 79, 119, .28); }
.fc { position: relative; height: var(--ch); border-radius: 28px; overflow: hidden; background: var(--fc-bg); color: var(--fc-ink, #fff); box-shadow: 0 18px 40px rgba(21, 16, 12, .18); display: flex; flex-direction: column; }
.fc-head { display: flex; gap: 14px; align-items: center; padding: 22px 26px 0; }
.fc-n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--fc-accent); color: #fff; font-weight: 800; font-size: 15px; }
.v2 .fc-n, .v4 .fc-n { color: #15100c; }
.fc-t b { display: block; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.15; font-weight: 800; }
.fc-t small { display: block; margin-top: 3px; font-size: 15px; opacity: .8; }
.fc-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.05fr; gap: 10px; align-items: center; }
.fc-text { padding: 0 8px 22px 26px; }
.fc-lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; opacity: .95; }
.fc-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px 10px 20px; border-radius: 999px; border: 0; background: var(--fc-accent); color: #fff; font: 800 15px Nunito, sans-serif; cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.v2 .fc-more, .v4 .fc-more { color: #15100c; }
.fc-more:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
.fc-more i { width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat; }
/* telefoni a destra, grandi e inclinati */
.fc-img { position: relative; height: 100%; min-height: 0; }
.fc-img img, .fc-img .fc-fake { position: absolute; height: 92%; width: auto; aspect-ratio: 540 / 1169; object-fit: cover; object-position: top; border-radius: 24px; border: 5px solid #0b0806; box-shadow: 0 16px 34px rgba(0, 0, 0, .35); background: #221a14; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.fc-img .fc-p1 { left: 6%; top: 8%; transform: rotate(-4deg); z-index: 2; }
.fc-img .fc-p2 { left: 42%; top: 14%; transform: rotate(5deg); }
.fc-img.one .fc-p1 { left: 26%; top: 7%; transform: rotate(-2deg); }
.fc:hover .fc-p1 { transform: rotate(-6deg) translate(-4px, -8px); }
.fc:hover .fc-p2 { transform: rotate(7deg) translate(6px, -4px); }
.fc:hover .fc-img.one .fc-p1 { transform: rotate(0) scale(1.03); }
/* immagine finta di «Manda la lista» */
.fc-img .fc-fake { display: flex; flex-direction: column; gap: 7px; padding: 14px 11px; font-size: 10px; line-height: 1.3; color: #F5EDE4; overflow: hidden; text-align: left; height: 92%; }
.ff-t { font-weight: 800; font-size: 13px; }
.ff-ch { display: flex; gap: 5px; }
.ff-ch i { flex: 1; font-style: normal; font-weight: 700; padding: 5px 6px; border: 1px solid #5A4636; border-radius: 7px; font-size: 9px; }
.ff-ch i.on { border-color: #E8873A; background: rgba(232, 135, 58, .2); }
.ff-bub { background: #dcf8c6; color: #1f2a1a; border-radius: 9px 9px 3px 9px; padding: 8px; display: flex; flex-direction: column; gap: 3px; }
.ff-bub s { text-decoration: none; display: block; }
.ff-bub b { font-weight: 800; }
.ff-go { margin-top: auto; text-align: center; background: #E8873A; color: #1A1410; font-weight: 800; padding: 7px; border-radius: 99px; font-size: 11px; }
/* «Approfondisci»: un pannello che sale dentro la scheda, con tutto il testo */
.fc-panel { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: var(--fc-bg); transform: translateY(102%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.fc-panel[hidden] { display: flex; visibility: hidden; }
.fcard.more .fc-panel { transform: none; visibility: visible; }
.fc-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px 26px; }
.fc-panel-top b { font-size: 20px; }
.fc-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fc-accent); cursor: pointer; position: relative; }
.fc-close::before, .fc-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.fc-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.v2 .fc-close::before, .v2 .fc-close::after, .v4 .fc-close::before, .v4 .fc-close::after { background: #15100c; }
.fc-panel-in { flex: 1; overflow-y: auto; padding: 0 26px 24px; font-size: 16px; line-height: 1.55; overscroll-behavior: contain; }
.fc-panel-in p + ul, .fc-panel-in ul + p, .fc-panel-in p + p { margin-top: 10px; }
.fc-panel-in ul { margin: 10px 0 0; padding-left: 22px; }
.fc-panel-in li + li { margin-top: 8px; }
.fc-panel-in li::marker { color: var(--fc-accent); }
.fc-panel-in .note { margin-top: 16px; padding: 14px 16px 14px 18px; background: var(--fc-card); border: 1.5px solid var(--fc-line); border-left: 6px solid var(--fc-accent); border-radius: 18px; color: inherit; font-size: 15px; box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.fc-panel-in .note b { display: inline-block; margin-bottom: 6px; padding: 3px 11px; border-radius: 999px; background: var(--fc-accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.v2 .fc-panel-in .note b, .v4 .fc-panel-in .note b { color: #15100c; }
.fc-panel-in > * { animation: none; }
.fcard.more .fc-panel-in > * { animation: fc-up .5s .12s ease both; }
@keyframes fc-up { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) {
  .hpin-stage { --cw: calc(100vw - 36px); --ch: clamp(400px, calc(var(--vh) - 236px), 620px); padding-top: 72px; }
  .hp-head h2 { display: none; }
  .fstrip { gap: 14px; padding-left: 18px; padding-right: 18px; }
  .fc-head { padding: 16px 18px 0; }
  .fc-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 0; }
  .fc-img { order: -1; }
  .fc-img img, .fc-img .fc-fake { height: 86%; }
  .fc-img .fc-p1, .fc-img.one .fc-p1 { top: 5%; } .fc-img .fc-p2 { top: 9%; }
  .fc-img .fc-p1 { left: 12%; } .fc-img .fc-p2 { left: 46%; } .fc-img.one .fc-p1 { left: 30%; }
  .fc-text { padding: 12px 18px 18px; }
  .fc-lead { font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .fc-more { margin-top: 10px; }
  .fc-panel-top { padding: 14px 16px 8px 18px; } .fc-panel-in { padding: 0 18px 20px; }
}
/* barra: frecce e cursore */
.hp-ctl { display: flex; align-items: center; gap: 14px; width: min(760px, calc(100% - 2 * var(--gutter))); margin: 4px auto 0; }
.hp-ctl button { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); cursor: pointer; position: relative; transition: border-color .2s, transform .2s, opacity .2s; }
.hp-ctl button:hover:not(:disabled) { border-color: var(--accent); transform: scale(1.06); }
.hp-ctl button:disabled { opacity: .35; cursor: default; }
.hp-ctl button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border: solid var(--ink); border-width: 0 0 3px 3px; transform: translate(-30%, -50%) rotate(45deg); }
.hp-ctl .hp-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.hp-sl { flex: 1; min-width: 0; }
.hp-lab { display: flex; gap: 10px; align-items: baseline; justify-content: center; margin-top: 4px; font-size: 15px; white-space: nowrap; overflow: hidden; }
.hp-lab b { color: var(--accent-ink); }
.hp-lab span { color: var(--soft); text-overflow: ellipsis; overflow: hidden; }
#hp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: pointer; --pct: 0%; }
#hp-range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--pct), #e6d6c6 var(--pct)); }
#hp-range::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--pct), #e6d6c6 var(--pct)); }
#hp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 4px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
#hp-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
@media (max-width: 520px) { .hp-ctl { gap: 8px; } .hp-ctl button { width: 44px; height: 44px; } .hp-lab span { display: none; } }
@media (prefers-reduced-motion: reduce) { .fc-panel, .fc-img img { transition: none; } .fcard.more .fc-panel-in > * { animation: none; } }
@media (max-width: 760px) { .fc-img .fc-fake { font-size: 7.5px; gap: 5px; padding: 10px 8px; } .ff-t { font-size: 10px; } .ff-ch i { font-size: 7px; padding: 4px; } .ff-go { font-size: 8.5px; padding: 5px; } }

/* Movimento dei telefoni nelle schede: zoom verso il centro, parallasse mentre scorrono, leggero dondolio sulla scheda al centro */
.fcard { --d: 0; }
.fc-img { transform: scale(calc(1 - min(1, abs(var(--d))) * .1)); transform-origin: 50% 70%; transition: transform .25s linear; }
@supports not (scale: abs(-1)) { .fc-img { transform: none; } }
.fc-img .fc-p1 { transform: translateX(calc(var(--d) * -22px)) rotate(calc(-4deg + var(--d) * -4deg)); transition: transform .25s linear; }
.fc-img .fc-p2 { transform: translateX(calc(var(--d) * 26px)) rotate(calc(5deg + var(--d) * 5deg)); transition: transform .25s linear; }
.fc-img.one .fc-p1 { transform: translateX(calc(var(--d) * -18px)) rotate(calc(-2deg + var(--d) * -4deg)); }
.fcard.focus .fc-img .fc-p1, .fcard.focus .fc-img .fc-fake { animation: fc-bob 4.2s ease-in-out infinite; }
.fcard.focus .fc-img .fc-p2 { animation: fc-bob 4.8s ease-in-out -1.6s infinite; }
@keyframes fc-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 0 -9px; rotate: -1.2deg; } 65% { translate: 0 3px; rotate: 1deg; } }
.fc:hover .fc-p1 { transform: translateX(-4px) translateY(-8px) rotate(-6deg) scale(1.02); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.fc:hover .fc-p2 { transform: translateX(6px) translateY(-4px) rotate(7deg) scale(1.02); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .fcard.focus .fc-img img, .fcard.focus .fc-img .fc-fake { animation: none; } .fc-img, .fc-img .fc-p1, .fc-img .fc-p2 { transform: none; } }
