/* ==========================================================================
   PICCOLI PASSI - BABY REGISTRY & LISTA NASCITA
   Template 318 - Modern, Sweet & Elegant Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');

:root {
  --primary: #4a88c7;
  --primary-hover: #3672b0;
  --primary-light: #f0f6fc;
  --primary-soft: #d8e9f8;
  --topbar-bg: #6ba0dc;
  
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --blush: #f472b6;
  --blush-soft: #fce7f3;
  --mint: #10b981;
  --mint-soft: #d1fae5;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(74, 136, 199, 0.08);
  --shadow-md: 0 10px 30px rgba(74, 136, 199, 0.12);
  --shadow-lg: 0 20px 45px rgba(30, 58, 95, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-playful: 'Fredoka', 'Outfit', sans-serif;
  
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 94%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   TOP BAR (BABY BLUE)
   ========================================================================== */
.top-bar {
  background-color: var(--topbar-bg);
  color: #ffffff;
  font-size: 0.88rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.top-bar-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-social-list {
  display: flex;
  list-style: none;
  gap: 14px;
  align-items: center;
}

.top-social-list a {
  color: #ffffff;
  font-size: 1rem;
  opacity: 0.9;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.top-social-list a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.navbar {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-text h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-main);
  font-size: 1.25rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(74, 136, 199, 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(74, 136, 199, 0.36);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary-soft);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* ==========================================================================
   HERO SLIDER WITH CENTRED "ACCESSO LISTE" GLASS BOX
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  height: 72vh;
  max-height: 780px;
  overflow: hidden;
  background-color: #dbeafe;
}

.hero-slider-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, transform 6s ease-out;
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* Soft hero overlay for contrast */
.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(20,40,70,0.25) 100%);
  pointer-events: none;
}

/* FLOATING "ACCESSO LISTE" GLASS CARD */
.hero-login-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 90%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: 0 20px 45px rgba(20, 50, 90, 0.2), 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.hero-login-title {
  font-family: var(--font-playful);
  font-size: 1.65rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-login-form .form-group {
  margin-bottom: 14px;
}

.hero-login-input {
  width: 100%;
  padding: 13px 18px;
  font-size: 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  text-align: center;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.hero-login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 136, 199, 0.2);
}

.hero-login-btn {
  width: 100%;
  padding: 13px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  background: #6ba0dc;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(107, 160, 220, 0.35);
}

.hero-login-btn:hover {
  background: #528ec5;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107, 160, 220, 0.45);
}

.hero-login-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-login-hint strong {
  color: var(--primary);
}

/* Slider Controls (dots) */
.hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 85px 0;
}

.section-bg-white {
  background-color: #ffffff;
}

.section-bg-subtle {
  background-color: var(--bg-page);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-soft);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-title-playful {
  font-family: var(--font-playful);
  color: #528ec5;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   SECTION 1: INTRO & BABY ROOM PANORAMA (baby1.jpg)
   ========================================================================== */
.intro-panorama-box {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(30, 60, 95, 0.08);
  border: 1px solid var(--border);
  background: #ffffff;
}

.intro-panorama-img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.intro-panorama-box:hover .intro-panorama-img {
  transform: scale(1.02);
}

/* ==========================================================================
   SECTION 2: ACCESS CARDS (Genitori vs Ospiti)
   ========================================================================== */
.access-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.access-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.access-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}

.access-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.badge-parents {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-soft);
}

.badge-guests {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #fde68a;
}

.access-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 10px;
}

.access-card-lead {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.access-card-lead code {
  background: #eef6fc;
  color: var(--primary);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.access-features-list {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.45;
}

.access-features-list li i {
  color: var(--mint);
  margin-top: 3px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION 3: BABY MOMENTS (baby2.jpg & baby3.jpg)
   ========================================================================== */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.moment-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

.moment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.moment-img-box {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.moment-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.moment-card:hover .moment-img-box img {
  transform: scale(1.04);
}

.moment-content {
  padding: 30px;
  text-align: center;
}

.moment-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 8px;
}

.moment-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 4: LA CICOGNA & GESTIONE LISTA ONLINE (baby4.jpg)
   ========================================================================== */
.stork-split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.stork-img-box {
  text-align: center;
  position: relative;
}

.stork-img-box img {
  max-width: 440px;
  margin: 0 auto;
  filter: drop-shadow(0 15px 25px rgba(74, 136, 199, 0.15));
  animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stork-content-box h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.stork-content-box .lead-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.stork-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.stork-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.5;
}

.stork-features li i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   DECORATIVE CLOUD RIBBON (baby_icon.png)
   ========================================================================== */
.cloud-divider-wrap {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  background-color: var(--bg-page);
  display: flex;
  justify-content: center;
}

.cloud-divider-img {
  width: 100%;
  max-width: 1560px;
  height: auto;
  opacity: 0.95;
  display: block;
}

/* ==========================================================================
   SECTION 5: GIFTS SHOWCASE GRID
   ========================================================================== */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gift-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}

.gift-img-box {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}

.gift-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gift-card:hover .gift-img-box img {
  transform: scale(1.05);
}

.gift-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gift-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gift-status-badge.funded {
  background: #10b981;
  color: #ffffff;
}

.gift-status-badge.partial {
  background: var(--accent);
  color: #ffffff;
}

.gift-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gift-brand {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 4px;
}

.gift-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 8px;
  line-height: 1.35;
}

.gift-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.progress-container {
  margin-bottom: 18px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a88c7 0%, #38bdf8 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.progress-fill.full {
  background: #10b981;
}

.gift-card-btn {
  width: 100%;
}

/* ==========================================================================
   SECTION 6: DEDICHE & GUESTBOOK CARDS
   ========================================================================== */
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.wish-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.wish-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.wish-quote-icon {
  font-size: 1.8rem;
  color: var(--primary-soft);
  margin-bottom: 14px;
}

.wish-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.wish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.wish-author {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e3a5f;
}

.wish-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ==========================================================================
   SECONDARY PAGES STYLES (regali.php, regalo.php, area-genitori.php, etc.)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
  padding: 50px 0 45px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.breadcrumb {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 10px;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 30px 0 40px 0;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Single Gift Detail */
.gift-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin: 40px 0;
}

.gift-gallery-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}

.gift-gallery-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.gift-info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* Parent Area Login Box */
.parent-login-card {
  max-width: 500px;
  margin: 60px auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.parent-dashboard-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  border: 1.5px solid var(--primary-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .gifts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .stork-split-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stork-features li {
    justify-content: center;
  }
  .access-cards-grid {
    grid-template-columns: 1fr;
  }
  .moments-grid {
    grid-template-columns: 1fr;
  }
  .gift-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .top-bar-left {
    justify-content: center;
  }
  .hero-slider-section {
    min-height: 520px;
    height: 60vh;
  }
  .hero-login-modal {
    padding: 26px 20px;
    width: 92%;
  }
  .gifts-grid {
    grid-template-columns: 1fr;
  }
  .wishes-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .intro-panorama-img {
    height: 320px;
  }
  .moment-img-box {
    height: 260px;
  }
}


/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
