/* ============================================================
   RestoCRM — Design System & Stili
   Mobile-first, dark mode elegante con accenti oro/ambra
   ============================================================ */

:root {
  /* Colori */
  --bg: #0F0F14;
  --bg-elevated: #14141C;
  --card: #1A1A24;
  --card-2: #20202C;
  --border: #2A2A3A;
  --accent: #D4A853;
  --accent-soft: rgba(212, 168, 83, 0.14);
  --accent-glow: rgba(212, 168, 83, 0.35);
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --text: #E8E8ED;
  --text-2: #8888A0;
  --text-3: #5A5A70;

  /* Tipografia */
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --radius: 18px;
  --radius-sm: 12px;
  --phone-w: 390px;
  --tabbar-h: 74px;

  /* Ombre */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px var(--border), 0 10px 40px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 800px at 50% -10%, #17131a 0%, transparent 60%),
    #08080c;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 12px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Frame smartphone
   ============================================================ */
.phone {
  position: relative;
  width: 100%;
  max-width: var(--phone-w);
  height: min(844px, calc(100vh - 48px));
  background: var(--bg);
  border-radius: 42px;
  border: 10px solid #05050a;
  box-shadow:
    0 0 0 2px #1c1c26,
    0 40px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Notch */
.phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 26px;
  background: #05050a;
  border-radius: 0 0 18px 18px;
  z-index: 60;
}

/* Status bar finta */
.statusbar {
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  z-index: 50;
}
.statusbar__icons { letter-spacing: 2px; font-size: 12px; }

/* ============================================================
   Area schermate
   ============================================================ */
.screens {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 8px 18px calc(var(--tabbar-h) + 20px);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  -webkit-overflow-scrolling: touch;
}
.view.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.view.is-leaving {
  transform: translateX(-24px);
}
.view::-webkit-scrollbar { width: 0; }

/* Full-screen overlay views (chiamate) → coprono anche la tabbar */
.overlay-view {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
}
.overlay-view.is-active { display: flex; }

/* ============================================================
   Header di sezione
   ============================================================ */
.view__header {
  padding: 14px 2px 18px;
}
.view__eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.view__title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 4px;
}
.view__subtitle {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 6px;
}

/* ============================================================
   Card / componenti generici
   ============================================================ */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card.glass {
  background: rgba(26, 26, 36, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card + .card { margin-top: 14px; }

.section-label {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 22px 2px 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spacer { flex: 1; }

/* Avatar */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #201a0c;
  background: linear-gradient(135deg, #E7C57A, var(--accent));
  flex: 0 0 auto;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.avatar.lg { width: 78px; height: 78px; font-size: 26px; }
.avatar.sm { width: 40px; height: 40px; font-size: 14px; }

/* Badge / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.chip.gold { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip.warn { background: rgba(255,152,0,0.14); border-color: rgba(255,152,0,0.5); color: #FFB74D; }
.chip.danger { background: rgba(244,67,54,0.14); border-color: rgba(244,67,54,0.5); color: #FF8A80; }
.chip.success { background: rgba(76,175,80,0.14); border-color: rgba(76,175,80,0.5); color: #A5D6A7; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.vip-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #201a0c;
  background: linear-gradient(135deg, #E7C57A, var(--accent));
  padding: 3px 8px;
  border-radius: 6px;
}

/* Pulsanti */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.block { width: 100%; }
.btn.gold {
  background: linear-gradient(135deg, #E7C57A, var(--accent));
  color: #1a1408;
  border: none;
  box-shadow: 0 6px 18px var(--accent-glow);
}
.btn.gold:active { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(244,67,54,0.15); border-color: rgba(244,67,54,0.4); color: #FF8A80; }
.btn.success { background: rgba(76,175,80,0.15); border-color: rgba(76,175,80,0.4); color: #A5D6A7; }
.btn.sm { padding: 9px 12px; font-size: 13px; border-radius: 10px; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   Bottom tab bar
   ============================================================ */
.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-h);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(15, 15, 20, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border);
  z-index: 40;
}
.tab {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  transition: color 0.2s;
}
.tab__icon { font-size: 21px; line-height: 1; filter: grayscale(1) opacity(0.7); transition: filter 0.2s, transform 0.2s; }
.tab.is-active { color: var(--accent); }
.tab.is-active .tab__icon { filter: none; transform: translateY(-2px); }

/* ============================================================
   HOME
   ============================================================ */
.hero {
  background:
    radial-gradient(600px 300px at 90% -20%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.hero__greeting { color: var(--text-2); font-size: 14px; }
.hero__name { font-family: var(--font-title); font-size: 24px; font-weight: 700; margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stat {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.stat__num { font-size: 30px; font-weight: 800; font-family: var(--font-title); color: var(--accent); line-height: 1; }
.stat__label { color: var(--text-2); font-size: 12px; margin-top: 6px; }

.next-res {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.next-res__time { font-size: 22px; font-weight: 800; color: var(--accent); font-family: var(--font-title); }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.quick {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.2s;
}
.quick:active { transform: scale(0.97); }
.quick__icon { font-size: 24px; }
.quick__label { font-weight: 700; margin-top: 8px; font-size: 15px; }
.quick__sub { color: var(--text-2); font-size: 12px; margin-top: 2px; }

/* ============================================================
   Lista prenotazioni / clienti (righe)
   ============================================================ */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.2s, background 0.2s;
}
.list-item:active { transform: scale(0.98); }
.list-item + .list-item { margin-top: 10px; }
.list-item__main { flex: 1; min-width: 0; }
.list-item__title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.list-item__sub { color: var(--text-2); font-size: 12.5px; margin-top: 3px; }
.list-item__time {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  flex: 0 0 auto;
}
.list-item__icons { font-size: 15px; letter-spacing: 2px; }
.chev { color: var(--text-3); font-size: 18px; }

/* Timeline booking indicator */
.res-time-badge {
  width: 58px;
  flex: 0 0 58px;
  text-align: center;
}
.res-time-badge .h { font-family: var(--font-title); font-size: 19px; font-weight: 700; color: var(--accent); }
.res-time-badge .p { font-size: 11px; color: var(--text-2); }

/* ============================================================
   Filtri (segmented + chips)
   ============================================================ */
.segmented {
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}
.segmented button {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 4px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.segmented button.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.filter-chips::-webkit-scrollbar { height: 0; }
.filter-chip {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-chip.is-active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* Search */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}
.search input::placeholder { color: var(--text-3); }

/* ============================================================
   Scheda cliente dettagliata
   ============================================================ */
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0 4px;
}
.profile-head__name { font-family: var(--font-title); font-size: 24px; font-weight: 700; margin-top: 12px; }
.profile-head__phone { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.profile-stats { display: flex; justify-content: center; gap: 26px; margin-top: 14px; }
.profile-stats .n { font-size: 20px; font-weight: 800; color: var(--accent); font-family: var(--font-title); }
.profile-stats .l { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; }

.detail-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--text-2); flex: 0 0 40%; }
.detail-row .v { flex: 1; font-weight: 500; }

.notes-box {
  background: rgba(0,0,0,0.22);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

/* Timeline storico */
.timeline { position: relative; padding-left: 8px; }
.tl-item { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--border); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}
.tl-item__date { font-weight: 700; font-size: 13px; color: var(--accent); }
.tl-item__body { color: var(--text); font-size: 13.5px; margin-top: 3px; }
.tl-item__meta { color: var(--text-2); font-size: 12px; margin-top: 2px; }

/* ============================================================
   Form
   ============================================================ */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 78px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Toggle switches */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row__label { font-size: 15px; font-weight: 500; }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: 0.25s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: var(--text-2);
  border-radius: 50%;
  transition: 0.25s;
}
.switch input:checked + .slider { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--accent); }

/* ============================================================
   Simulazione chiamata (overlay full-screen)
   ============================================================ */
.call {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(700px 500px at 50% 0%, #1c1720, transparent 70%),
    linear-gradient(180deg, #0d0d12, #060609);
  padding: 60px 26px 40px;
  text-align: center;
  color: var(--text);
}
.call__status {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  animation: pulse 1.6s ease-in-out infinite;
}
.call__avatar {
  width: 116px; height: 116px;
  border-radius: 50%;
  margin: 30px 0 20px;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 700;
  color: #201a0c;
  background: linear-gradient(135deg, #E7C57A, var(--accent));
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: ring 1.8s ease-out infinite;
}
.call__avatar.unknown {
  background: var(--card-2);
  color: var(--text-2);
  border: 2px solid var(--border);
}
.call__name { font-family: var(--font-title); font-size: 30px; font-weight: 700; }
.call__number { color: var(--text-2); font-size: 16px; margin-top: 6px; }

/* Overlay scheda su chiamata conosciuto */
.call-card {
  width: 100%;
  margin-top: 26px;
  text-align: left;
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(26, 26, 36, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(212, 168, 83, 0.35);
  animation: slideUp 0.5s 0.3s both;
}
.call-card__title {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.call-fact { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.call-fact .ic { font-size: 17px; width: 24px; text-align: center; flex: 0 0 24px; }

.call__actions {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  width: 100%;
  padding-top: 26px;
}
.call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.call-btn__circle {
  width: 66px; height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  transition: transform 0.12s;
}
.call-btn:active .call-btn__circle { transform: scale(0.92); }
.call-btn__circle.decline { background: var(--danger); box-shadow: 0 8px 20px rgba(244,67,54,0.4); }
.call-btn__circle.accept { background: var(--success); box-shadow: 0 8px 20px rgba(76,175,80,0.4); animation: pulse 1.4s infinite; }

/* ============================================================
   Modal / popup (post-chiamata)
   ============================================================ */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 90;
  padding: 16px;
}
.modal-backdrop.is-active { display: flex; animation: fade 0.25s; }
.modal {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px 22px 22px 22px;
  padding: 22px;
  animation: slideUp 0.32s;
  max-height: 90%;
  overflow-y: auto;
}
.modal__handle { width: 40px; height: 4px; background: var(--border); border-radius: 999px; margin: 0 auto 16px; }
.modal__icon { font-size: 40px; text-align: center; }
.modal__title { font-family: var(--font-title); font-size: 22px; font-weight: 700; text-align: center; margin-top: 8px; }
.modal__text { color: var(--text-2); font-size: 14.5px; text-align: center; margin-top: 8px; line-height: 1.5; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: absolute;
  bottom: calc(var(--tabbar-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--success);
  color: #0a1a0b;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 95;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.warn { background: var(--warning); color: #241500; }
.toast.info { background: var(--card-2); color: var(--text); border: 1px solid var(--border); }

/* Empty state */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-2);
}
.empty__icon { font-size: 40px; opacity: 0.5; }
.empty__text { margin-top: 10px; font-size: 14px; }

/* FAB */
.fab {
  position: absolute;
  right: 18px;
  bottom: calc(var(--tabbar-h) + 16px);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E7C57A, var(--accent));
  color: #1a1408;
  font-size: 28px;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px var(--accent-glow);
  z-index: 35;
  transition: transform 0.12s;
}
.fab:active { transform: scale(0.92); }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 4px;
}

/* ============================================================
   Animazioni
   ============================================================ */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 22px rgba(212,168,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,83,0); }
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.fade-in { animation: fade 0.4s ease both; }

/* Su schermi molto piccoli, togli i margini del body */
@media (max-height: 720px) {
  body { padding: 0; }
  .phone { border-radius: 0; border-width: 0; height: 100vh; max-width: 100%; }
  .phone__notch { display: none; }
}

/* Su smartphone reale: l'app riempie tutto lo schermo (niente cornice finta) */
@media (max-width: 500px) {
  body { padding: 0; }
  .phone {
    border-radius: 0;
    border-width: 0;
    max-width: 100%;
    height: 100vh;
    height: 100dvh; /* usa l'altezza dinamica su mobile */
    box-shadow: none;
  }
  .phone__notch { display: none; }
}
