/* ==========================================================================
   Dollìa · Vetrina
   Stessa palette e stessi caratteri della web app (Cormorant Garamond +
   Manrope, crema / terracotta / salvia). Il motivo ricorrente è la cucitura:
   bordi tratteggiati come il cerchio del logo.
   ========================================================================== */

:root {
  --cream: oklch(0.975 0.025 85);
  --paper: oklch(0.99 0.012 82);
  --ink: oklch(0.245 0.055 20);
  --ink-soft: oklch(0.42 0.055 25);
  --terracotta: oklch(0.52 0.14 22);
  --terracotta-deep: oklch(0.44 0.13 22);
  --rose: oklch(0.72 0.09 18);
  --blush: oklch(0.935 0.045 30);
  --honey: oklch(0.9 0.08 85);
  --sage: oklch(0.64 0.095 130);
  --sage-deep: oklch(0.45 0.08 130);
  --line: oklch(0.78 0.055 45);
  --line-soft: oklch(0.88 0.035 55);
  --whatsapp: #1f9d55;
  --whatsapp-deep: #167a41;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow: 0 1px 2px oklch(0.245 0.055 20 / 0.06), 0 12px 32px -12px oklch(0.245 0.055 20 / 0.22);
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

/* La pagina Bambolenka scalda leggermente il rosso, come il suo banner,
   senza uscire dalla famiglia Dollìa. */
body[data-tema="bambolenka"] {
  --terracotta: oklch(0.5 0.155 24);
  --terracotta-deep: oklch(0.42 0.14 24);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, oklch(0.95 0.04 40 / 0.55), transparent 38rem),
    radial-gradient(circle at 92% 40%, oklch(0.94 0.05 85 / 0.6), transparent 34rem);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: oklch(0.9 0.08 85 / 0.72); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografia ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--terracotta); font-weight: 500; }

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--terracotta);
}
.eyebrow::before {
  content: ""; width: 1.6rem; border-top: 2px dashed currentColor; opacity: 0.7;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 40rem; }

.stack > * + * { margin-top: 1rem; }

/* Divisore cucito con cuore, come sotto il logo del banner */
.stitch-divider {
  display: flex; align-items: center; gap: 0.85rem;
  color: var(--rose); max-width: 18rem; margin: 1.4rem 0;
}
.stitch-divider::before,
.stitch-divider::after { content: ""; flex: 1; border-top: 2px dashed currentColor; }
.stitch-divider svg { width: 1.1rem; height: 1.1rem; flex: none; }
.center .stitch-divider { margin-inline: auto; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow::after { content: ""; width: 1.6rem; border-top: 2px dashed currentColor; opacity: 0.7; }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }

.btn-primary { background: var(--terracotta); color: var(--paper); box-shadow: 0 8px 20px -10px var(--terracotta); }
.btn-primary:hover { background: var(--terracotta-deep); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: oklch(0.99 0.012 82 / 0.7); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

.btn-wa { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 20px -10px var(--whatsapp); }
.btn-wa:hover { background: var(--whatsapp-deep); }

.btn-sm { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: oklch(0.975 0.025 85 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid oklch(0.78 0.055 45 / 0.45);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 2.9rem; height: 2.9rem; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1; color: var(--terracotta); }
.brand-sub { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.2rem; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.35rem; }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.85rem;
  text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--ink-soft);
  border-radius: 999px; transition: color 0.2s, background-color 0.2s;
}
.main-nav a:not(.btn):hover { color: var(--terracotta); background: oklch(0.935 0.045 30 / 0.6); }
.main-nav a[aria-current="page"] { color: var(--terracotta); background: var(--blush); }
.main-nav .btn { margin-left: 0.5rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1.5px dashed var(--line); background: var(--paper); cursor: pointer;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px oklch(0.245 0.055 20 / 0.35);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.75rem var(--gutter) 1.25rem; }
  .main-nav a:not(.btn) { min-height: 3rem; font-size: 1rem; }
  .main-nav .btn { margin: 0.5rem 0 0; width: 100%; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(3rem, 6vw, 5rem); }

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--blush);
}
.hero-banner::after {
  /* cucitura interna */
  content: ""; position: absolute; inset: 0.65rem;
  border: 2px dashed oklch(0.99 0.012 82 / 0.75);
  border-radius: calc(var(--radius-lg) - 0.4rem);
  pointer-events: none;
}
.hero-banner img {
  width: 100%;
  aspect-ratio: 2033 / 774;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 640px) {
  .hero-banner img { aspect-ratio: 4 / 3; }
}

.hero-copy { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) {
  .hero-copy { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}
.hero-copy .lead { margin-top: 1.1rem; }

/* ---------- Sezioni ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: oklch(0.955 0.035 45 / 0.55); border-block: 1px solid oklch(0.78 0.055 45 / 0.35); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 1rem; }

/* Tre famiglie */
.families { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .families { grid-template-columns: repeat(3, 1fr); } }

.family-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px oklch(0.245 0.055 20 / 0.05);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.family-card::before {
  content: ""; position: absolute; inset: 0.5rem;
  border: 1.5px dashed var(--line-soft); border-radius: calc(var(--radius-lg) - 0.35rem);
  pointer-events: none; transition: border-color 0.25s;
}
.family-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.family-card:hover::before { border-color: var(--rose); }

.family-icon {
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--blush); color: var(--terracotta);
}
.family-icon svg { width: 1.6rem; height: 1.6rem; }
.family-card[data-tono="salvia"] .family-icon { background: oklch(0.92 0.05 130); color: var(--sage-deep); }
.family-card[data-tono="miele"] .family-icon { background: var(--honey); color: var(--terracotta-deep); }

.family-card h3 { margin-bottom: 0.6rem; }
.family-card p { color: var(--ink-soft); font-size: 0.97rem; }
.family-meta {
  margin-top: auto; padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; font-size: 0.88rem; color: var(--terracotta);
}
.family-meta .count { font-weight: 600; color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.family-meta svg { width: 1.2rem; height: 1.2rem; transition: transform 0.25s; }
.family-card:hover .family-meta svg { transform: translateX(4px); }
.family-credit { margin-top: 0.75rem; font-size: 0.78rem !important; font-style: italic; }

/* ---------- Griglia bambole ---------- */

.doll-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}
@media (max-width: 520px) {
  .doll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
}

.doll-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.doll-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.doll-media {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--blush); cursor: pointer;
  aspect-ratio: 4 / 5; overflow: hidden;
}
.doll-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.doll-card:hover .doll-media img { transform: scale(1.04); }
.doll-media::after {
  content: ""; position: absolute; inset: 0.55rem;
  border: 2px dashed oklch(0.99 0.012 82 / 0.85); border-radius: 0.8rem;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.doll-card:hover .doll-media::after,
.doll-media:focus-visible::after { opacity: 1; }

.doll-status {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 1;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: oklch(0.99 0.012 82 / 0.92); color: var(--sage-deep);
  box-shadow: 0 2px 8px oklch(0.245 0.055 20 / 0.12);
}
.doll-status[data-stato="prenotata"] { color: var(--terracotta-deep); background: oklch(0.95 0.06 85 / 0.95); }
.doll-status[data-stato="adottata"] { color: var(--ink-soft); background: oklch(0.93 0.01 60 / 0.95); }
.doll-card[data-stato="adottata"] .doll-media img { filter: saturate(0.75); }

.doll-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.2rem; gap: 0.4rem; }
.doll-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); }
.doll-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.doll-desc {
  color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.doll-credit { font-size: 0.76rem; font-style: italic; color: var(--ink-soft); opacity: 0.85; }
.doll-actions { margin-top: auto; padding-top: 0.85rem; display: grid; gap: 0.5rem; }

@media (max-width: 520px) {
  .doll-body { padding: 0.85rem 0.55rem 0.8rem; }
  .doll-name { font-size: 1.3rem; }
  .doll-desc { font-size: 0.82rem; }
  .doll-credit { display: none; }
  .doll-actions .btn { font-size: 0.74rem; letter-spacing: 0; line-height: 1.2; text-align: center; padding-inline: 0.2rem; min-height: 2.6rem; border-radius: 1.3rem; }
  .doll-actions .btn svg { display: none; }
}

/* Segnaposto: bambole in arrivo */
.doll-card.is-placeholder { background: transparent; border: 2px dashed var(--line); box-shadow: none; }
.doll-card.is-placeholder:hover { transform: none; box-shadow: none; }
.placeholder-media {
  aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 50% 42%, oklch(0.95 0.045 30) 0 32%, transparent 33%),
    repeating-linear-gradient(45deg, oklch(0.96 0.03 60 / 0.6) 0 10px, transparent 10px 20px);
  color: var(--rose);
}
.placeholder-media svg { width: 4.2rem; height: 4.2rem; opacity: 0.9; }
.placeholder-media span { display: block; margin-top: 0.75rem; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.is-placeholder .doll-body { text-align: center; align-items: center; }

.grid-note {
  margin-top: 1.75rem; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem;
  text-align: center; color: var(--ink-soft); font-size: 0.95rem;
  border-radius: var(--radius); background: oklch(0.99 0.012 82 / 0.7);
}
.grid-note a { font-weight: 700; color: var(--whatsapp-deep); }

/* ---------- Crediti Bambolenka ---------- */

.credit-box {
  position: relative;
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.credit-box::before {
  content: ""; position: absolute; inset: 0.6rem;
  border: 2px dashed oklch(0.72 0.09 18 / 0.6); border-radius: calc(var(--radius-lg) - 0.4rem);
  pointer-events: none;
}
@media (min-width: 820px) { .credit-box { grid-template-columns: auto 1fr auto; gap: 2rem; } }

.credit-seal {
  width: 5.5rem; height: 5.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background:
    repeating-conic-gradient(oklch(0.5 0.155 24 / 0.14) 0 25%, transparent 0 50%) 0 0 / 14px 14px,
    var(--blush);
  color: var(--terracotta);
  border: 2px dashed var(--rose);
}
.credit-seal svg { width: 2.4rem; height: 2.4rem; }
.credit-box h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.credit-box p { color: var(--ink-soft); margin-top: 0.5rem; max-width: 44rem; }
.credit-box strong { color: var(--ink); }

.credit-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem;
  padding: 1.1rem var(--gutter); text-align: center;
  font-size: 0.92rem; color: var(--ink-soft);
}
.credit-strip a { font-weight: 700; color: var(--terracotta); }

/* ---------- Sottonavigazione sezioni ---------- */

.subnav {
  position: sticky; top: 4.5rem; z-index: 30;
  background: oklch(0.975 0.025 85 / 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid oklch(0.78 0.055 45 / 0.35);
}
.subnav ul {
  list-style: none; margin: 0; padding: 0.6rem 0;
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  min-height: 2.6rem; padding: 0 1.05rem; border-radius: 999px;
  border: 1.5px dashed var(--line); background: var(--paper);
  font-weight: 700; font-size: 0.88rem; text-decoration: none; color: var(--ink-soft);
  transition: all 0.2s;
}
.subnav a:hover, .subnav a.is-active { border-style: solid; border-color: var(--terracotta); color: var(--terracotta); background: var(--blush); }
.subnav .pill-count { font-size: 0.72rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--cream); color: var(--ink-soft); }

.catalog-block + .catalog-block { margin-top: clamp(4rem, 8vw, 6rem); }
.catalog-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 900px) { .catalog-head { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; } }
.catalog-head .lead { font-size: 1.02rem; }

/* ---------- Come acquistare ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  position: relative; padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line-soft);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem;
  border-radius: 50%; border: 2px dashed var(--rose);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--terracotta);
}
.steps h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Pannello WhatsApp ---------- */

.wa-panel {
  position: relative; overflow: hidden;
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--ink); color: var(--paper);
}
.wa-panel::before {
  content: ""; position: absolute; inset: 0.7rem;
  border: 2px dashed oklch(0.99 0.012 82 / 0.22); border-radius: calc(var(--radius-lg) - 0.4rem);
  pointer-events: none;
}
@media (min-width: 860px) { .wa-panel { grid-template-columns: 1.4fr 1fr; } }
.wa-panel h2 em { color: var(--honey); }
.wa-panel .lead { color: oklch(0.99 0.012 82 / 0.75); margin-top: 1rem; }
.wa-panel .eyebrow { color: var(--honey); }
.wa-number {
  display: block; margin-top: 0.75rem;
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 600;
  color: var(--paper); text-decoration: none; letter-spacing: 0.01em;
}
.wa-number:hover { color: var(--honey); }
.wa-side { position: relative; display: grid; gap: 0.75rem; justify-items: start; }
@media (min-width: 860px) { .wa-side { justify-items: end; text-align: right; } }
.wa-side small { color: oklch(0.99 0.012 82 / 0.6); font-size: 0.85rem; }

/* ---------- Storia / valori ---------- */

.story { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; } }
.story-figure {
  position: relative; max-width: 26rem; margin-inline: auto;
  border-radius: 50%; padding: 0.9rem; background: var(--paper); box-shadow: var(--shadow);
}
.story-figure img { border-radius: 50%; }
.values { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values li { display: flex; gap: 0.85rem; align-items: flex-start; }
.values svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--terracotta); margin-top: 0.15rem; }
.values strong { display: block; font-weight: 700; }
.values span { color: var(--ink-soft); font-size: 0.93rem; }

/* Rimando all'altra landing */
.crosslink {
  display: grid; gap: 1.5rem; align-items: center;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-soft);
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s;
}
.crosslink:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
@media (min-width: 820px) { .crosslink { grid-template-columns: 1.2fr 1fr; } }
.crosslink img { width: 100%; height: 100%; min-height: 13rem; object-fit: cover; }
.crosslink-copy { padding: 0 1.75rem 1.75rem; }
@media (min-width: 820px) { .crosslink-copy { padding: 2rem 2.5rem 2rem 0; } }
.crosslink-copy p { color: var(--ink-soft); margin: 0.6rem 0 1.25rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--paper); margin-top: clamp(3rem, 6vw, 5rem); }
.site-footer .container { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr 1fr; } }
.footer-brand .brand-name { color: var(--paper); font-size: 2.4rem; }
.footer-brand .brand-sub { color: oklch(0.99 0.012 82 / 0.55); }
.footer-brand p { margin-top: 1rem; color: oklch(0.99 0.012 82 / 0.68); max-width: 26rem; }
.footer-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: oklch(0.99 0.012 82 / 0.5); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.footer-list a { text-decoration: none; color: oklch(0.99 0.012 82 / 0.85); }
.footer-list a:hover { color: var(--honey); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px dashed oklch(0.99 0.012 82 / 0.2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  font-size: 0.8rem; color: oklch(0.99 0.012 82 / 0.5);
}
.footer-bottom p { max-width: 46rem; }

/* ---------- WhatsApp flottante ---------- */

.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50;
  display: inline-flex; align-items: center; gap: 0.55rem;
  height: 3.5rem; padding: 0 1.2rem 0 1rem; border-radius: 999px;
  background: var(--whatsapp); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 10px 28px -8px rgb(22 122 65 / 0.6);
  transition: transform 0.2s, background-color 0.2s;
}
.wa-float:hover { background: var(--whatsapp-deep); transform: translateY(-2px); }
.wa-float svg { width: 1.6rem; height: 1.6rem; }
@media (max-width: 520px) {
  .wa-float { width: 3.5rem; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Scheda bambola (dialog) ---------- */

.doll-dialog {
  width: min(64rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px oklch(0.245 0.055 20 / 0.55);
  overflow: hidden;
}
.doll-dialog::backdrop { background: oklch(0.245 0.055 20 / 0.55); backdrop-filter: blur(3px); }
.doll-dialog[open] { animation: dialog-in 0.28s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.dialog-inner { display: grid; max-height: calc(100dvh - 2rem); overflow-y: auto; }
@media (min-width: 820px) { .dialog-inner { grid-template-columns: 1.05fr 1fr; overflow: hidden; } }

.dialog-gallery { background: var(--blush); display: flex; flex-direction: column; }
.dialog-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 820px) { .dialog-photo { aspect-ratio: auto; flex: 1; min-height: 0; max-height: calc(100dvh - 8rem); } }
.dialog-photo img { width: 100%; height: 100%; object-fit: cover; }
.dialog-thumbs { display: flex; gap: 0.5rem; padding: 0.75rem; overflow-x: auto; }
.dialog-thumbs:empty { display: none; }
.dialog-thumbs button {
  flex: none; width: 4rem; height: 5rem; padding: 0; border-radius: 0.5rem; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: none; opacity: 0.7;
}
.dialog-thumbs button[aria-current="true"] { border-color: var(--terracotta); opacity: 1; }
.dialog-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.dialog-copy { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: 0.9rem; }
@media (min-width: 820px) { .dialog-copy { overflow-y: auto; max-height: calc(100dvh - 2rem); } }
.dialog-copy h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.dialog-desc { color: var(--ink-soft); white-space: pre-line; }
.dialog-facts { margin: 0.25rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.25rem; font-size: 0.93rem; }
.dialog-facts dt { font-weight: 700; color: var(--ink-soft); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.15rem; }
.dialog-facts dd { margin: 0; }
.dialog-credit {
  padding: 0.85rem 1rem; border-radius: var(--radius);
  border: 1.5px dashed var(--rose); background: oklch(0.96 0.03 30 / 0.6);
  font-size: 0.88rem; color: var(--ink-soft);
}
.dialog-credit a { font-weight: 700; color: var(--terracotta); }
.dialog-price { font-size: 0.9rem; color: var(--ink-soft); }
.dialog-price strong { color: var(--ink); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 0.5rem; }

.dialog-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 0; background: oklch(0.99 0.012 82 / 0.92); box-shadow: 0 4px 14px oklch(0.245 0.055 20 / 0.2);
}
.dialog-close svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Banner demo ---------- */

.demo-banner {
  background: var(--honey); color: var(--ink); text-align: center;
  font-size: 0.85rem; font-weight: 600; padding: 0.55rem var(--gutter);
  border-bottom: 1px dashed var(--terracotta);
}
.demo-banner a { color: var(--terracotta-deep); }

/* ---------- Comparsa morbida ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Profili social e negozio ----------
   Ogni voce compare solo quando il suo link è compilato in catalogo.js. */

.social-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.social-list a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-size: 0.95rem;
}
.social-list svg { width: 1.25rem; height: 1.25rem; flex: none; }

.social-list.solo-icone { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-list.solo-icone a {
  width: 2.75rem; height: 2.75rem; justify-content: center; border-radius: 50%;
  border: 1.5px dashed currentColor; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.social-list.solo-icone span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.site-footer .social-list a { color: oklch(0.99 0.012 82 / 0.85); }
.site-footer .social-list a:hover { color: var(--honey); }

.wa-social { display: grid; gap: 0.6rem; justify-items: inherit; margin-top: 0.75rem; padding-top: 1rem; border-top: 1px dashed oklch(0.99 0.012 82 / 0.22); }
.wa-social > span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.99 0.012 82 / 0.55); }
.wa-social .social-list a { color: var(--paper); }
.wa-social .social-list a:hover { background: var(--paper); color: var(--ink); border-style: solid; }

.main-nav .nav-shop { display: inline-flex; gap: 0.4rem; }
.main-nav .nav-shop svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Impara con Dollìa ---------- */

.learn-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .learn-grid { grid-template-columns: repeat(2, 1fr); } }

.learn-card {
  position: relative; display: flex; flex-direction: column; gap: 0.6rem;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line-soft);
}
.learn-card::before {
  content: ""; position: absolute; inset: 0.5rem; pointer-events: none;
  border: 1.5px dashed var(--line-soft); border-radius: calc(var(--radius-lg) - 0.35rem);
}
.learn-card .family-icon { margin-bottom: 0.5rem; }
.learn-card[data-risorsa="live"] .family-icon { background: oklch(0.92 0.06 300); color: oklch(0.45 0.16 300); }
.learn-card p { color: var(--ink-soft); font-size: 0.97rem; }
.learn-card .btn { align-self: flex-start; margin-top: auto; }
.learn-card > p:last-of-type { margin-bottom: 1rem; }

.learn-status {
  position: absolute; top: 1.6rem; right: 1.5rem;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--honey); color: var(--terracotta-deep);
}
.learn-status.is-pronto { background: oklch(0.92 0.05 130); color: var(--sage-deep); }

.learn-note {
  margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1.5px dashed var(--rose); background: oklch(0.96 0.03 30 / 0.6);
  color: var(--ink-soft); font-size: 0.92rem;
}
.learn-note a { color: var(--terracotta); font-weight: 700; }

/* Anteprima in home */
.teaser { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .teaser { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.teaser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
@media (min-width: 560px) { .teaser-list { grid-template-columns: repeat(2, 1fr); } }
.teaser-list li {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--paper); border: 1.5px dashed var(--line-soft);
  font-weight: 700; font-size: 0.95rem;
}
.teaser-list .family-icon { width: 2.6rem; height: 2.6rem; margin: 0; flex: none; }
.teaser-list .family-icon svg { width: 1.25rem; height: 1.25rem; }
.teaser-list small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--ink-soft); }
