/* ============================================================
   estatose · "Riviera Postale"
   Manifesto di viaggio italiano anni '60: carta crema con grana,
   inchiostro blu, sole ambra, onde, timbri e biglietti.
   Display: Fraunces · Testo: Hanken Grotesk
   ============================================================ */

:root {
  /* Carta & inchiostro */
  --paper: #f8f1df;
  --paper-2: #f1e7cd;
  --card: #fdf9ee;
  --ink: #16384e;
  --ink-soft: #43607a;
  --muted: #7d8da0;
  --line: #e0d3b4;

  /* Riviera */
  --blu: #0d3b54;
  --blu-2: #14506e;
  --mare: #1180a0;
  --acqua: #d9eef1;
  --sole: #f5a623;
  --sole-2: #e8920a;
  --corallo: #e85d3d;
  --pistacchio: #6f9e63;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, sans-serif;

  --r-card: 18px 5px 18px 5px; /* angoli "stampati", volutamente asimmetrici */
  --shadow: 0 10px 28px -10px rgba(22, 56, 78, 0.22);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -100px, #fbf6e8 0%, transparent 60%),
    var(--paper);
  line-height: 1.5;
  font-size: 16px;
  padding-bottom: calc(86px + var(--safe-b));
  overflow-x: hidden;
}

/* Grana della carta, sopra tutto, impercettibile ma viva */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--sole); color: var(--blu); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(178deg, var(--blu) 0%, var(--blu-2) 55%, var(--mare) 100%);
  color: var(--paper);
  padding: calc(26px + env(safe-area-inset-top, 0px)) 22px 74px;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; top: 18px; right: 26px;
  width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffd470, var(--sole) 60%, var(--sole-2));
  box-shadow: 0 0 50px 12px rgba(245, 166, 35, 0.38);
  animation: sunrise 1.4s cubic-bezier(.2,.8,.3,1) both, sunfloat 7s ease-in-out 1.4s infinite alternate;
}
.sun::after { /* raggi */
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 212, 112, 0.35) 0 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%);
          mask: radial-gradient(circle, transparent 56%, #000 57%);
  animation: spin 40s linear infinite;
}
@keyframes sunrise { from { transform: translateY(56px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sunfloat { to { transform: translateY(7px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.waves { position: absolute; bottom: -2px; left: -60%; width: 220%; height: 56px; }
.waves path { fill: rgba(217, 238, 241, 0.16); }
.w1 { animation: drift 9s ease-in-out infinite alternate; }
.w2 { bottom: -14px; animation: drift 13s ease-in-out infinite alternate-reverse; }
.w2 path { fill: rgba(217, 238, 241, 0.22); }
.w3 { bottom: -26px; animation: drift 18s ease-in-out infinite alternate; }
.w3 path { fill: var(--paper); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(140px); } }

.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.kicker {
  margin: 0 0 6px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: #ffd470;
  animation: rise 0.7s 0.05s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(2.3rem, 9vw, 3.4rem); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.01em;
  animation: rise 0.7s 0.14s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 em { font-style: italic; font-weight: 350; color: #ffd470; }
.names {
  margin: 10px 0 0; font-size: 0.86rem; color: rgba(248, 241, 223, 0.85);
  animation: rise 0.7s 0.22s cubic-bezier(.2,.7,.2,1) both;
}
.hero-row {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  animation: rise 0.7s 0.3s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Biglietto countdown */
.ticket {
  display: inline-block; padding: 8px 16px;
  font-family: var(--font-display); font-style: italic; font-size: 0.98rem; color: var(--blu);
  background: var(--paper);
  border-radius: 4px;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.lock-btn {
  border: 1.5px solid rgba(248, 241, 223, 0.5); background: rgba(248, 241, 223, 0.12);
  color: #fff; width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.05rem; cursor: pointer; display: grid; place-items: center;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  backdrop-filter: blur(3px);
}
.lock-btn:active { transform: scale(0.9); }
.lock-btn.is-unlocked { background: var(--sole); border-color: var(--sole); box-shadow: 0 0 18px rgba(245, 166, 35, 0.5); }

/* ============ VIEW ============ */
.view { padding: 26px 18px 10px; max-width: 720px; margin: 0 auto; }
.view-anim > * { opacity: 0; animation: rise 0.55s cubic-bezier(.2,.7,.2,1) forwards; }
.view-anim > *:nth-child(1) { animation-delay: 0.03s; } .view-anim > *:nth-child(2) { animation-delay: 0.08s; }
.view-anim > *:nth-child(3) { animation-delay: 0.13s; } .view-anim > *:nth-child(4) { animation-delay: 0.18s; }
.view-anim > *:nth-child(5) { animation-delay: 0.23s; } .view-anim > *:nth-child(6) { animation-delay: 0.28s; }
.view-anim > *:nth-child(7) { animation-delay: 0.33s; } .view-anim > *:nth-child(8) { animation-delay: 0.38s; }
.view-anim > *:nth-child(n+9) { animation-delay: 0.43s; }

.section-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.55rem;
  margin: 2px 0 4px; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--corallo); font-weight: 400; }
.section-sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 20px; }

/* divisore ondina */
.squiggle { width: 64px; height: 10px; margin: 2px 0 14px; color: var(--sole); }
.squiggle path { stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }

/* ============ TIMELINE GIORNI ============ */
.days { position: relative; }
.days::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 25px;
  border-left: 2px dashed #cdbd97;
}
.day {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px;
  margin-bottom: 16px;
}
.stamp {
  position: relative; z-index: 1; width: 52px; height: 52px; align-self: start;
  display: grid; place-items: center;
  background: var(--card); color: var(--blu);
  border: 2px solid var(--blu); border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  transform: rotate(-6deg);
  box-shadow: 0 3px 0 rgba(22, 56, 78, 0.16);
}
.stamp::after { content: ""; position: absolute; inset: 3px; border: 1.5px dashed rgba(22, 56, 78, 0.4); border-radius: 50%; }
.day:nth-child(even) .stamp { transform: rotate(5deg); color: var(--corallo); border-color: var(--corallo); }
.day:nth-child(even) .stamp::after { border-color: rgba(232, 93, 61, 0.4); }

.day-body {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 15px 16px 13px;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s;
}
.day-body:hover { transform: translateY(-2px) rotate(0.2deg); box-shadow: 0 16px 34px -12px rgba(22, 56, 78, 0.3); }
.day-date {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--corallo);
}
.day-title { font-family: var(--font-display); font-weight: 600; font-size: 1.13rem; line-height: 1.18; margin: 3px 0 7px; }
.day-desc { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 10px; }
.day-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}
.chip-drive { background: var(--acqua); color: #0c5e76; }
.chip-night { background: var(--paper-2); color: #79633a; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; }
.badge-ok { background: #e1efdd; color: #3c6b34; }
.badge-no { background: #fbe3da; color: #bb3c1c; }
.badge-home { background: #e8e4d6; color: var(--muted); }

/* Giorno corrente: nastro OGGI */
.day.is-today .day-body { border: 2px solid var(--sole); animation: today-glow 2.6s ease-in-out infinite; }
@keyframes today-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.0), var(--shadow); }
  50% { box-shadow: 0 0 0 6px rgba(245, 166, 35, 0.18), var(--shadow); }
}
.ribbon {
  position: absolute; top: -10px; right: 12px;
  background: var(--sole); color: var(--blu);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em;
  padding: 4px 10px; border-radius: 4px; transform: rotate(2deg);
  box-shadow: 0 3px 8px rgba(245, 166, 35, 0.45);
}

/* ============ CARD GENERICA ============ */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}

/* ============ HOTEL ============ */
.progress-card { display: grid; grid-template-columns: 86px 1fr; gap: 16px; align-items: center; }
.ring { width: 86px; height: 86px; transform: rotate(-90deg); }
.ring .bg { fill: none; stroke: var(--paper-2); stroke-width: 9; }
.ring .fg {
  fill: none; stroke: var(--pistacchio); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 213.6; transition: stroke-dashoffset 0.9s cubic-bezier(.2,.7,.2,1);
}
.ring text {
  transform: rotate(90deg); transform-origin: center;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; fill: var(--ink);
}
.progress-info strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; display: block; }
.progress-info span { color: var(--muted); font-size: 0.82rem; }

.stay { position: relative; overflow: hidden; }
.stay.is-booked { border-color: #b5d3ad; }
.stay.is-booked::after {
  content: "PRENOTATO"; position: absolute; top: 16px; right: -34px;
  background: var(--pistacchio); color: #fff; font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.22em; padding: 4px 40px; transform: rotate(35deg);
}
.stay-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.utag {
  padding: 3px 9px; border-radius: 3px; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.14em; color: #fff; transform: rotate(-2deg); display: inline-block;
}
.u-subito { background: var(--corallo); } .u-presto { background: var(--sole-2); }
.u-calma { background: var(--pistacchio); } .u-gratis { background: var(--ink-soft); }
.stay-label { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; flex: 1; }
.stay-nights { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }

.toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; user-select: none;
}
.toggle input { width: 0; height: 0; opacity: 0; position: absolute; }
.toggle .track {
  width: 50px; height: 28px; background: #cfc6ab; border-radius: 999px;
  position: relative; transition: background 0.25s; flex: none;
}
.toggle .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  background: var(--card); border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle input:checked + .track { background: var(--pistacchio); }
.toggle input:checked + .track::after { transform: translateX(22px); }

.stay-details { margin-top: 14px; display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field label {
  font-size: 0.66rem; color: var(--muted); font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type="text"], input[type="url"], input[type="date"], textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 11px;
  font: inherit; font-size: 0.92rem; color: var(--ink); background: #fffdf6;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--mare); box-shadow: 0 0 0 3px rgba(17, 128, 160, 0.14); }
input:disabled, textarea:disabled { background: var(--paper-2); color: #9b9272; cursor: not-allowed; }

.locked-hint { text-align: center; color: var(--muted); font-size: 0.8rem; font-style: italic; margin: 0 0 16px; }

/* ============ SPESE (menù di trattoria) ============ */
.exp-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 8px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.exp-row:last-of-type { border-bottom: 0; }
.exp-name { flex: 1 1 100%; min-width: 0; }
.exp-label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.exp-note { color: var(--muted); font-size: 0.75rem; font-style: italic; }
.exp-est { color: var(--muted); font-size: 0.76rem; white-space: nowrap; padding-bottom: 3px; }
.exp-actual { width: 96px; flex: none; }
.exp-actual input { text-align: right; font-weight: 700; padding: 8px 9px; }
.dots { flex: 1; border-bottom: 2px dotted #cdbd97; margin: 0 4px 7px; min-width: 14px; }

.totbar {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink);
}
.totbar .lbl { font-weight: 800; letter-spacing: 0.1em; font-size: 0.74rem; text-transform: uppercase; }
.totbar .big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--blu); font-variant-numeric: tabular-nums; }
.totbar .per { color: var(--corallo); font-weight: 700; font-size: 0.9rem; font-style: italic; font-family: var(--font-display); }

/* ============ MAPPA (cartolina) ============ */
.postcard {
  background: #fff; padding: 10px 10px 14px; border-radius: 6px;
  box-shadow: var(--shadow); transform: rotate(-0.4deg);
}
#map { height: 62vh; min-height: 360px; border-radius: 4px; }
.postcard .caption {
  text-align: center; font-family: var(--font-display); font-style: italic;
  color: var(--ink-soft); font-size: 0.88rem; margin: 10px 0 0;
}
.mk {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--corallo); color: #fff; border: 2.5px solid #fff; border-radius: 50% 50% 50% 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}
.mk > span { transform: rotate(45deg); }
.mk.ok { background: var(--pistacchio); }
.leaflet-popup-content-wrapper { border-radius: 10px; font-family: var(--font-body); }
.leaflet-popup-content strong { font-family: var(--font-display); }

/* ============ NOTE / VALIGIA ============ */
.card-h { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; }
.checkline { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checkline:last-of-type { border-bottom: 0; }
.checkline input[type="checkbox"] {
  appearance: none; width: 23px; height: 23px; flex: none; cursor: pointer;
  border: 2px solid var(--ink-soft); border-radius: 6px; background: #fffdf6;
  display: grid; place-items: center; transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.checkline input[type="checkbox"]:checked { background: var(--pistacchio); border-color: var(--pistacchio); transform: rotate(-4deg); }
.checkline input[type="checkbox"]:checked::after { content: "✓"; color: #fff; font-weight: 900; font-size: 0.85rem; }
.checkline input[type="checkbox"]:disabled { opacity: 0.45; cursor: not-allowed; }
.checkline .lbl {
  flex: 1; transition: color 0.3s;
  background: linear-gradient(currentColor, currentColor) 0 55% / 0% 1.5px no-repeat;
  transition: background-size 0.35s, color 0.3s;
}
.checkline.done .lbl { color: var(--muted); background-size: 100% 1.5px; }
.checkline .del { border: 0; background: none; color: var(--corallo); font-size: 1.05rem; cursor: pointer; padding: 4px 6px; }
.addrow { display: flex; gap: 9px; margin-top: 12px; }
textarea#notesText { min-height: 140px; resize: vertical; line-height: 1.6; }

/* ============ BOTTONI ============ */
.btn {
  border: 0; border-radius: 10px; padding: 11px 16px; font: inherit; font-weight: 800;
  letter-spacing: 0.03em; cursor: pointer; transition: transform 0.15s, filter 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--blu); color: var(--paper); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost { background: var(--paper-2); color: var(--ink); }
.btn-sun { background: var(--sole); color: var(--blu); }

/* ============ BOTTOM NAV (pillola flottante) ============ */
.bottomnav {
  position: fixed; left: 14px; right: 14px; bottom: calc(12px + var(--safe-b)); z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(13, 59, 84, 0.92); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 6px;
  box-shadow: 0 14px 34px -8px rgba(13, 59, 84, 0.55);
  max-width: 540px; margin: 0 auto;
}
.bottomnav::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px) / 5);
  background: var(--sole); border-radius: 999px;
  transform: translateX(calc(var(--idx) * 100%));
  transition: transform 0.35s cubic-bezier(.3,1.25,.4,1);
}
.nav-item {
  position: relative; border: 0; background: none; padding: 8px 0 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em;
  color: rgba(248, 241, 223, 0.75); transition: color 0.25s;
}
.nav-item span { font-size: 1.2rem; line-height: 1.15; transition: transform 0.3s cubic-bezier(.3,1.4,.5,1); }
.nav-item.is-active { color: var(--blu); }
.nav-item.is-active span { transform: translateY(-1px) scale(1.12); }

/* ============ MODALE PIN (etichetta chiave d'albergo) ============ */
.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(13, 35, 50, 0.55);
  display: grid; place-items: center; padding: 22px; backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; background: var(--card); border-radius: 16px 16px 50% 50% / 16px 16px 18% 18%;
  padding: 34px 24px 26px; width: 100%; max-width: 330px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.45);
  text-align: center; animation: keytag 0.45s cubic-bezier(.3,1.3,.4,1) both;
}
@keyframes keytag { from { opacity: 0; transform: translateY(26px) rotate(-3deg); } to { opacity: 1; transform: none; } }
.keyhole {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 1px 3px rgba(0,0,0,0.3), 0 0 0 4px var(--paper-2);
}
.modal-card h2 { font-family: var(--font-display); font-weight: 600; margin: 10px 0 6px; font-size: 1.3rem; }
.modal-card p { margin: 0 0 14px; color: var(--muted); font-size: 0.85rem; }
.modal-card input {
  font-family: var(--font-display); font-size: 1.7rem; text-align: center; letter-spacing: 0.5em;
  padding: 10px; text-indent: 0.5em;
}
.modal-actions { display: flex; gap: 9px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }
.pin-error { color: var(--corallo) !important; font-weight: 700; animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* ============ TOAST & CORIANDOLI ============ */
.toast {
  position: fixed; bottom: calc(92px + var(--safe-b)); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; z-index: 70;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3); animation: pop 0.25s cubic-bezier(.3,1.3,.4,1);
}
.toast[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px) scale(0.92); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
#confetti i {
  position: absolute; width: 8px; height: 12px; border-radius: 2px;
  animation: confetto 0.95s cubic-bezier(.2,.6,.4,1) forwards;
}
@keyframes confetto {
  from { opacity: 1; transform: translate(0, 0) rotate(0); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* ============ DESKTOP & MOTION ============ */
@media (min-width: 640px) {
  .hero { padding-top: 44px; }
  .sun { width: 110px; height: 110px; right: 8%; }
  .field-row { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .view-anim > * { opacity: 1; }
}

/* ===== Stato prenotazione del giorno (Viaggio) — molto evidente ===== */
.day.day--ok .stamp { color: var(--pistacchio); border-color: var(--pistacchio); }
.day.day--ok .stamp::after { border-color: rgba(111, 158, 99, 0.5); }
.day.day--todo .stamp { color: var(--corallo); border-color: var(--corallo); }
.day.day--todo .stamp::after { border-color: rgba(232, 93, 61, 0.5); }
.day.day--home .stamp { color: var(--ink-soft); border-color: var(--ink-soft); }
.day.day--home .stamp::after { border-color: rgba(67, 96, 122, 0.4); }

.day--ok .day-body { border-left: 5px solid var(--pistacchio); }
.day--todo .day-body { border-left: 5px solid var(--corallo); background: linear-gradient(90deg, #fdeee9 0%, var(--card) 26%); }
.day--home .day-body { border-left: 5px solid var(--line); }

/* badge "Da prenotare" più gridato */
.day--todo .badge-no { box-shadow: 0 0 0 2px rgba(232, 93, 61, 0.18); }

/* ===== Pulsanti / chip Booking ===== */
.chip-booking { background: #003b95; color: #fff !important; text-decoration: none; }
.chip-booking:active { filter: brightness(1.2); }
.btn-booking {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #003b95; color: #fff; text-decoration: none; transition: filter 0.2s;
}
.btn-booking:hover { filter: brightness(1.18); }
.btn-booking-wide { width: 100%; margin-top: 12px; }
