/* ==========================================================================
   Favolandia — single stylesheet
   Brand: Magic Notebook · cool palette · rounded chunky · doodle deco
   ========================================================================== */

/* ===== TOKENS ============================================================ */
:root {
  /* Background */
  --bg:            #F4F0FF;
  --bg-mist:       #FDF6FF;
  --bg-cream:      #FFF9F0;
  --bg-card:       #FFFFFF;
  --bg-sky:        #E5F2FF;
  --bg-pink:       #FFE9F3;
  --bg-mint:       #E0F8F4;

  /* Brand */
  --indigo:        #6B4FE0;
  --indigo-dark:   #4F35C2;
  --indigo-soft:   #EDE7FF;
  --magenta:       #FF5C9C;
  --magenta-dark:  #E63D80;
  --magenta-soft:  #FFE0EC;
  --gold:          #FFC845;
  --gold-soft:     #FFF1C8;
  --mint:          #4ECDC4;
  --mint-soft:     #CFF3EE;
  --sky:           #5EB3FF;
  --sky-soft:      #D4EAFF;

  /* Text */
  --ink:           #1B1D3A;
  --ink-soft:      #4A4B6B;
  --ink-mute:      #8A8BA8;
  --paper:         #FFFFFF;

  /* Borders */
  --line:          #E4DCF6;
  --line-soft:     #F0EBFB;

  /* Shadows */
  --shadow-sm:     0 2px 0 #1B1D3A14;
  --shadow-md:     0 6px 0 #1B1D3A1A;
  --shadow-lg:     0 12px 32px #6B4FE029, 0 4px 0 #1B1D3A1F;
  --shadow-card:   0 8px 24px #6B4FE01F, 0 3px 0 #1B1D3A14;
  --shadow-pop:    0 14px 36px #FF5C9C33, 0 4px 0 #1B1D3A1A;

  /* Type */
  --font-display:  'Fredoka', system-ui, sans-serif;
  --font-body:     'Quicksand', system-ui, sans-serif;
  --font-hand:     'Fredoka', cursive;

  --fs-hero:       clamp(2.6rem, 5.5vw + 1rem, 5.4rem);
  --fs-display:    clamp(2rem, 3.5vw + 0.6rem, 3.5rem);
  --fs-h2:         clamp(1.75rem, 2.4vw + 0.8rem, 2.5rem);
  --fs-h3:         1.375rem;
  --fs-lead:       clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  --fs-base:       1rem;
  --fs-sm:         0.875rem;
  --fs-xs:         0.75rem;

  /* Radius */
  --r-sm:          12px;
  --r-md:          20px;
  --r-lg:          28px;
  --r-xl:          40px;
  --r-bubble:      32px;
  --r-pill:        999px;

  /* Layout */
  --container:     1160px;
  --container-narrow: 760px;
  --header-h:      88px;
}

/* ============================================================
WooCommerce Subscriptions
============================================================ */
.recurring-totals,
.cart-subtotal.recurring-total,
.order-total.recurring-total,
.shop_table.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout.woocommerce-order-received .woocommerce-order-details .shop_table.order_details + header,
.woocommerce-checkout.woocommerce-order-received .woocommerce-order-details .shop_table.order_details + header + .woocommerce-orders-table--subscriptions {
  display: none!important;
}

/* ===== RESET & BASE ====================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, var(--magenta-soft) 0, transparent 32%),
    radial-gradient(circle at 88% 22%, var(--mint-soft) 0, transparent 28%),
    radial-gradient(circle at 5% 75%, var(--sky-soft) 0, transparent 32%),
    radial-gradient(circle at 95% 88%, var(--gold-soft) 0, transparent 28%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { padding: 0; margin: 0; list-style: none; }

/* ===== UTILS ============================================================== */
.fv-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.fv-container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) {
  .fv-container, .fv-container--narrow { padding: 0 40px; }
}

.fv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.fv-eyebrow__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 3px var(--magenta-soft);
}

/* Doodle wavy underline */
.fv-doodle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.fv-doodle::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.05em;
  height: 0.32em;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 15 1 30 6 T 60 6 T 90 6 T 118 6' fill='none' stroke='%23FF5C9C' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center/100% 100% no-repeat;
  pointer-events: none;
}
.fv-doodle--indigo::after  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 15 1 30 6 T 60 6 T 90 6 T 118 6' fill='none' stroke='%236B4FE0' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fv-doodle--gold::after    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 15 1 30 6 T 60 6 T 90 6 T 118 6' fill='none' stroke='%23FFC845' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fv-doodle--mint::after    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 15 1 30 6 T 60 6 T 90 6 T 118 6' fill='none' stroke='%234ECDC4' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Rainbow text */
.fv-rainbow {
  background: linear-gradient(120deg, var(--indigo) 0%, var(--magenta) 40%, var(--gold) 75%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Confetti dots scatter helper */
.fv-confetti { position: relative; }
.fv-confetti > .fv-dot {
  position: absolute;
  width: var(--s, 10px);
  height: var(--s, 10px);
  border-radius: 50%;
  background: var(--c, var(--magenta));
  opacity: 0.85;
  pointer-events: none;
  animation: floatDot 6s ease-in-out infinite;
}
@keyframes floatDot {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px) rotate(8deg); }
}

/* ===== BUTTONS =========================================================== */
.fv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms;
  text-align: center;
  white-space: nowrap;
}
.fv-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.fv-btn:active { transform: translateY(2px);  box-shadow: 0 2px 0 var(--ink); }

.fv-btn--primary {
  background: var(--magenta);
  color: var(--paper);
}
.fv-btn--primary:hover { background: var(--magenta-dark); }

.fv-btn--indigo  { background: var(--indigo); color: var(--paper); }
.fv-btn--indigo:hover { background: var(--indigo-dark); }

.fv-btn--gold    { background: var(--gold); color: var(--ink); }
.fv-btn--mint    { background: var(--mint); color: var(--ink); }

.fv-btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.fv-btn--ghost:hover {
  background: var(--indigo-soft);
  box-shadow: 0 5px 0 var(--ink);
}

.fv-btn--sm  { padding: 10px 18px; font-size: 0.9rem; box-shadow: 0 3px 0 var(--ink); }
.fv-btn--lg  { padding: 18px 34px; font-size: 1.125rem; }
.fv-btn--xl  { padding: 22px 40px; font-size: 1.25rem; box-shadow: 0 6px 0 var(--ink); }

.fv-btn--block { width: 100%; }

/* ===== HEADER ============================================================ */
.fv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 255, 0.85);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 2px solid var(--line);
}
.fv-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.fv-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.fv-header__logo {
  width: auto;
  height: 64px;
  display: block;
}
@media (min-width: 768px) {
  .fv-header__logo { height: 60px; }
}
.fv-header__nav {
  display: none;
  margin-left: 16px;
  gap: 4px;
  align-items: center;
}
.fv-header__link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 120ms, color 120ms;
}
.fv-header__link:hover { background: var(--indigo-soft); }
.fv-header__link[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.fv-header__actions {
  margin-left: auto;
  display: none;
  gap: 8px;
}
.fv-header__burger {
  margin-left: auto;
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
}
.fv-header__burger span {
  display: block;
  width: 18px; height: 2.5px;
  background: var(--ink);
  border-radius: 999px;
}
.fv-header__drawer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 2px solid var(--line);
  background: var(--bg-mist);
}
.fv-header__drawer[hidden] { display: none; }
.fv-header__drawer a {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.fv-header__drawer a:hover { background: var(--paper); }
.fv-header__drawer .fv-btn { justify-content: center; margin-top: 4px; }

@media (min-width: 960px) {
  .fv-header__nav     { display: flex; }
  .fv-header__actions { display: flex; }
  .fv-header__burger  { display: none; }
  .fv-header__drawer  { display: none !important; }
}

/* ===== HERO ============================================================== */
.fv-hero { position: relative; padding: 56px 0 80px; overflow: hidden; }
.fv-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.fv-hero__copy { position: relative; z-index: 2; }
.fv-hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.98;
  margin: 20px 0 18px;
  letter-spacing: -0.025em;
}
.fv-hero__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--magenta);
}
.fv-hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.fv-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Hero visual: notebook with rotating names */
.fv-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px 12px;
}
.fv-notebook {
  position: relative;
  width: min(380px, 92%);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-bubble);
  box-shadow: var(--shadow-lg);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: rotate(-2.2deg);
  z-index: 2;
}
.fv-notebook::before {
  content: "";
  position: absolute;
  top: 16px; bottom: 16px; left: 18px;
  width: 4px;
  background: repeating-linear-gradient(180deg, var(--magenta) 0 8px, transparent 8px 16px);
  border-radius: 999px;
}
.fv-notebook__tag {
  position: absolute;
  top: -18px; right: 24px;
  background: var(--gold);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(6deg);
}
.fv-notebook__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fv-notebook__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3vw + 0.8rem, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--indigo);
  min-height: 1.2em;
  transition: opacity 220ms ease, transform 220ms ease;
}
.fv-notebook__name.is-out { opacity: 0; transform: translateY(8px); }
.fv-notebook__story {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.4;
  padding-left: 80px;
  min-height: 80px;
}
.fv-notebook__story strong { color: var(--magenta); }

.fv-notebook__head { margin-bottom: 4px; }

.fv-notebook__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 2.5px solid var(--ink);
  overflow: hidden;
  background: linear-gradient(135deg, var(--magenta-soft), var(--gold-soft));
  box-shadow: var(--shadow-md);
}
.fv-notebook__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 260ms ease, transform 320ms ease;
}
.fv-notebook__hero-img.is-out {
  opacity: 0;
  transform: scale(1.04);
}
.fv-notebook__play {
  position: absolute;
  bottom: -16px; left: -14px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--mint);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 4;
  transform: rotate(-6deg);
  animation: pulseRing 2.4s ease-in-out infinite;
}
.fv-notebook__play svg { width: 28px; height: 28px; }
@keyframes pulseRing {
  0%,100% { box-shadow: 0 6px 0 var(--ink), 0 0 0 0 #4ECDC466; }
  50%     { box-shadow: 0 6px 0 var(--ink), 0 0 0 14px #4ECDC400; }
}

/* Floating decorations */
.fv-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.fv-hero__sparkle {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.6rem;
  animation: spin 8s linear infinite;
}

@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes wobble {
  0%,100% { transform: rotate(-3deg) translateY(0); }
  50%     { transform: rotate(3deg) translateY(-6px); }
}

/* Mobile: prima l'immagine, poi la copy */
@media (max-width: 879px) {
  .fv-hero__inner { gap: 32px; }
  .fv-hero__visual { order: -1; }
}

@media (min-width: 880px) {
  .fv-hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .fv-hero { padding: 80px 0 120px; }
}

/* Bottoni full-width su mobile (CTA principali, non i sm/ghost) */
@media (max-width: 640px) {
  .fv-btn--xl,
  .fv-btn--lg {
    width: 100%;
    display: flex;
  }
  .fv-hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* ===== SECTION ATOMS ===================================================== */
.fv-section { padding: 80px 0; position: relative; }
.fv-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.fv-section__title {
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
}
.fv-section__title em { font-style: normal; color: var(--magenta); font-weight: 700; }
.fv-section__lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ===== HOW IT WORKS ====================================================== */
.fv-how { background: var(--bg-mist); }
.fv-how__steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 720px) {
  .fv-how__steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.fv-step {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-bubble);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease;
}
.fv-step:hover { transform: translateY(-6px); }
.fv-step__num {
  position: absolute;
  top: -22px; left: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.fv-step:nth-child(2) .fv-step__num { background: var(--gold); color: var(--ink); }
.fv-step:nth-child(3) .fv-step__num { background: var(--mint); color: var(--ink); }
.fv-step__icon {
  width: 64px; height: 64px;
  margin: 8px 0 16px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}
.fv-step__title { font-size: 1.35rem; margin-bottom: 8px; }
.fv-step__desc  { color: var(--ink-soft); font-size: 0.98rem; }

/* Mobile: step centrati e icone più grandi */
@media (max-width: 719px) {
  .fv-step {
    text-align: center;
    padding: 40px 24px 28px;
  }
  .fv-step__num {
    left: 50%;
    transform: translateX(-50%);
  }
  .fv-step__icon {
    width: 96px;
    height: 96px;
    margin: 12px auto 18px;
    font-size: 4rem;
  }
}
.fv-step__arrow {
  display: none;
  position: absolute;
  top: 50%;
  right: -36px;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
  color: var(--ink-mute);
}
@media (min-width: 720px) {
  .fv-step__arrow { display: block; }
}

/* ===== THEMES GRID ======================================================= */
.fv-themes__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .fv-themes__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 880px) {
  .fv-themes__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.fv-theme {
  position: relative;
  padding: 26px 22px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-bubble);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}
.fv-theme::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--theme-bg, var(--magenta-soft));
  z-index: 0;
}
.fv-theme:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--shadow-pop);
}
.fv-theme__emoji {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 0 #1B1D3A26);
}
.fv-theme__name {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.fv-theme__hint {
  position: relative; z-index: 1;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ===== DEMO PLAYER STRIP ================================================= */
.fv-demo { background: var(--bg-pink); border-block: 3px solid var(--ink); }
.fv-demo__inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .fv-demo__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.fv-demo__card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-bubble);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.fv-demo__cover {
  aspect-ratio: 16/9;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--indigo), var(--magenta) 60%, var(--gold));
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.fv-demo__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, #ffffff40 0 2%, transparent 3%),
    radial-gradient(circle at 70% 70%, #ffffff30 0 1.5%, transparent 2%),
    radial-gradient(circle at 85% 25%, #ffffff40 0 1%, transparent 2%);
  pointer-events: none;
}
.fv-demo__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.fv-demo__meta { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 16px; }
.fv-demo__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fv-demo__play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--paper);
  display: grid; place-items: center;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 120ms;
}
.fv-demo__play:hover { transform: translateY(-2px); }
.fv-demo__play.is-playing { background: var(--gold); color: var(--ink); }
.fv-demo__track {
  flex: 1;
  height: 10px;
  padding: 0;
  background: var(--indigo-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.fv-demo__track:hover .fv-demo__progress { filter: brightness(1.08); }
.fv-demo__progress {
  position: absolute;
  inset: 0;
  width: 32%;
  background: linear-gradient(90deg, var(--indigo), var(--magenta));
  border-radius: 999px;
  transition: width 200ms;
}
.fv-demo__time {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-mute);
  min-width: 70px;
  text-align: right;
}

.fv-demo__list { display: flex; flex-direction: column; gap: 14px; }
.fv-demo__item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms, background 150ms;
  cursor: pointer;
}
.fv-demo__item:hover { transform: translateX(4px); background: var(--gold-soft); }
.fv-demo__item.is-active { background: var(--gold-soft); border-color: var(--ink); }
.fv-demo__item-cover {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.fv-demo__item-meta { flex: 1; min-width: 0; }
.fv-demo__item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.fv-demo__item-tag { font-size: 0.82rem; color: var(--ink-mute); }
.fv-demo__item-dur {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

/* ===== WHY / PROMISES ==================================================== */
.fv-why__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .fv-why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .fv-why__grid { grid-template-columns: repeat(4, 1fr); }
}
.fv-promise {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-bubble);
  padding: 28px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.fv-promise__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
  box-shadow: 0 3px 0 var(--ink);
}
.fv-promise:nth-child(1) .fv-promise__icon { background: var(--magenta); color: var(--paper); }
.fv-promise:nth-child(2) .fv-promise__icon { background: var(--gold); }
.fv-promise:nth-child(3) .fv-promise__icon { background: var(--mint); }
.fv-promise:nth-child(4) .fv-promise__icon { background: var(--sky); }
.fv-promise__title { font-size: 1.2rem; margin-bottom: 6px; }
.fv-promise__desc  { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== TESTIMONIALS ====================================================== */
.fv-testi { background: var(--bg-mint); border-block: 3px solid var(--ink); }
.fv-testi__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .fv-testi__grid { grid-template-columns: repeat(3, 1fr); }
}
.fv-bubble {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-bubble);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
}
.fv-bubble::after {
  content: "";
  position: absolute;
  bottom: -16px; left: 32px;
  width: 28px; height: 28px;
  background: var(--paper);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}
.fv-bubble__stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; font-size: 1.1rem; }
.fv-bubble__quote { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.55; }
.fv-bubble__author {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
}
.fv-bubble__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  border: 2.5px solid var(--ink);
}
.fv-bubble__name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.fv-bubble__role { font-size: 0.82rem; color: var(--ink-mute); }

/* ===== PRICING (single pay-per-story card) =============================== */
.fv-price-single {
  display: grid;
  place-items: center;
}
.fv-price-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-bubble);
  padding: 44px 36px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  background-image:
    radial-gradient(circle at 88% 12%, var(--gold-soft) 0, transparent 30%),
    radial-gradient(circle at 8% 92%, var(--magenta-soft) 0, transparent 32%);
}
.fv-price-card__badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  white-space: nowrap;
}
.fv-price-card__amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 4px;
  color: var(--indigo);
}
.fv-price-card__currency {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.2rem;
  margin-top: 0.4em;
}
.fv-price-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 8vw + 1rem, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.fv-price-card__unit {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.fv-price-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 28px;
  text-align: left;
}
.fv-price-card__list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.96rem; color: var(--ink-soft);
}
.fv-price-card__list li::before {
  content: "✓";
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.88rem;
  flex-shrink: 0;
  border: 2px solid var(--ink);
}
.fv-price-card__foot {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* ===== FINAL CTA ========================================================= */
.fv-cta { padding: 60px 0 100px; }
.fv-cta__card {
  position: relative;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--magenta) 100%);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  padding: 56px 40px;
  text-align: center;
  color: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.fv-cta__card::before, .fv-cta__card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.fv-cta__card::before {
  top: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, #ffffff20 0%, transparent 70%);
}
.fv-cta__card::after {
  bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, #FFC84540 0%, transparent 70%);
}
.fv-cta__title {
  font-size: clamp(2rem, 3.5vw + 1rem, 3.4rem);
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--paper);
}
.fv-cta__title em { font-style: normal; color: var(--gold); font-weight: 700; }
.fv-cta__lead { font-size: var(--fs-lead); opacity: 0.92; margin-bottom: 32px; max-width: 580px; margin-inline: auto; }
.fv-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ============================================================ */
.fv-footer {
  position: relative;
  background: var(--ink);
  color: #C8C9E0;
  padding: 80px 0 32px;
  margin-top: 80px;
}
.fv-footer__cloud {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 80px;
  color: var(--bg);
  transform: translateY(-99%);
}
.fv-footer__cloud svg { width: 100%; height: 100%; display: block; }
.fv-footer__inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .fv-footer__inner { grid-template-columns: 1.4fr 2fr; gap: 64px; } }
.fv-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.fv-footer__logo {
    width: 100%;
    height: auto;
    display: block;
    max-width: 220px;
}
.fv-footer__tagline { color: #C8C9E0; font-size: 0.95rem; }
.fv-footer__cols {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.fv-footer__col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
}
.fv-footer__col li { margin-bottom: 8px; }
.fv-footer__col a {
  color: #C8C9E0;
  font-size: 0.92rem;
  transition: color 120ms;
}
.fv-footer__col a:hover { color: var(--gold); }
.fv-footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #ffffff14;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #8A8BA8;
}
.fv-footer__love { color: var(--gold); }

/* ==========================================================================
   GENERATOR PAGE
   ========================================================================== */
.fv-creator { padding: 56px 0 80px; }
.fv-creator__hero {
  text-align: center;
  margin-bottom: 48px;
}
.fv-creator__title {
  font-size: var(--fs-display);
  margin: 18px 0 12px;
  letter-spacing: -0.025em;
}
.fv-creator__title em { font-style: normal; color: var(--magenta); font-weight: 700; }
.fv-creator__lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}
.fv-creator__quota {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: 0 3px 0 var(--ink);
}
.fv-creator__quota strong { color: var(--indigo); }
.fv-creator__quota-icon { font-size: 1.1rem; line-height: 1; }
.fv-creator__quota-sep  { color: var(--ink-mute); }
.fv-creator__quota-note {
  font-weight: 500;
  color: var(--ink-mute);
  font-size: 0.86rem;
}
@media (max-width: 520px) {
  .fv-creator__quota-sep, .fv-creator__quota-note { display: none; }
}

/* Form sections */
.fv-form { display: flex; flex-direction: column; gap: 28px; }
.fv-form[hidden] { display: none; }
.fv-fs {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-bubble);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.fv-fs__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.fv-fs__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.fv-fs:nth-of-type(2) .fv-fs__num { background: var(--magenta); }
.fv-fs:nth-of-type(3) .fv-fs__num { background: var(--gold); color: var(--ink); }
.fv-fs:nth-of-type(4) .fv-fs__num { background: var(--mint); color: var(--ink); }
.fv-fs__title {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.fv-fs__title em { font-style: normal; color: var(--magenta); font-weight: 700; }
.fv-fs__hint { color: var(--ink-mute); font-size: 0.92rem; }

/* Name input — hero of creator */
.fv-name-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .fv-name-row { grid-template-columns: 1fr auto; }
}
.fv-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fv-name__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fv-name__input {
  width: 100%;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw + 0.6rem, 2.4rem);
  padding: 14px 20px;
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--bg-cream);
  color: var(--indigo);
  outline: none;
  letter-spacing: -0.01em;
  transition: background 150ms, box-shadow 150ms;
}
.fv-name__input:focus {
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--magenta-soft);
}
.fv-name__input::placeholder { color: var(--ink-mute); opacity: 0.55; }

.fv-age {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}
.fv-age__select {
  width: 100%;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 14px 20px;
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--bg-cream);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%231B1D3A'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.fv-add-kid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--indigo);
  background: var(--indigo-soft);
  border: 2px dashed var(--indigo);
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.fv-add-kid:hover { background: var(--indigo); color: var(--paper); }

/* Theme grid (in creator) */
.fv-theme-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.fv-theme-chip {
  position: relative;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--bg-card);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms, background 150ms;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fv-theme-chip:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--ink); }
.fv-theme-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fv-theme-chip__emoji { font-size: 2rem; }
.fv-theme-chip__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.fv-theme-chip:has(input:checked) {
  background: var(--gold-soft);
  box-shadow: 0 5px 0 var(--ink), inset 0 0 0 3px var(--gold);
  transform: translateY(-3px);
}
.fv-theme-chip__check {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--paper);
  display: none;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.fv-theme-chip:has(input:checked) .fv-theme-chip__check { display: grid; }

/* Detail textarea */
.fv-textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px 18px;
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: background 150ms, box-shadow 150ms;
}
.fv-textarea:focus {
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--magenta-soft);
}
.fv-textarea-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.fv-inspire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--magenta-soft);
  color: var(--magenta-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px dashed var(--magenta);
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.fv-inspire:hover { background: var(--magenta); color: var(--paper); border-style: solid; }
.fv-counter { font-size: 0.85rem; color: var(--ink-mute); font-family: var(--font-display); }

/* Options pills (tone / duration / voice) */
.fv-options { display: flex; flex-wrap: wrap; gap: 10px; }

/* Mobile: griglia 2 colonne uguali per tono / durata / voce */
@media (max-width: 719px) {
  .fv-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .fv-pill {
    width: 100%;
    min-width: 0;
    display: flex;
  }
}
.fv-pill {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 120ms, box-shadow 120ms, background 120ms;
  min-width: 100px;
}
.fv-pill input { position: absolute; opacity: 0; pointer-events: none; }
.fv-pill__icon { font-size: 1.4rem; }
.fv-pill__sub  { font-size: 0.75rem; color: var(--ink-mute); font-weight: 500; }
.fv-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.fv-pill:has(input:checked) {
  background: var(--indigo);
  color: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
  transform: translateY(-2px);
}
.fv-pill:has(input:checked) .fv-pill__sub { color: #ffffffcc; }

/* Voice preview: pill un po' più larga + bottone play in basso */
.fv-pill--voice { padding-bottom: 12px; min-width: 130px; }
.fv-voice-preview {
  appearance: none;
  margin-top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--gold, #FFC857);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 120ms, box-shadow 120ms, background 120ms;
}
.fv-voice-preview:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.fv-voice-preview:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.fv-voice-preview.is-playing { background: var(--magenta); color: var(--paper); }
.fv-voice-preview__icon { transform: translateY(-1px); }
.fv-pill--voice:has(input:checked) .fv-voice-preview { border-color: var(--paper); box-shadow: 0 2px 0 #0003; }

.fv-fs__legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fv-fs__legend-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fv-creator__submit-row {
  text-align: center;
  margin-top: 8px;
}
.fv-creator__submit-row .fv-btn { min-width: 260px; }
.fv-creator__submit-hint {
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 0.88rem;
}

/* Creator preview ribbon */
.fv-preview {
  background: linear-gradient(135deg, var(--indigo-soft), var(--magenta-soft));
  border: 2.5px dashed var(--indigo);
  border-radius: var(--r-bubble);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.fv-preview__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1.6rem;
}
.fv-preview__text { font-size: 1rem; color: var(--ink); }
.fv-preview__text strong { color: var(--indigo); }

/* Hidden but exists for screen readers */
.fv-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;
}

/* ===== IMAGE TREATMENTS (illustrazioni reali al posto degli emoji) ====== */

/* Demo player cover principale (16:9) — illustrazione storia */
.fv-demo__cover { padding: 0; font-size: 0; }
.fv-demo__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.fv-demo__cover::after { z-index: 2; }

/* Demo list — thumbnail piccola con immagine */
.fv-demo__item-cover {
  overflow: hidden;
  padding: 0;
  background: var(--paper);
}
.fv-demo__item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Why Favolandia — ritratti bambini al posto delle emoji */
.fv-promise__icon--photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: var(--paper);
}
.fv-promise__icon--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Mantiene i bordi colorati delle promise card su variante --photo */
.fv-promise:nth-child(1) .fv-promise__icon--photo { background: var(--magenta-soft); }
.fv-promise:nth-child(2) .fv-promise__icon--photo { background: var(--gold-soft); }
.fv-promise:nth-child(3) .fv-promise__icon--photo { background: var(--mint-soft); }
.fv-promise:nth-child(4) .fv-promise__icon--photo { background: var(--sky-soft); }

/* Mobile: promise card centrate, immagine più grande */
@media (max-width: 719px) {
  .fv-price-card {
    padding: 44px 20px 32px;
  }
  .fv-promise {
    text-align: center;
    padding: 32px 24px;
  }
  .fv-promise__icon--photo {
    width: 128px;
    height: 128px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }
  .fv-btn--xl {
    padding: 18px 24px;
  }
}

/* CTA finale con immagine laterale */
.fv-cta__card--with-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
}
.fv-cta__card--with-image .fv-cta__image {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
  object-fit: contain;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.fv-cta__card--with-image .fv-cta__body { position: relative; z-index: 1; }
@media (min-width: 760px) {
  .fv-cta__card--with-image {
    grid-template-columns: 280px 1fr;
    text-align: left;
    gap: 48px;
    padding: 56px 56px;
  }
  .fv-cta__card--with-image .fv-cta__image {
    width: 280px;
    height: 280px;
    max-width: 100%;
    margin: 0;
  }
  .fv-cta__card--with-image .fv-cta__lead { margin-inline: 0; }
  .fv-cta__card--with-image .fv-cta__actions { justify-content: flex-start; }
}

/* Form feedback (pagina crea) */
.fv-form__feedback {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.45;
  border: 2px solid transparent;
}
.fv-form__feedback.is-ok {
  background: var(--mint-soft, #E2F7F2);
  border-color: var(--mint, #57C8B5);
  color: var(--ink, #2A2740);
}
.fv-form__feedback.is-error {
  background: var(--magenta-soft, #FCE4EE);
  border-color: var(--magenta, #E94B89);
  color: var(--ink, #2A2740);
}
.fv-form__feedback.is-warn {
  background: var(--gold-soft, #FFF1C8);
  border-color: var(--gold, #E5B43E);
  color: var(--ink, #2A2740);
}

/* ===== HEADER LOGO — defensive sizing (WooCommerce CSS hardening) =========== */
.fv-header .fv-header__logo {
  width: auto !important;
  height: 64px !important;
  max-height: 64px !important;
  display: block !important;
}
@media (min-width: 768px) {
  .fv-header .fv-header__logo {
    height: 60px !important;
    max-height: 60px !important;
  }
}

/* ===== PAGE GENERIC ========================================================= */
.fv-page__article {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow-card);
}
.fv-page--wc .fv-page__article { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* ===== WOOCOMMERCE BRANDING ================================================= */
.woocommerce, .woocommerce-page {
  font-family: var(--font-body);
  color: var(--ink);
}

/* My Account: layout 2 colonne (override WC float-based layout) */
.woocommerce-account .woocommerce {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  gap: 32px;
  align-items: start;
}
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { content: none !important; display: none !important; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  min-width: 0;
}
@media (max-width: 720px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

/* My Account navigation */
.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.woocommerce-MyAccount-navigation li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-MyAccount-navigation li::before,
.woocommerce-MyAccount-navigation li::after { content: none !important; display: none !important; }
.woocommerce .woocommerce-MyAccount-navigation li a,
.woocommerce-MyAccount-navigation li a {
  display: block !important;
  padding: 12px 18px !important;
  border: 2px solid var(--ink) !important;
  border-radius: var(--r-pill) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  text-align: left !important;
  box-shadow: 0 3px 0 var(--ink) !important;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms;
}
.woocommerce .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ink) !important;
  color: var(--ink) !important;
  text-decoration: none !important;
}
.woocommerce .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--magenta) !important;
  color: var(--paper) !important;
}
@media (max-width: 720px) {
  .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .woocommerce-MyAccount-navigation li { flex: 1 1 calc(50% - 6px); }
  .woocommerce-MyAccount-navigation li a { text-align: center !important; padding: 10px 12px !important; font-size: 0.88rem !important; }
}

/* My Account content area */
.woocommerce-MyAccount-content {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}
.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3 {
  margin-top: 0;
  color: var(--ink);
}

/* Links inside WC content (esclude nav pill — gestiti sopra).
   Scoped al main, NON al body — altrimenti l'header viene sottolineato. */
.woocommerce-MyAccount-content a:not(.button):not(.fv-btn),
.fv-page--wc main .woocommerce a:not(.button):not(.fv-btn) {
  color: var(--magenta);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.woocommerce-MyAccount-content a:not(.button):not(.fv-btn):hover,
.fv-page--wc main .woocommerce a:not(.button):not(.fv-btn):hover { color: var(--magenta-dark); }

/* WC buttons → brand pill */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="submit"],
.woocommerce-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--paper);
  background: var(--magenta);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--magenta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}
.woocommerce .button.alt { background: var(--indigo); }
.woocommerce .button.alt:hover { background: var(--indigo-dark); }

/* WC form inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 120ms;
}

/* My Account logged-out: form di login / lost-password centrato */
.woocommerce-account:not(.logged-in) .woocommerce {
  display: block !important;
  grid-template-columns: none !important;
  max-width: 480px;
  margin: 0 auto;
}
/* Nasconde il doppio titolo "Accedi" — la pagina ha già l'h1 */
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account:not(.logged-in) .u-columns .col-1 > h2,
.woocommerce-account:not(.logged-in) .u-columns .col-2 > h2 {
  display: none;
}
.woocommerce-account .woocommerce h2:has(+ form.lost_reset_password),
.woocommerce-account .woocommerce h2 + form.lost_reset_password,
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce form.lost_reset_password {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-card);
  margin: 0 auto 24px;
}
.woocommerce form.woocommerce-form-login .form-row,
.woocommerce form.woocommerce-form-register .form-row,
.woocommerce form.lost_reset_password .form-row {
  margin-bottom: 16px;
}

/* Override float:left/right e width 47% di WC sui form-row-first/last nei form di auth */
.woocommerce form.woocommerce-form-login .form-row-first,
.woocommerce form.woocommerce-form-login .form-row-last,
.woocommerce form.woocommerce-form-register .form-row-first,
.woocommerce form.woocommerce-form-register .form-row-last,
.woocommerce form.lost_reset_password .form-row-first,
.woocommerce form.lost_reset_password .form-row-last,
.woocommerce form.woocommerce-EditAccountForm .form-row-first,
.woocommerce form.woocommerce-EditAccountForm .form-row-last {
  float: none !important;
  width: 100% !important;
  clear: both;
}
.woocommerce form.woocommerce-form-login .lost_password,
.woocommerce form.woocommerce-form-login .lost_password a {
  text-align: center;
  display: block;
  margin-top: 12px;
}
.woocommerce form.woocommerce-form-login label.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  font-weight: 500;
  cursor: pointer;
}

/* col2-set su login page: stack quando c'è solo login, side-by-side se anche register */
.woocommerce-account:not(.logged-in) .u-columns.col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .woocommerce-account:not(.logged-in) .u-columns.col2-set:has(.col-2) {
    grid-template-columns: 1fr 1fr;
  }
}
.woocommerce-account:not(.logged-in) .u-columns.col2-set .col-1,
.woocommerce-account:not(.logged-in) .u-columns.col2-set .col-2 {
  width: auto !important;
  float: none !important;
}

/* WC fieldsets (es. blocco "Modifica password") */
.woocommerce fieldset,
.woocommerce-page fieldset {
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px 24px;
  margin: 24px 0;
  background: var(--bg-mist, #FDF6FF);
}
.woocommerce fieldset legend,
.woocommerce-page fieldset legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  margin-left: -4px;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--magenta);
}
.woocommerce form .form-row label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

/* WC tables */
.woocommerce table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.woocommerce table.shop_table thead th {
  background: var(--indigo-soft);
  font-family: var(--font-display);
  font-weight: 600;
}
.woocommerce table.shop_table tr:last-child td { border-bottom: 0; }

/* Notices — padding extra-left per l'icona ::before di WC */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  border-radius: var(--r-md);
  padding: 16px 22px 16px 56px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  list-style: none;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
}
.woocommerce-message { background: var(--mint-soft); border-color: var(--mint); }
.woocommerce-info    { background: var(--sky-soft); border-color: var(--sky); }
.woocommerce-error   { background: var(--magenta-soft); border-color: var(--magenta); }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button { float: right; }

/* Checkout layout */
.woocommerce-checkout #customer_details {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}
.woocommerce-checkout #order_review_heading { padding-bottom: 0; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin: 0; }
.woocommerce-checkout #order_review { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Checkout → single column: collassa col2-set e tutti i form-row-first/last */
.woocommerce-checkout .col2-set,
.woocommerce-checkout .u-columns {
  display: block !important;
  width: 100% !important;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2,
.woocommerce-checkout .u-columns .u-column1,
.woocommerce-checkout .u-columns .u-column2 {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-checkout form.checkout .form-row-first,
.woocommerce-checkout form.checkout .form-row-last,
.woocommerce-checkout form.woocommerce-form-login .form-row-first,
.woocommerce-checkout form.woocommerce-form-login .form-row-last {
  float: none !important;
  width: 100% !important;
  clear: both;
}

/* ============================================================
   Generation progress (sostituisce il form al submit)
   ============================================================ */
.fv-genprogress {
  margin: 32px auto 0;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px);
  background: linear-gradient(135deg, #FFE8F2 0%, #EDE7FF 55%, #D9F0FF 100%);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl, 28px);
  box-shadow: 0 8px 0 var(--ink);
  position: relative;
  overflow: hidden;
}
.fv-genprogress__inner { max-width: 560px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

/* Stage centrale: emoji che pulsa + scintille orbitanti */
.fv-genprogress__stage {
  width: 140px; height: 140px;
  margin: 0 auto 18px;
  position: relative;
  display: grid; place-items: center;
}
.fv-genprogress__emoji {
  font-size: 84px;
  line-height: 1;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.15));
  animation: fv-gen-bob 2.2s ease-in-out infinite;
}
@keyframes fv-gen-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.05); }
}
.fv-genprogress__sparks {
  position: absolute; inset: 0;
  pointer-events: none;
  animation: fv-gen-rotate 14s linear infinite;
}
.fv-genprogress__sparks span {
  position: absolute;
  font-size: 18px;
  color: var(--gold, #FFC857);
  text-shadow: 0 2px 0 rgba(0,0,0,0.12);
}
.fv-genprogress__sparks span:nth-child(1) { top: 6%;  left: 50%; transform: translate(-50%,0); }
.fv-genprogress__sparks span:nth-child(2) { top: 50%; right: 4%; transform: translate(0,-50%); }
.fv-genprogress__sparks span:nth-child(3) { bottom: 6%; left: 50%; transform: translate(-50%,0); }
.fv-genprogress__sparks span:nth-child(4) { top: 50%; left: 4%;  transform: translate(0,-50%); }
.fv-genprogress__sparks span:nth-child(5) { top: 14%; left: 14%; }
@keyframes fv-gen-rotate {
  to { transform: rotate(360deg); }
}

.fv-genprogress__title {
  font-family: var(--font-display, Fredoka, system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.15;
}
.fv-genprogress__subtitle {
  font-size: 1rem;
  color: var(--ink-mute, #5b5f7a);
  margin: 0 0 26px;
}

/* Barra progress */
.fv-genprogress__bar {
  height: 14px;
  width: 100%;
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: inset 0 2px 0 rgba(0,0,0,0.05);
}
.fv-genprogress__bar-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--violet, #6E45E2) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 600ms cubic-bezier(.22,.61,.36,1);
  animation: fv-gen-shimmer 2.4s linear infinite;
}
@keyframes fv-gen-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}

/* Step orizzontali */
.fv-genprogress__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  counter-reset: fvstep;
}
.fv-genprogress__steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-mute, #5b5f7a);
  transition: color 240ms;
}
.fv-genprogress__step-dot {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--paper, #fff);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 20px;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 240ms, background 240ms, box-shadow 240ms;
}
.fv-genprogress__step-label {
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

/* Connettori orizzontali tra step (escluso ultimo) */
.fv-genprogress__steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px; left: calc(50% + 26px);
  right: calc(-50% + 26px);
  height: 2px;
  background: var(--ink);
  opacity: 0.18;
  z-index: -1;
}

/* Step done */
.fv-genprogress__steps li.is-done .fv-genprogress__step-dot {
  background: #00C896;
  color: #fff;
  border-color: var(--ink);
}
.fv-genprogress__steps li.is-done .fv-genprogress__step-dot::before {
  content: '✓';
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.fv-genprogress__steps li.is-done .fv-genprogress__step-dot > * { display: none; }
.fv-genprogress__steps li.is-done { color: var(--ink); }

/* Step attivo */
.fv-genprogress__steps li.is-active .fv-genprogress__step-dot {
  background: var(--magenta);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 3px 0 var(--ink), 0 0 0 4px rgba(233,75,137,0.18);
  animation: fv-gen-pulse 1.4s ease-in-out infinite;
}
.fv-genprogress__steps li.is-active { color: var(--ink); font-weight: 700; }
@keyframes fv-gen-pulse {
  0%, 100% { box-shadow: 0 3px 0 var(--ink), 0 0 0 4px rgba(233,75,137,0.18); }
  50%      { box-shadow: 0 3px 0 var(--ink), 0 0 0 10px rgba(233,75,137,0.05); }
}

/* Stato ready: tutti i dot diventano verdi + festa */
.fv-genprogress.is-ready .fv-genprogress__steps li .fv-genprogress__step-dot {
  background: #00C896;
  color: #fff;
}
.fv-genprogress.is-ready .fv-genprogress__steps li:last-child .fv-genprogress__step-dot {
  animation: fv-gen-celebrate 600ms ease-out 1;
}
@keyframes fv-gen-celebrate {
  0%   { transform: scale(0.7) rotate(-10deg); }
  60%  { transform: scale(1.25) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

.fv-genprogress__timer {
  font-family: var(--font-display, Fredoka, system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-mute, #5b5f7a);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.fv-genprogress__hint {
  margin: 0;
  color: var(--ink-mute, #5b5f7a);
  font-size: 0.95rem;
  min-height: 1.4em;
}

.fv-genprogress__error {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.85);
  border: 2px solid #c00;
  border-radius: 14px;
  color: #900;
}
.fv-genprogress__error p { margin: 0 0 12px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .fv-genprogress__emoji,
  .fv-genprogress__sparks,
  .fv-genprogress__bar-fill,
  .fv-genprogress__steps li.is-active .fv-genprogress__step-dot { animation: none; }
}

/* ============================================================
   404
   ============================================================ */
.fv-404 .fv-eyebrow { margin-inline: auto; }
.fv-404__number {
  font-family: var(--font-display, Fredoka, system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(120px, 22vw, 240px);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--violet, #6E45E2) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin: 24px 0 8px;
  user-select: none;
}
.fv-404__moon {
  display: inline-block;
  font-size: 0.55em;
  vertical-align: 0.18em;
  -webkit-text-fill-color: initial;
  animation: fv-404-float 4s ease-in-out infinite;
}
@keyframes fv-404-float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-10px) rotate(6deg); }
}
.fv-404__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
@media (prefers-reduced-motion: reduce) {
  .fv-404__moon { animation: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
