/* Hotel Annunziata · web-app ospiti
   STILE 2.0 adattato agli schermi (knowledge/brand-identity-grafica.md, sezione 12).
   Sei colori, Jura 700 + Sora, angoli vivi, un filetto rosso per schermata. */

@font-face { font-family: "Jura"; font-weight: 700; font-display: swap; src: url("/font/Jura-Bold.ttf") format("truetype"); }
@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("/font/Sora-Regular.otf") format("opentype"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/font/Sora-SemiBold.ttf") format("truetype"); }

:root {
  --inchiostro: #241610;
  --testo: #5C4A3C;
  --tortora: #96806C;
  --rosso: #C23A22;
  --filetto: #E3DBD3;
  --carta: #FFFFFF;
  --tasto: #F3EFEB;
  --verde-wa: #3D6B4F;  /* solo il tasto WhatsApp: verde spento, richiama il logo senza il verde acceso */   /* fondo di tasti e riquadri: il filetto schiarito, solo per schermi */
  --f-titolo: "Jura", system-ui, sans-serif;
  --f-testo: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--carta); color: var(--testo); font-family: var(--f-testo); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--inchiostro); outline-offset: 2px; }

.app { max-width: 560px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }

/* Testata */
.hd { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--carta); border-bottom: 1px solid var(--filetto); }
.back { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--filetto); background: var(--tasto); color: var(--inchiostro); flex-shrink: 0; }
.marchio { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.wm { font-family: var(--f-titolo); font-weight: 700; font-size: 18px; letter-spacing: .14em; color: var(--inchiostro); line-height: 1.1; }
.sub { font-family: var(--f-titolo); font-weight: 700; font-size: 10px; letter-spacing: .3em; color: var(--testo); margin-top: 3px; }
.lang { display: flex; border: 1px solid var(--filetto); margin-left: auto; flex-shrink: 0; }
.lang button { width: 44px; height: 44px; border: 0; background: var(--tasto); font-family: var(--f-titolo); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--testo); }
.lang button[aria-pressed="true"] { background: var(--inchiostro); color: var(--carta); }

/* Corpo */
.main { flex: 1; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 12px; outline: none; }
.attesa { color: var(--testo); }
.eb { font-family: var(--f-titolo); font-weight: 700; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--testo); margin: 0; }
.ttl { font-family: var(--f-titolo); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--inchiostro); margin: 0; }
.rule { width: 48px; height: 2px; background: var(--rosso); border: 0; margin: 2px 0 4px; }
.sezione-eb { margin-top: 10px; }
.testo { margin: 0; font-size: 15px; line-height: 1.55; color: var(--testo); }
.testo b { color: var(--inchiostro); font-weight: 600; }

/* Fascia "Adesso" */
.now { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--filetto); color: var(--inchiostro); text-decoration: none; background: var(--tasto); text-align: left; width: 100%; }
.now-b { flex: 1; min-width: 0; }
.now-t { font-family: var(--f-titolo); font-weight: 700; font-size: 17px; color: var(--inchiostro); }
.now-s { font-size: 13px; line-height: 1.4; color: var(--testo); overflow-wrap: anywhere; }

/* Porte e riquadri */
.griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.porta, .tile { display: flex; flex-direction: column; gap: 6px; min-height: 112px; padding: 12px; border: 1px solid var(--filetto); background: var(--tasto); color: var(--inchiostro); text-decoration: none; }
.porta-t, .tile-t { font-family: var(--f-titolo); font-weight: 700; font-size: 19px; line-height: 1.15; color: var(--inchiostro); }
.porta-s, .tile-s { font-size: 12px; line-height: 1.4; color: var(--testo); }

/* Scheda */
.dato { font-family: var(--f-titolo); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--inchiostro); margin: 0; }
.campo { padding: 14px; border: 1px solid var(--filetto); background: var(--tasto); }
.campo-l { font-family: var(--f-titolo); font-weight: 700; font-size: 11px; letter-spacing: .25em; color: var(--testo); }
.campo-v { font-family: var(--f-titolo); font-weight: 700; font-size: 30px; line-height: 1.15; color: var(--inchiostro); margin-top: 6px; overflow-wrap: anywhere; }
.azioni { display: flex; flex-direction: column; gap: 8px; }

/* Pulsanti */
.primario { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 0; background: var(--inchiostro); color: var(--carta); font-family: var(--f-testo); font-weight: 600; font-size: 15px; text-decoration: none; text-align: center; }
.secondario { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid var(--filetto); background: var(--tasto); color: var(--inchiostro); font-family: var(--f-testo); font-weight: 600; font-size: 14px; text-decoration: none; text-align: center; }
.mini { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--filetto); background: var(--tasto); color: var(--inchiostro); font-weight: 600; font-size: 13px; text-decoration: none; flex-shrink: 0; }

/* Elenchi (ristoranti, parcheggi, botteghe) */
.filtri { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--filetto); background: var(--tasto); color: var(--inchiostro); font-weight: 600; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--carta); }
.elenco { list-style: none; margin: 0; padding: 0; }
.voce { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-top: 1px solid var(--filetto); }
.voce-b { flex: 1; min-width: 0; }
.voce-t { font-family: var(--f-titolo); font-weight: 700; font-size: 17px; color: var(--inchiostro); }
.voce-m { font-family: var(--f-titolo); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--testo); margin: 2px 0 4px; }
.voce-s { font-size: 13px; line-height: 1.45; color: var(--testo); }
.voce-a { display: flex; gap: 6px; flex-shrink: 0; }
.prezzo { font-family: var(--f-titolo); font-weight: 700; font-size: 17px; color: var(--inchiostro); white-space: nowrap; }

/* Mappa */
.mappa { height: 58vh; min-height: 320px; border: 1px solid var(--filetto); }
.leaflet-container { font-family: var(--f-testo); }

/* Piede */
.bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--filetto); background: var(--carta); }
.bar-t { font-family: var(--f-titolo); font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--inchiostro); }
.bar-s { font-size: 12px; color: var(--testo); }
.bar .primario { min-height: 46px; font-size: 14px; }

.nota { font-size: 12px; color: var(--testo); margin: 4px 0 0; }
.avviso { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--inchiostro); color: var(--carta); padding: 10px 16px; font-size: 14px; font-weight: 600; z-index: 20; max-width: calc(100% - 32px); }

.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.is { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

@media (max-width: 340px) {
  .griglia { grid-template-columns: minmax(0, 1fr); }
  .ttl { font-size: 24px; }
}

/* tocco: il tasto si scurisce leggermente sotto il dito */
.now:active, .porta:active, .tile:active, .secondario:active, .mini:active, .chip:active, .back:active, .lang button:active { background: var(--filetto); }
.primario:active { opacity: .85; }

/* barra in basso: Chiama + WhatsApp */
.bar-a { display: flex; gap: 6px; flex-shrink: 0; }
.bar .primario { padding: 0 14px; gap: 8px; }
.primario.wa { background: var(--verde-wa); }
@media (max-width: 380px) { .bar-s { display: none; } .bar .primario { padding: 0 11px; } }

/* riquadro «tienila sulla Home» */
.installa { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 14px 52px 14px 14px; border: 1px solid var(--inchiostro); }
.installa p { margin: 0; }
.installa .testo { font-size: 14px; }
.installa .testo .is { vertical-align: -3px; }
.installa-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--inchiostro); }
