/* ═══════════════════════════════════════════════
   GLOBAL — Raffaella's World
   Condiviso da tutte le pagine del sito
   ═══════════════════════════════════════════════ */

/* ── Variabili ── */
:root {
  /* Palette floreale */
  --cream:       #fdf6ee;
  --petal:       #f2c4b8;
  --rose:        #c9736a;
  --deep-rose:   #9e4a42;
  --sage:        #8aab8c;
  --sage-light:  #c2d8c3;
  --bark:        #6b4c3b;
  --gold:        #c8a96e;
  --text:        #3d2b23;
  --text-light:  #7a5c50;

  /* Card & bordi */
  --white-card:  rgba(255, 255, 255, 0.72);
  --border:      rgba(242, 196, 184, 0.5);

  /* Colori funzionali (usati nelle sottopagine) */
  --c-red:    #a83232;
  --c-green:  #3a7a3a;
  --c-blue:   #2a5298;
  --c-orange: #c47a1a;
  --c-purple: #6a1b9a;
}

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

html {
  scroll-behavior: smooth;
}

/* ── Base body ── */
body {
  background-color: var(--cream);
  color: var(--text);
  font-family: "Lato", sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

/* ── Sfondo sfumato fisso ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 15%, rgba(242, 196, 184, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(138, 171, 140, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(200, 169, 110, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Card base (glassmorphism) ── */
.card {
  background: var(--white-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(107, 76, 59, 0.07);
}

/* ── Bottoni ── */
.btn {
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--bark);  color: var(--cream); }
.btn-danger  { background: transparent; color: var(--c-red); border: 1.5px solid rgba(168, 50, 50, 0.3); }
.btn-accent  { background: linear-gradient(135deg, var(--deep-rose), var(--c-purple)); color: #fff; }

/* ── Breadcrumb nav (sottopagine) ── */
.topnav {
  position: relative;
  z-index: 10;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(253, 246, 238, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.topnav a {
  color: var(--rose);
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.topnav a:hover { opacity: 0.7; }
.topnav-sep    { opacity: 0.4; }

/* ── Page header (sottopagine) ── */
.page-header {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 36px 24px 28px;
}
.page-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}
.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--bark);
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.page-title em { font-style: italic; color: var(--rose); }
.page-subtitle {
  margin-top: 8px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}
.page-divider {
  margin: 18px auto 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  animation: fadeIn 0.9s 0.45s ease forwards;
}

/* ── Contenitore principale (sottopagine) ── */
.wrap {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 32px 24px 40px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
  border-top: 1px solid rgba(242, 196, 184, 0.4);
}
footer a   { color: var(--rose); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer span    { color: var(--rose); }

/* ── Animazioni ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
