/* =============================================
   SMF Terapeuta — Custom styles over Tailwind
   ============================================= */

/* Palette custom properties */
:root {
  --color-primary:    #7C9A8C;
  --color-secondary:  #C4A882;
  --color-accent:     #E8D5C4;
  --color-bg:         #FAFAF8;
  --color-text:       #2C2C2C;
  --color-muted:      #6B7280;
  --font-sans:        'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:       'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
.font-serif { font-family: var(--font-serif); }

/* Navbar — glass effect leggero */
.navbar-glass {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 154, 140, 0.12);
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(232, 213, 196, 0.35) 0%,
    rgba(250, 250, 248, 1) 55%,
    rgba(196, 168, 130, 0.15) 100%
  );
}

/* Cards aree intervento */
.area-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 154, 140, 0.15);
}

/* Bottone primario */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #6a8478;
  transform: translateY(-1px);
}

/* Bottone outline */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Sezione divider organico */
.section-divider {
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23FAFAF8' fill-opacity='1' d='M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat center/cover;
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.95rem;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 154, 140, 0.15);
}
.form-input.input-error {
  border-color: #EF4444;
}

/* Messaggi di errore validazione */
.field-error {
  color: #DC2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ── Toast notification ───────────────────────────────────── */
#toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  width: min(400px, calc(100vw - 2rem));
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#toast.toast-hiding {
  opacity: 0;
  transform: translateY(-12px);
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100vw - 2rem));
  z-index: 9999;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}
.animation-delay-200 { animation-delay: 0.2s; opacity: 0; }
.animation-delay-400 { animation-delay: 0.4s; opacity: 0; }
.animation-delay-600 { animation-delay: 0.6s; opacity: 0; }
