/* ==========================================================================
   AMUNÌ TOURISM — MANGIARE (mobile, allineata alla home già approvata)
   Stessa logica di prima (ricerca, card dinamiche, cambio lingua):
   qui cambia solo l'aspetto.
   ========================================================================== */

:root {
    --sky: #5B8FAE;
    --sea: #1B4965;
    --sea-ink: #14283A;

    --stone: #EFE6D3;
    --stone-dim: #DCCFAF;

    --terracotta: #C1622D;
    --terracotta-dark: #9C4C22;

    --gold: #B8873B;
    --gold-light: #D4AF6A;

    --ink: #22303B;
    --ink-soft: #465563;

    --shadow-soft: rgba(0, 0, 0, 0.18);
    --shadow-strong: rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--stone);
    color: var(--ink);
    min-height: 100vh;
}

/* ==========================================================================
   SFONDO — piatto pietra, come tutte le pagine interne (solo la home
   mobile ha la foto del borgo, esattamente come sul desktop)
   ========================================================================== */
.scene-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--stone);
}

.scene-background::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(60, 40, 20, 0.16) 100%);
    pointer-events: none;
}

/* ==========================================================================
   DASHBOARD — identica a quella della home mobile, con il bottone home
   al posto del toggle audio
   ========================================================================== */
.dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 65px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(15, 25, 34, 0.92);
    backdrop-filter: blur(18px) saturate(200%);
    border-bottom: 2px solid var(--gold);
    z-index: 1000;
}

.logo-container {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gold-light);
    white-space: nowrap;
}

.right-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 100%;
}

.btn-home {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 230, 211, 0.08);
    border: 1px solid var(--gold);
    border-radius: 2px;
    text-decoration: none;
    font-size: 1rem;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-switcher button {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 2px;
    background: rgba(239, 230, 211, 0.08);
    border: 1px solid rgba(239, 230, 211, 0.4);
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lang-switcher button.active {
    border-color: var(--gold);
    background: rgba(184, 135, 59, 0.25);
    color: var(--gold-light);
}

/* ==========================================================================
   CONTENUTO
   ========================================================================== */
.scroll-content {
    padding-top: 100px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
}

.search-container {
    margin-bottom: 18px;
    width: 100%;
}

.search-bar {
    width: 100%;
    padding: 12px 16px;
    background: var(--stone-dim);
    border: 1px solid var(--gold);
    border-radius: 2px;
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.search-bar::placeholder {
    color: var(--ink-soft);
    opacity: 0.7;
}

.search-bar:focus {
    border-color: var(--terracotta);
}

/* ==========================================================================
   CARD CIBO — stesso trattamento delle card della home (vetro scuro,
   bordo oro), qui su sfondo pietra invece che sulla foto del borgo
   ========================================================================== */
.food-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.food-card {
    display: block;
    text-decoration: none;
    color: var(--stone);
    background: rgba(15, 25, 34, 0.88);
    border: 1px solid var(--gold);
    border-radius: 2px;
    padding: 18px;
    box-shadow: 0 6px 16px var(--shadow-soft);
    transition: border-color 0.2s ease;
}

.food-card:active {
    border-color: var(--terracotta);
}

.food-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.food-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
}

.badge {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--terracotta);
    font-weight: 700;
    background: rgba(239, 230, 211, 0.1);
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

.food-card-desc {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--stone);
    margin-bottom: 10px;
}

.food-card-btn {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-light);
}

/* ==========================================================================
   CARD ALLOGGI (dormire.html) — stesso vetro scuro delle card cibo,
   layout orizzontale nome + pulsante prenota
   ========================================================================== */
#sleep-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sleep-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(15, 25, 34, 0.88);
    border: 1px solid var(--gold);
    border-radius: 2px;
    padding: 16px 18px;
    text-decoration: none;
    box-shadow: 0 6px 16px var(--shadow-soft);
    transition: border-color 0.2s ease;
}

.sleep-card:active {
    border-color: var(--terracotta);
}

.sleep-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--gold-light);
}

.btn-view {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--terracotta);
    padding: 8px 14px;
    border-radius: 2px;
    white-space: nowrap;
}
.btn-home svg {
    color: var(--gold-light);
}
