/* ============================================================
   MIA & MAX — MAIN STYLESHEET
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --pink:    #FF6B9D;
  --blue:    #4ECDC4;
  --yellow:  #FFE14D;
  --purple:  #A855F7;
  --orange:  #FF9F43;
  --dark:    #1a1040;
  --dark2:   #0d0820;
  --light:   #f0f4ff;
  --white:   #ffffff;
  --text:    #2d2d4e;
  --text-light: #6b7280;

  --shadow:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius:  20px;
  --radius-sm: 12px;

  --font-head: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;

  --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utility ---------- */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-fluid { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.highlight {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(50px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
  box-shadow: 0 6px 24px rgba(255,107,157,0.45);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(255,107,157,0.55);
}

.btn-secondary {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-3px) scale(1.04);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: var(--dark2);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  border: 2px solid rgba(255,255,255,0.15);
}
.btn-store i { font-size: 1.6rem; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store span small { font-size: 0.7rem; font-weight: 400; opacity: 0.75; }
.btn-store:hover { background: rgba(255,255,255,0.1); border-color: var(--blue); transform: translateY(-2px); }
.btn-store-android { background: #2ea84b; }
.btn-store-android:hover { background: #25923f; }

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 56px; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- Wave Dividers ---------- */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; height: 80px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(12px);
  padding: 8px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-img {
  height: 58px;
  width: auto;
  transition: var(--transition-fast);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}
.navbar.scrolled .nav-logo-img { height: 46px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--white);
  transition: var(--transition-fast);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.navbar.scrolled .nav-link { color: var(--dark); text-shadow: none; }
.nav-link:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.navbar.scrolled .nav-link:hover { background: var(--light); }
.nav-admin {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white) !important;
  text-shadow: none !important;
}
.nav-admin:hover { opacity: 0.9; background: linear-gradient(135deg, var(--pink), var(--purple)) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.navbar.scrolled .nav-toggle span { background: var(--dark); }

/* ============================================================
   HERO — Video background with Ken Burns zoom
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #1a1040; /* fallback while video loads */
}

/* ── Video BG ── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1.0);   }
  100% { transform: scale(1.14);  }
}

/* ── Dark gradient overlay ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(10, 5, 30, 0.78) 0%,
    rgba(20, 10, 60, 0.52) 45%,
    rgba(10, 5, 30, 0.82) 100%
  );
}

/* ── 3-column grid layout ── */
.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: flex-end;
  padding-bottom: 80px; /* room for wave */
}

.hero-col {
  display: flex;
  align-items: flex-end;
}
.hero-col-left  { justify-content: flex-start; padding-left: 2vw; }
.hero-col-right { justify-content: flex-end;   padding-right: 2vw; }
.hero-col-center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 56px;
  align-self: center;
}

/* ── Characters ── */
.hero-char {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
  pointer-events: none;
  will-change: transform;
  display: block;
}
.hero-mia {
  height: clamp(220px, 36vw, 520px);
  animation: floatMia 4s ease-in-out infinite;
  transform-origin: bottom center;
}
.hero-max {
  height: clamp(200px, 34vw, 490px);
  animation: floatMax 4.5s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes floatMia {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-22px) rotate(1deg); }
}
@keyframes floatMax {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50%       { transform: translateY(-18px) rotate(-1deg); }
}

/* ── Hero content ── */
.hero-tagline-img {
  height: clamp(38px, 6vw, 72px);
  width: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.5));
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  max-width: 420px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-badge i { color: var(--yellow); }

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ── Hero responsive ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-items: center;
    padding-bottom: 80px;
  }
  .hero-col-left  { justify-content: flex-start; order: 2; padding-left: 0; }
  .hero-col-center { order: 1; padding: 100px 24px 20px; }
  .hero-col-right { justify-content: flex-end;   order: 3; padding-right: 0; }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-col-left,
  .hero-col-right { display: none; } /* nascondi personaggi su schermi piccoli per leggibilità */
  .hero-col-center { width: 100%; }
}

@media (max-width: 600px) {
  .hero-tagline-img { height: clamp(30px, 10vw, 52px); margin-bottom: 20px; }
  .hero-subtitle    { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-col-center  { padding: 110px 20px 20px; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  position: relative;
  padding: 100px 0 140px;
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(168,85,247,0.12);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(168,85,247,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  border-radius: var(--radius);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(168,85,247,0.18);
}
.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
  animation: iconBounce 2.5s ease-in-out infinite;
}
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.3s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.6s; }
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.feature-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feature-desc {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.65;
}

/* ============================================================
   BOOKS SECTION
   ============================================================ */
.books-section {
  position: relative;
  padding: 100px 0 140px;
  background: var(--light);
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

/* Book Card */
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.book-card:hover { box-shadow: var(--shadow-lg); }

.book-cover-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #f0e7ff);
}
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.book-card:hover .book-cover-img { transform: scale(1.05); }

.book-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
}
.book-placeholder-icon {
  font-size: 5rem;
  animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.book-placeholder-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.book-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 2;
}

.book-body {
  padding: 24px;
}
.book-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.25;
}
.book-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  opacity: 0.8;
}
.book-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-meta {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.book-meta span { display: flex; align-items: center; gap: 4px; }
.book-meta i { font-size: 0.75rem; }

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.book-price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}
.book-cta {
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  transition: var(--transition);
}
.book-cta:hover { transform: scale(1.05); opacity: 0.9; }

/* ============================================================
   AR SECTION
   ============================================================ */
.ar-section {
  position: relative;
  padding: 100px 0 140px;
  background: linear-gradient(135deg, #1a1040 0%, #2d1b6e 60%, #0d1b4e 100%);
  overflow: hidden;
}
.ar-bg-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ar-star {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.6;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 0.9; transform: scale(1.2); }
}

.ar-title  { color: var(--white) !important; }
.ar-subtitle { color: rgba(255,255,255,0.7) !important; }

.ar-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 72px;
}
.ar-step {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ar-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--yellow));
  border-radius: var(--radius) var(--radius) 0 0;
}
.ar-step:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-6px);
}
.ar-step-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.ar-step-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}
.ar-step-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.ar-step-desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ar-app-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 48px;
}
.ar-app-text h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.ar-app-text p { color: rgba(255,255,255,0.75); line-height: 1.6; }
.ar-app-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.ar-qr-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.ar-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ar-qr-img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.ar-qr-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  position: relative;
  padding: 100px 0 140px;
  background: var(--white);
}
.video-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark2);
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
}
.promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,16,64,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 5;
}
.video-overlay.hidden { display: none; }
.video-overlay:hover { background: rgba(26,16,64,0.35); }
.video-play-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(255,107,157,0.5);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  padding-left: 6px;
}
.video-play-btn:hover { transform: scale(1.12); box-shadow: 0 12px 40px rgba(255,107,157,0.65); }
.video-overlay-text {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ============================================================
   STORE LOCATOR
   ============================================================ */
.stores-section {
  position: relative;
  padding: 100px 0 140px;
  background: var(--light);
}
.store-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.store-filter-bar label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}
.region-select {
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid rgba(168,85,247,0.2);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
  outline: none;
  min-width: 200px;
}
.region-select:focus { border-color: var(--purple); }
.store-count {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

.store-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  height: 520px;
}
.store-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
}
.store-list::-webkit-scrollbar { width: 6px; }
.store-list::-webkit-scrollbar-track { background: transparent; }
.store-list::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 3px; }

.store-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.store-item:hover, .store-item.active {
  border-color: var(--purple);
  box-shadow: 0 4px 16px rgba(168,85,247,0.15);
}
.store-item-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.store-item-addr {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 6px;
}
.store-item-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 600;
}
.store-item-meta a { color: var(--blue); text-decoration: underline; }
.store-region-tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(168,85,247,0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
#map {
  width: 100%;
  height: 100%;
  touch-action: pan-x pan-y;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-light);
  line-height: 1;
  z-index: 10;
  transition: color 0.2s, transform 0.2s;
}
.modal-close:hover { color: var(--dark); transform: rotate(90deg); }

.modal-cover-wrap {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e0e7ff, #f0e7ff);
  overflow: hidden;
}
.modal-cover-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.modal-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.modal-body { padding: 32px; }
.modal-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.modal-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  opacity: 0.75;
}
.modal-desc {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}
.modal-features-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.modal-features-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.modal-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.modal-features-list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--light);
}
.modal-price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
}
.modal-meta-info { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section {
  position: relative;
  padding: 100px 0 120px;
  background: #f9f0ff;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.shop-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(168,85,247,0.10);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(168,85,247,0.18);
}
.shop-img-wrap {
  position: relative;
  background: #f3e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.shop-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}
.shop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.shop-badge--blue  { background: linear-gradient(135deg, #4ECDC4, #45B7D1); }
.shop-badge--gray  { background: linear-gradient(135deg, #6b7280, #9ca3af); }
.shop-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.shop-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}
.shop-desc {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.shop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.shop-price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.shop-btn {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.shop-btn:hover { opacity: 0.88; transform: scale(1.04); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: linear-gradient(135deg, #1a1040 0%, #0d0820 100%);
  padding: 80px 0 0;
  overflow: hidden;
}
.footer-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.footer-star {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  opacity: 0.4;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}
.footer-logo { height: 52px; margin-bottom: 8px; filter: drop-shadow(0 2px 8px rgba(255,107,157,0.3)); }
.footer-tagline { height: 24px; margin-bottom: 16px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.65; margin-bottom: 24px; }
.footer-chars { display: flex; gap: 16px; align-items: flex-end; }
.footer-char { height: 80px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); animation: floatMia 4s ease-in-out infinite; }
.footer-char:nth-child(2) { animation: floatMax 4.5s ease-in-out infinite; }

.footer-col-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--pink); }

.social-links { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  transition: var(--transition);
}
.social-fb { background: #1877f2; }
.social-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-yt { background: #ff0000; }
.social-tt { background: #000; }
.social-btn:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }

.footer-app-links { display: flex; flex-direction: column; gap: 8px; }
.footer-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.footer-app-btn:hover { background: rgba(255,255,255,0.14); border-color: var(--blue); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.875rem; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .store-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .store-list {
    max-height: 280px;
  }
  .map-container { height: 380px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(26,16,64,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link { color: var(--white) !important; text-shadow: none !important; font-size: 1.1rem; width: 100%; }
  .nav-toggle { display: flex; z-index: 1001; }

  .hero-mia { left: -5%; height: clamp(200px, 45vw, 320px); }
  .hero-max { right: -5%; height: clamp(190px, 42vw, 300px); }
  .hero-content { padding: 100px 16px 80px; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .books-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .ar-steps { grid-template-columns: 1fr; }
  .ar-app-cta { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }

  .store-layout { height: auto; }
  .map-container { height: 300px; }

  .video-wrapper { border-radius: var(--radius-sm); }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.75rem; }
  .hero-tagline-img { height: 28px; }
  .hero-subtitle { font-size: 0.95rem; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }
  .hero-badges { gap: 8px; }
  .hero-badge { font-size: 0.78rem; padding: 5px 12px; }
}

/* ============================================================
   CUSTOM SCROLLBAR (desktop)
   ============================================================ */
@media (min-width: 769px) {
  ::-webkit-scrollbar       { width: 8px; }
  ::-webkit-scrollbar-track { background: #f0f4ff; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(var(--pink), var(--purple)); border-radius: 4px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .hero-video-bg, .hero-overlay, .hero-char, .video-section, .ar-section { display: none !important; }
}

/* ============================================================
   INTRO MIA
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: all;
}
.intro-overlay.intro-out {
  animation: introFadeOut 0.7s ease forwards;
  pointer-events: none;
}

/* Sfondo scuro sfumato dal basso */
.intro-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 5, 30, 0.72) 0%,
    rgba(10, 5, 30, 0.35) 40%,
    rgba(10, 5, 30, 0.0)  100%
  );
  animation: backdropIn 0.5s ease forwards;
}

/* Contenitore video centrato in basso */
.intro-char-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: introPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom center;
}

.intro-video {
  height: 95vh;
  width: auto;
  max-width: 95vw;
  display: block;
  /* WebM alpha: niente background */
  background: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 107, 157, 0.4))
          drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

/* Bottone X */
.intro-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200, 20, 20, 0.75);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 80, 80, 0.6);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  animation: fadeInBtn 0.4s ease 1s both;  /* appare dopo 1s */
}
.intro-close:hover {
  background: rgba(220, 0, 0, 0.9);
  transform: scale(1.1) rotate(90deg);
}

/* Schermata play iniziale */
.intro-play-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(10, 5, 30, 0.55);
  backdrop-filter: blur(4px);
}
.intro-play-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  background: rgba(255, 107, 157, 0.7);
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  animation: pulsePlay 1.8s ease-in-out infinite;
}
.intro-play-btn:hover {
  transform: scale(1.12);
  background: rgba(255, 107, 157, 1);
}
.intro-play-hint {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin: 0;
}
@keyframes pulsePlay {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,157,0.5); }
  50%       { box-shadow: 0 0 0 18px rgba(255,107,157,0); }
}

/* Animazioni */
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes introPop {
  0%   { transform: scale(0.3) translateY(60px); opacity: 0; }
  70%  { transform: scale(1.06) translateY(-8px); opacity: 1; }
  100% { transform: scale(1) translateY(0);       opacity: 1; }
}

@keyframes introFadeOut {
  0%   { opacity: 1; transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { opacity: 0; transform: scale(0.85) translateY(30px); }
}

@keyframes fadeInBtn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
  .intro-video { height: 90vh; max-width: 98vw; }
  .intro-close { top: 8px; right: 8px; width: 42px; height: 42px; }
}
