/* Caratteri ospitati sul nostro server (licenza OFL, vedi fonts/LICENSE-*.txt) :
   più veloci e nessun indirizzo IP dei visitatori trasmesso a Google (RGPD). Sottoinsieme latino. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/caveat-latin-600-normal.woff2') format('woff2'); }

/* Le Jardin des Pins · identité Midi + Ardoise (prototype validé). */
:root {
  --blue: #1E4E6B; --blue-2: #3B6984; --blue-3: #E3EDF2;
  --sand: #EDE6D8; --paper: #F7F4EE; --ink: #1E2622; --muted: #5A5D59;
  --line: #E2DDD2; --line-2: #EEEAE1; --olive: #5C6136;
  --soon-bg: #F5E6C8; --soon-fg: #6E4508; --rest-bg: #ECE8DF; --rest-fg: #4F534F;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--sand); font-family: Inter, system-ui, sans-serif; color: var(--ink); }
.app { max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--paper); }

.hero { position: relative; height: 136px; overflow: hidden; background: #fff; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(rgba(255,255,255,0), #fff); }

.top { padding: 14px 20px 12px; background: #fff; color: var(--blue); display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--sand); }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: 'Instrument Serif', serif; font-size: 32px; line-height: 1; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--olive); }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.date-line { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; }
.langs { display: flex; gap: 2px; background: var(--blue-3); border-radius: 10px; padding: 3px; }
.langs a { display: grid; place-items: center; width: 34px; height: 32px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }
.langs a.on { background: #fff; }

.page { padding: 18px 16px 32px; display: flex; flex-direction: column; gap: 22px; }
section { display: flex; flex-direction: column; gap: 8px; }
.kicker { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.notice { margin: 0; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }

.space { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.space.quiet { min-height: 48px; padding: 8px 14px; border-radius: 12px; background: transparent; }
.space-text { display: flex; flex-direction: column; gap: 2px; }
.space-name { font-size: 15px; font-weight: 600; }
.space-name.small { font-size: 14px; }
.space-sub { font-size: 12px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.pill.open { background: var(--blue-3); color: var(--blue); }
.pill.soon { background: var(--soon-bg); color: var(--soon-fg); }
.pill-text { font-size: 12px; font-weight: 600; color: var(--rest-fg); }

.board { display: flex; flex-direction: column; gap: 4px; border-radius: 14px; }
.board-label { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.board-text { font-family: Caveat, cursive; line-height: 1.15; }
.tone-1 { background: var(--blue); color: #FBF8F2; padding: 18px; }
.tone-1 .board-label { color: #D8E5EC; } .tone-1 .board-text { font-size: 28px; }
.tone-2 { background: var(--blue-2); color: #FBF8F2; padding: 14px 16px; }
.tone-2 .board-label { color: #DCE8EF; } .tone-2 .board-text { font-size: 24px; }
.tone-3 { background: var(--blue-3); color: var(--blue); padding: 12px 16px; }
.tone-3 .board-label { color: #3D5566; } .tone-3 .board-text { font-size: 23px; }

.list { border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--blue); }

/* Navigazione, pagine « Où manger » e scheda spazio (prototipo). */
.app { display: flex; flex-direction: column; }
.page { flex: 1; }
a.brand { text-decoration: none; color: inherit; }
a.space { text-decoration: none; color: var(--ink); }
.pill.later, .pill.closed { background: var(--rest-bg); color: var(--rest-fg); }
.pill.start { align-self: flex-start; }
.tabs { position: sticky; bottom: 0; display: flex; border-top: 1px solid var(--line); background: #fff; }
.tabs a { flex: 1; display: grid; place-items: center; height: 62px; border-top: 3px solid transparent; color: var(--rest-fg); font-size: 12px; font-weight: 500; text-decoration: none; }
.tabs a.on { border-top-color: var(--blue); color: var(--blue); font-weight: 700; }
.intro { display: flex; flex-direction: column; gap: 6px; }
.title { margin: 0; font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; line-height: 1.1; }
.lead { margin: 0; font-size: 14px; color: var(--blue); }
.kicker.small { font-size: 11.5px; font-weight: 600; }
.heart { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 2px solid var(--blue); background: #fff; color: var(--ink); text-decoration: none; }
.heart-top { display: flex; justify-content: space-between; align-items: center; }
.heart-name { font-family: 'Instrument Serif', serif; font-size: 22px; }
.back { align-self: flex-start; min-height: 44px; display: flex; align-items: center; color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.card { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.card.sand { background: var(--rest-bg); border: 0; }
.card-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #4F5A54; font-weight: 600; }
.card-value { font-size: 15px; font-weight: 500; }
.card-line { font-size: 14px; line-height: 1.45; }
.strong { font-weight: 600; }
.page { gap: 16px; }
.page > section + section { margin-top: 6px; }

/* Mon séjour e modulo di richiesta (prototipo). */
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.dates button { grid-column: 1 / -1; }
.dates label, .field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #4F5A54; }
.dates input, .field input, .field select, .field textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid #D6D0C4; background: #fff; width: 100%; }
.dates button, .btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.season { padding: 14px 16px; border-radius: 14px; background: var(--blue); color: #fff; display: flex; flex-direction: column; gap: 2px; }
.season-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #D8E5EC; font-weight: 600; }
.season-name { font-family: 'Instrument Serif', serif; font-size: 20px; }
.season-range { font-size: 13px; color: #D8E5EC; }
.card-title { font-size: 15px; font-weight: 600; }
.muted { color: #4F534F; font-size: 13px; }
.btn-outline { align-self: flex-start; margin-top: 4px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; border: 1px solid var(--blue); color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field-label { font-size: 13px; }
.field-error { color: #A1361F; font-weight: 600; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Ardoise du jour (responsabili). */
.chips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.chips a, .chips label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #D6D0C4; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.chips a.on, .chips label:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.title-sub { font-family: Inter, sans-serif; font-size: 15px; color: var(--muted); }
.slate { font-family: Caveat, cursive; font-size: 26px; min-height: 96px; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--blue); color: #FBF8F2; width: 100%; }
.slate::placeholder { color: #9FB6C6; }
.notice.ok { border-color: #B9D3E1; background: var(--blue-3); color: var(--blue); }
.notice.err { border-color: #E5B8AC; background: #FBEDE8; color: #A1361F; font-weight: 600; }
.inline { margin: 6px 0 0; }
.link-light { min-height: 36px; padding: 0; border: 0; background: none; color: #D8E5EC; font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Finiture : risposta al tocco, transizioni leggere, invio in corso. */
a.space, a.heart, .btn, .btn-outline, .chips a, .chips label, .langs a, .tabs a, .dates button {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
a.space:active, a.heart:active, .btn:active, .btn-outline:active, .chips a:active, .dates button:active { transform: scale(.98); }
a.space:hover, a.heart:hover { border-color: #C9C2B4; }
.btn:focus-visible, .btn-outline:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #9FC3D8; outline-offset: 2px;
}
.pill { transition: background-color .3s ease, color .3s ease; }
form.is-sending button[type=submit] { opacity: .6; cursor: progress; }
form.is-sending .btn::after {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero img { aspect-ratio: 1091 / 666; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
