/* Scopri oggi: quale spiaggia, fammi la giornata, passaporto. Vale su telefono e su schermi larghi. */

#passaporto[hidden] { display: none !important; }
.sc-msg { margin: 6px 0; font-size: 0.92rem; line-height: 1.45; color: var(--muted, #5b6b7a); }
.sc-note { margin: 12px 2px 0; font-size: 0.78rem; line-height: 1.4; color: var(--muted, #5b6b7a); }

/* ---- quale spiaggia oggi ---- */
#beach-today, #day-planner, #passport {
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.bt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bt-head b { display: block; font-family: var(--display, "Fredoka", sans-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.2; color: var(--navy, #0a2a38); }
.bt-head small { display: block; margin-top: 2px; font-size: 0.84rem; font-weight: 700; color: var(--muted, #5b6b7a); }
.bt-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6f6fb;
  color: #0b7ea8;
}
.bt-arrow svg { display: block; }
.bt-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bt-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f4fbfd;
  box-shadow: inset 4px 0 0 var(--bt, #9db3c2);
}
.bt-item.is-calm { --bt: #1faa59; }
.bt-item.is-slight { --bt: #e89a00; }
.bt-item.is-rough { --bt: #e0531a; }
.bt-item.is-best { background: #effaf3; box-shadow: inset 4px 0 0 var(--bt), 0 0 0 1.5px rgba(31, 170, 89, 0.4); }
.bt-name b { display: block; font-weight: 800; font-size: 1rem; }
.bt-name small { color: var(--muted, #5b6b7a); font-weight: 700; font-size: 0.8rem; }
.bt-chip {
  justify-self: end;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--bt);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}
.bt-why { grid-column: 1; margin: 2px 0 0; font-size: 0.86rem; line-height: 1.35; color: #34455c; }
.bt-go {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #0a2a38);
  box-shadow: 0 0 0 1.5px rgba(10, 42, 56, 0.18);
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
}
.bt-warn {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff4e6;
  color: #8a4a00;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---- fammi la giornata ---- */
.dp-q { margin-bottom: 12px; }
.dp-lbl { display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted, #5b6b7a); }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-chip {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: #f1f6f9;
  color: var(--navy, #0a2a38);
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1.5px rgba(10, 42, 56, 0.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dp-chip[aria-pressed="true"] { background: var(--navy, #0a2a38); color: #fff; box-shadow: none; }
.dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #0a2a38);
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 0 0 1.5px rgba(10, 42, 56, 0.18);
  cursor: pointer;
}
.dp-btn--main { background: var(--coral, #f26b1f); color: #fff; box-shadow: none; }
.dp-btn--wa { background: #1faa59; color: #fff; box-shadow: none; }
.dp-make { width: 100%; margin-top: 4px; }
.dp-out { margin-top: 6px; padding-top: 12px; border-top: 1.5px dashed rgba(10, 42, 56, 0.16); }
.dp-title { margin: 0 0 8px; font-family: var(--display, "Fredoka", sans-serif); font-weight: 600; font-size: 1.2rem; }
.dp-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: dp; }
.dp-step {
  position: relative;
  counter-increment: dp;
  padding: 2px 0 14px 40px;
}
.dp-step::before {
  content: counter(dp);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral, #f26b1f);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
}
.dp-step::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: rgba(242, 107, 31, 0.28);
}
.dp-step:last-child::after { display: none; }
.dp-meta { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; margin-bottom: 2px; }
.dp-slot { padding: 1px 9px; border-radius: 999px; background: #fff1e6; color: #b8461f; font-weight: 900; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dp-walk { padding: 1px 9px; border-radius: 999px; background: #e6f6fb; color: #0b7ea8; font-weight: 800; font-size: 0.72rem; }
.dp-step > b { display: block; font-weight: 800; font-size: 1.02rem; }
.dp-step p { margin: 2px 0 6px; font-size: 0.88rem; line-height: 1.4; color: #34455c; }
.dp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #0a2a38);
  box-shadow: 0 0 0 1.5px rgba(10, 42, 56, 0.18);
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
}
.dp-a--call { background: #0b7f78; color: #fff; box-shadow: none; }
.dp-a--wa { background: #1faa59; color: #fff; box-shadow: none; }
.dp-a--go { background: #fff1e6; color: #b8461f; box-shadow: none; }
.dp-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dp-foot .dp-btn--main { flex: 1 1 100%; }

/* ---- passaporto ---- */
.pp-top { margin-bottom: 12px; }
.pp-top b { display: block; margin-bottom: 6px; font-family: var(--display, "Fredoka", sans-serif); font-weight: 600; font-size: 1.2rem; }
.pp-bar { height: 8px; border-radius: 4px; background: rgba(10, 42, 56, 0.1); overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f26b1f, #ffb347); transition: width 0.5s; }
.pp-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pp-slot { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pp-seal {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px dashed rgba(10, 42, 56, 0.22);
  color: rgba(10, 42, 56, 0.35);
  font-family: var(--display, "Fredoka", sans-serif);
  font-weight: 600;
  font-size: 1.4rem;
}
.pp-slot.is-on .pp-seal { border: 3px solid #e0531a; background: #fff1e6; color: #e0531a; transform: rotate(-8deg); }
.pp-slot small { font-size: 0.74rem; font-weight: 700; color: var(--muted, #5b6b7a); min-height: 1em; }
.pp-reward {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, #f26b1f, #ff8f3a);
  color: #fff;
  text-align: center;
}
.pp-reward b { font-family: var(--display, "Fredoka", sans-serif); font-weight: 600; font-size: 1.1rem; }
.pp-reward small { font-size: 0.8rem; font-weight: 700; opacity: 0.95; }
.pp-list { margin-top: 10px; }
.pp-list summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.pp-list ul { margin: 4px 0 0; padding-left: 18px; columns: 2; font-size: 0.86rem; line-height: 1.7; }
.pp-list li.is-on { color: #e0531a; font-weight: 800; }

.sc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy, #0a2a38);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px rgba(10, 42, 56, 0.4);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform 0.35s, opacity 0.35s;
}
.sc-toast.is-in { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 760px) {
  #beach-today, #day-planner, #passport { max-width: 760px; margin-inline: auto; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-bar i, .sc-toast { transition: none; }
}
