/* CASALOCALE - programma del cliente: aspetto delle stanze «Il social del locale», «On Air» e «Area fit».
   Stesse regole di app.css: colori solo dalle variabili di tema (--testo, --carta, --inchiostro…) e dai colori del locale (--loc-…);
   le coppie «fondo fisso + testo fisso» (pulsante On Air, avatar) portano con sé il proprio fondo. */

/* ================= On Air ================= */
/* Il pulsante nella home: c'è solo a diretta accesa. Fondo scuro fisso + testo bianco: si legge in tutti e due i temi. */
.onair-btn { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #1A1A1A, #3A0F12); color: #FFFFFF; text-decoration: none; box-shadow: var(--ombra); border: 1.5px solid #E5342B; min-height: 64px; }
.onair-btn .onair-luce { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; background: #E5342B; color: #FFFFFF; font-weight: 800; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; border-radius: 10px; padding: 6px 10px; }
.onair-pallino { width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: onair-batte 1.6s ease-out infinite; }
@keyframes onair-batte { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.onair-btn .tx { flex: 1; min-width: 0; line-height: 1.25; }
.onair-btn .tx b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.onair-btn .tx small { display: block; font-size: 12.5px; color: #F3C9C6; }
.onair-btn .fr { font-size: 24px; flex: 0 0 auto; color: #F3C9C6; }
@media (min-width: 900px) { .onair-btn { max-width: 640px; margin-left: auto; margin-right: auto; } }
/* area titolare */
.onair-stato { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; }
.onair-stato .onair-pallino { background: #E5342B; box-shadow: 0 0 0 0 rgba(229, 52, 43, .6); animation-name: onair-batte-rosso; }
@keyframes onair-batte-rosso { 0% { box-shadow: 0 0 0 0 rgba(229, 52, 43, .6); } 100% { box-shadow: 0 0 0 9px rgba(229, 52, 43, 0); } }
.onair-stato .spento { width: 10px; height: 10px; border-radius: 50%; background: var(--grigio); }
.onair-promemoria { border: 1px solid var(--riga); border-radius: 14px; padding: 4px 12px 10px; margin-top: 14px; background: var(--avviso-fondo); color: var(--avviso-testo); }
.onair-promemoria b { display: block; margin-top: 8px; }
.onair-promemoria .chk { color: var(--avviso-testo); }
.btn.rosso { background: #C6261E; color: #FFFFFF; border: 1.5px solid #8E1812; }

/* ================= Il social del locale ================= */
.soc-av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; line-height: 1; background: #888888; color: #FFFFFF; overflow: hidden; }
.soc-av.pic { width: 30px; height: 30px; font-size: 16px; }
.soc-av.locale { background: var(--loc-crema); border: 1px solid var(--riga); }
.soc-av img { width: 100%; height: 100%; object-fit: contain; display: block; }
.soc-post { padding: 12px 14px; }
.soc-post.dal-locale { outline: 2px solid var(--inchiostro); }
.soc-su { display: flex; align-items: center; gap: 10px; }
.soc-su .chi { flex: 1; min-width: 0; line-height: 1.2; }
.soc-su .chi b { display: block; font-size: 15.5px; overflow-wrap: anywhere; }
.soc-su .chi small { color: var(--grigio); font-size: 12.5px; }
.soc-su .bollino { margin: 0; flex: 0 0 auto; }
.soc-foto { display: block; width: calc(100% + 28px); max-width: none; margin: 10px -14px 0; max-height: 460px; object-fit: cover; background: var(--morbido); min-height: 120px; }
.soc-testo { font-size: 16.5px; line-height: 1.4; margin: 10px 0 0; overflow-wrap: anywhere; }
.soc-azioni { display: flex; align-items: center; gap: 6px; margin-top: 10px; border-top: 1px solid var(--riga); padding-top: 6px; }
.soc-azioni button { min-height: 44px; border: 0; background: none; color: var(--testo); font-size: 15px; font-weight: 700; cursor: pointer; border-radius: 12px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; }
.soc-azioni .cuore[aria-pressed="true"] { color: #C6261E; background: var(--ko-fondo); }
.soc-azioni .spazio { flex: 1; }
.soc-azioni .collegamento { font-size: 12.5px; font-weight: 400; color: var(--grigio); padding: 0 6px; }
.soc-azioni .collegamento.armato { color: var(--ko-testo); font-weight: 700; text-decoration: none; }
.soc-commenti { margin-top: 6px; display: grid; gap: 8px; }
.soc-commento { display: flex; gap: 8px; align-items: flex-start; }
.soc-commento .bolla { flex: 1; min-width: 0; background: var(--morbido); border-radius: 4px 14px 14px 14px; padding: 7px 10px; font-size: 14.5px; overflow-wrap: anywhere; }
.soc-commento .bolla b { font-size: 13px; color: var(--inchiostro); margin-right: 6px; }
.soc-commento .collegamento { font-size: 12px; min-height: 32px; padding: 0 4px; flex: 0 0 auto; }
.soc-scrivi-commento { display: flex; gap: 8px; align-items: center; }
.soc-scrivi-commento input[type=text] { flex: 1; min-width: 0; margin: 0; }
.soc-scrivi-commento .btn { width: auto; margin: 0; padding: 0 14px; min-height: 46px; }
.soc-muro figcaption { color: var(--grigio); font-size: 12.5px; margin-top: 8px; }
.soc-attesa { border: 1.5px dashed var(--riga); box-shadow: none; }
.soc-contatore { text-align: right; font-size: 12px; color: var(--grigio); margin: 2px 0 0; }
.soc-scelte { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.soc-scelte button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--riga); background: var(--carta); font-size: 22px; cursor: pointer; padding: 0; }
.soc-scelte button[aria-pressed="true"] { border: 2.5px solid var(--inchiostro); background: var(--velo); }
.soc-scelte.colori button { border-radius: 50%; }
.soc-anteprima { position: relative; margin-top: 10px; }
.soc-anteprima img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; }
.soc-anteprima button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #FFFFFF; font-size: 20px; cursor: pointer; }
.soc-io { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.soc-io .chi { flex: 1; min-width: 0; }
.soc-io .chi b { display: block; overflow-wrap: anywhere; }
.soc-tit-post .riga2 { margin-top: 8px; }
.soc-io .collegamento { min-height: 36px; padding: 0; font-size: 12.5px; }
.soc-tit-post { border-top: 1px solid var(--riga); padding: 10px 0; }
.soc-tit-post:first-of-type { border-top: 0; }
.soc-tit-post .soc-testo { font-size: 15px; margin-top: 6px; }
.soc-tit-post .fila { margin-top: 8px; }
.soc-tit-comm { font-size: 13.5px; background: var(--morbido); border-radius: 10px; padding: 6px 10px; margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.soc-tit-comm span { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ================= Area fit ================= */
.fit-pillola { display: inline-block; background: var(--avviso-fondo); color: var(--avviso-testo); border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.fit-intro { display: flex; gap: 12px; align-items: center; }
.fit-intro .tx { flex: 1; min-width: 0; }
.fit-intro .tx b { font-size: 17px; display: block; }
.vignetta { display: block; color: var(--inchiostro); flex: 0 0 auto; }
.vignetta .pelle { fill: var(--loc-accento); stroke: currentColor; }
.vignetta .tratto { fill: none; stroke: currentColor; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.vignetta .sottile { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.vignetta .terra { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: .35; }
.vignetta .pieno { fill: currentColor; stroke: none; }
.vignetta .sole { fill: var(--loc-accento); stroke: none; opacity: .9; }
.fit-piatto { display: flex; align-items: center; gap: 10px; background: var(--carta); border-radius: 16px; padding: 10px 12px; box-shadow: var(--ombra); margin-bottom: 8px; }
.fit-piatto.scelto { outline: 2px solid var(--inchiostro); }
.fit-piatto .tx { flex: 1; min-width: 0; }
.fit-piatto .tx b { display: block; font-size: 15.5px; overflow-wrap: anywhere; }
.fit-piatto .tx small { color: var(--grigio); font-size: 13px; }
.fit-piatto .tx .bollino { margin: 0 0 0 4px; vertical-align: 1px; }
.fit-piatto .btn.pic { flex: 0 0 auto; }
.fit-quanti { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.fit-quanti button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--riga); background: var(--carta); color: var(--testo); font-size: 22px; font-weight: 700; cursor: pointer; }
.fit-quanti output { min-width: 34px; text-align: center; font-weight: 800; font-size: 17px; }
.fit-conto { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 6; background: linear-gradient(135deg, #1A1A1A, var(--loc-profondo)); color: #FFFFFF; border-radius: 18px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); margin-top: 12px; }
.senza-barra .fit-conto { bottom: calc(10px + env(safe-area-inset-bottom)); }
.fit-conto .tx { flex: 1; min-width: 0; line-height: 1.25; }
.fit-conto .tx b { display: block; font-size: 16px; }
.fit-conto .tx small { color: var(--loc-accento-su-scuro); font-size: 12.5px; }
.fit-conto .btn { width: auto; margin: 0; min-height: 46px; padding: 0 14px; background: var(--loc-accento); color: var(--loc-su-accento); border: 0; flex: 0 0 auto; }
.fit-totale { text-align: center; padding: 18px 14px; }
.fit-totale .numero { font-size: 40px; font-weight: 800; line-height: 1.05; color: var(--inchiostro); margin: 6px 0 4px; }
.fit-totale .festa { font-size: 18px; font-weight: 700; margin: 0; }
.fit-mossa { display: flex; gap: 12px; align-items: center; }
.fit-mossa .tx { flex: 1; min-width: 0; }
.fit-mossa .tx b { display: block; font-size: 16.5px; }
.fit-mossa .tx p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.4; }
.fit-mossa .tx small { display: block; color: var(--grigio); font-size: 13px; line-height: 1.35; margin-top: 4px; }
.fit-riga-fissa { background: var(--avviso-fondo); color: var(--avviso-testo); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; text-align: center; margin: 12px 0; }
.fit-scelti { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.fit-scelti li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--riga); }
.fit-scelti li:last-child { border-bottom: 0; }
.fit-scelti li span:last-child { white-space: nowrap; color: var(--grigio); }
.fit-sfida .pos { box-shadow: none; background: var(--morbido); }
.fit-tit-voce { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--riga); }
.fit-tit-voce:first-of-type { border-top: 0; }
.fit-tit-voce .nm { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.fit-tit-voce .nm small { display: block; font-weight: 400; color: var(--grigio); font-size: 12.5px; }
.fit-tit-voce .nm small.ko { color: var(--ko-testo); }
.fit-tit-voce input { width: 96px; flex: 0 0 96px; margin: 0; text-align: right; }
#socScrivi > .btn { margin-bottom: 14px; }
