/* ==========================================================================
   Menu Restaurant QR - Stile responsive, colori neutri e professionali
   ========================================================================== */

/* ---- Variabili colore: cambia qui per ribrandizzare velocemente ---- */
:root {
    --bg:        #f4f1ec;   /* sfondo pagina, beige neutro */
    --card:      #ffffff;   /* sfondo della card */
    --text:      #2b2b2b;   /* testo principale */
    --muted:     #6b6b6b;   /* testo secondario */
    --accent:    #3a3a3a;   /* bottoni / accenti scuri */
    --accent-h:  #1d1d1d;   /* accento in hover */
    --border:    #e3ddd3;   /* bordi morbidi */
    --flame:     #c0392b;   /* rosso fiamma del logo Maddalena */
    --flame-h:   #a02d22;
    --radius:    14px;
    --shadow:    0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ---- Reset di base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ---- Card centrale ---- */
.card {
    background: var(--card);
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 32px;
    text-align: center;
}

/* ---- Header ---- */
.logo {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    margin-bottom: 18px;
}

.title {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.info {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.info p { margin: 2px 0; }
.info a { color: var(--muted); text-decoration: none; }
.info a:hover { text-decoration: underline; }

/* ---- Bottoni lingua ---- */
.languages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 16px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.lang-btn:hover  { background: var(--accent-h); }
.lang-btn:active { transform: scale(0.98); }

/* ---- Social ---- */
.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    margin-bottom: 22px;
}

.socials a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.socials a:hover { color: var(--accent-h); text-decoration: underline; }

/* ---- Footer ---- */
.footer {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---- Mobile: padding ridotto ---- */
@media (max-width: 480px) {
    .card  { padding: 32px 20px; }
    .title { font-size: 1.45rem; }
}

/* ==========================================================================
   SPLASH DI CARICAMENTO
   ========================================================================== */
.splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(160deg, #fbf9f5 0%, #f0ebe2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 28px;
    opacity: 1;
    transition: opacity 0.6s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }

.splash-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.splash-logo {
    width: 80%;
    max-width: 280px;
    height: auto;
    /* leggera comparsa + respiro */
    animation: pop 0.6s ease both, breathe 2.2s ease-in-out 0.6s infinite;
}

/* Tre puntini di caricamento nel rosso del logo */
.splash-dots { display: flex; gap: 9px; }
.splash-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--flame);
    animation: blink 1.4s infinite both;
}
.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Mini-promo affittacamere nello splash */
.promo {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    animation: pop 0.6s ease 0.3s both;
}
.promo-img {
    width: 76px; height: 76px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.promo-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.promo-kicker { font-size: 0.72rem; color: var(--muted); }
.promo-text strong { font-size: 0.98rem; line-height: 1.2; }
.promo-cta { font-size: 0.8rem; color: var(--flame); font-weight: 600; }

/* ==========================================================================
   CARD AFFITTACAMERE (in pagina)
   ========================================================================== */
.rooms-card {
    position: relative;
    display: block;
    margin: 4px 0 28px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 7;
}
.rooms-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.rooms-card:hover .rooms-bg { transform: scale(1.05); }
.rooms-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%);
    text-align: left;
}
.rooms-kicker { font-size: 0.74rem; letter-spacing: 0.5px; text-transform: uppercase; opacity: 0.95; }
.rooms-title  { font-size: 1.05rem; line-height: 1.2; }
.rooms-cta {
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--flame);
    padding: 4px 10px;
    border-radius: 999px;
}

/* ==========================================================================
   ANIMAZIONI
   ========================================================================== */
@keyframes pop {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}
@keyframes blink {
    0%, 80%, 100% { opacity: 0.25; }
    40%           { opacity: 1; }
}

/* Rispetta chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
    .splash-logo, .splash-dots span, .promo { animation: none; }
}
