/* =====================================================================
   Libretto Pediatrico — Landing "Coming Soon" v0.1
   Palette: azzurro pediatrico + corallo caldo + crema soffice
   ===================================================================== */

:root {
  --color-primary:        #2563EB;   /* azzurro chiaro vivace */
  --color-primary-dark:   #1E40AF;
  --color-primary-soft:   #DBE9FE;
  --color-accent:         #F4A09C;   /* corallo caldo */
  --color-accent-dark:    #E07570;
  --color-accent-soft:    #FCE5E1;
  --color-ink:            #1B2A3A;   /* testo scuro */
  --color-ink-muted:      #5B6B7E;
  --color-bg:             #FFFCFA;   /* crema soffice */
  --color-bg-card:        #FFFFFF;
  --color-border:         #E6EAF0;
  --color-shadow:         rgba(27, 42, 58, 0.08);

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --container-max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-primary-dark); }

.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;
}

/* =====================================================================
   Sfondo decorativo - blob sfocate
   ===================================================================== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--color-primary-soft);
  top: -150px; left: -150px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--color-accent-soft);
  top: 30%; right: -100px;
}
.blob-3 {
  width: 350px; height: 350px;
  background: #FEF3D6;
  bottom: -100px; left: 30%;
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  padding: 22px 0;
  position: relative;
  z-index: 10;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
}
.brand:hover { color: var(--color-primary-dark); }
.brand-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  color: var(--color-ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-muted);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
  50%      { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.05); }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  padding: 60px 0 80px;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-muted);
  margin-bottom: 32px;
  box-shadow: 0 1px 2px var(--color-shadow);
}
.badge-icon { font-size: 14px; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 24px;
}
.accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--color-ink-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero-lead strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* Form newsletter */
.signup-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px var(--color-shadow), 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.signup-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-ink);
  min-width: 0;
}
.signup-form input::placeholder { color: #A0AEC0; }
.signup-form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.signup-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.signup-form button:active { transform: translateY(0); }
.signup-form button:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  transform: none;
}
.btn-icon { transition: transform 0.15s; }
.signup-form button:hover .btn-icon { transform: translateX(2px); }

.signup-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-ink-muted);
}
.signup-hint.error { color: #DC2626; }
.signup-hint.success { color: #059669; font-weight: 600; }

/* =====================================================================
   Features
   ===================================================================== */
.features {
  padding: 80px 0;
  position: relative;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--color-ink);
}
.section-title.centered { text-align: center; }

.section-lead {
  font-size: 17px;
  color: var(--color-ink-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.55;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--color-shadow);
  border-color: transparent;
}

.feature-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  background: var(--color-primary-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card:nth-child(2) .feature-icon { background: #FEF3D6; }
.feature-card:nth-child(3) .feature-icon { background: var(--color-accent-soft); }
.feature-card:nth-child(4) .feature-icon { background: #E0F2E9; }
.feature-card:nth-child(5) .feature-icon { background: #F0E5F8; }
.feature-card:nth-child(6) .feature-icon { background: #DBE9FE; }

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--color-ink);
}
.feature-card p {
  font-size: 14.5px;
  color: var(--color-ink-muted);
  line-height: 1.6;
}

/* =====================================================================
   Story
   ===================================================================== */
.story {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-primary-soft) 50%, transparent 100%);
}
.story-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.story-text {
  font-size: 17px;
  color: var(--color-ink);
  line-height: 1.7;
  margin-bottom: 18px;
}
.story-text:last-child { margin-bottom: 0; }
.story-text strong {
  color: var(--color-primary-dark);
  font-weight: 600;
}
.story-text em {
  color: var(--color-accent-dark);
  font-style: italic;
  font-weight: 500;
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--color-ink);
  color: #B8C2D0;
  padding: 60px 0 32px;
  margin-top: 60px;
}
.site-footer a { color: #DBE3EE; }
.site-footer a:hover { color: white; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name.footer-name {
  font-size: 22px;
  color: white;
  display: block;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 14px;
  color: #B8C2D0;
  margin-bottom: 16px;
}
.footer-contact a {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
}
.footer-contact a:hover { color: white; }

.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 14px;
  color: #B8C2D0;
}

.footer-partner a { font-weight: 600; }
.text-muted { color: #6B7B91; font-size: 12px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid #2D3D52;
  font-size: 13px;
  color: #6B7B91;
}
.version {
  font-family: monospace;
  font-size: 12px;
  opacity: 0.8;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 768px) {
  .signup-form {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 12px;
  }
  .signup-form input,
  .signup-form button {
    width: 100%;
    border-radius: var(--radius-sm);
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-status { display: none; }
  .brand-sub { display: none; }
}

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