/* Prenotazione Open House — si appoggia a vetrina.css (variabili del marchio,
   intestazione e piè di pagina) e aggiunge solo i pezzi della prenotazione.
   La pagina si apre quasi sempre dal telefono: tutto è pensato prima per lì. */

.oh-main { max-width: 680px; padding: 20px 16px 40px; }

.oh-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

/* --- INTESTAZIONE: L'IMMOBILE E LA DATA --- */
.oh-intestazione { padding: 0; overflow: hidden; }
.oh-foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.oh-intestazione-corpo { padding: 18px 20px 20px; }
.oh-etichetta {
    display: inline-block;
    background: var(--rosso); color: #fff;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.oh-titolo { font-size: 1.35rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.oh-titolo span { font-weight: 600; color: var(--text); }
.oh-dettagli { color: var(--text-muted); margin-top: 6px; font-size: 0.92rem; }
.oh-prezzo { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-top: 8px; }
.oh-quando {
    margin-top: 14px; padding: 10px 12px;
    background: #eef8fd; border-left: 4px solid var(--azzurro); border-radius: 8px;
    font-weight: 700; color: var(--navy);
}
.oh-link-scheda {
    display: inline-block; margin-top: 12px;
    color: var(--azzurro); font-weight: 600; text-decoration: none; font-size: 0.92rem;
}

/* --- MODULO --- */
.oh-passo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.05rem; color: var(--navy); margin: 4px 0 14px;
}
.oh-passo span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 0.85rem;
}
.oh-passo:not(:first-child) { margin-top: 26px; }

.oh-fasce { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.oh-fascia {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 12px 14px;
    background: var(--bg-white); color: var(--text);
    border: 2px solid var(--border); border-radius: 10px;
    font: inherit; text-align: left; cursor: pointer;
}
.oh-fascia:hover:not(:disabled) { border-color: var(--azzurro); }
.oh-fascia-ora { font-weight: 800; font-size: 1.02rem; color: var(--navy); }
.oh-fascia-posti { font-size: 0.82rem; color: #1a9c4a; font-weight: 600; }
.oh-fascia.oh-scelta { border-color: var(--navy); background: var(--navy); }
.oh-fascia.oh-scelta .oh-fascia-ora, .oh-fascia.oh-scelta .oh-fascia-posti { color: #fff; }
.oh-fascia.oh-piena { background: #f4f6f9; cursor: not-allowed; }
.oh-fascia.oh-piena .oh-fascia-ora { color: var(--text-muted); text-decoration: line-through; }
.oh-fascia.oh-piena .oh-fascia-posti { color: var(--rosso); }

.oh-riga { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.oh-campo { margin-bottom: 12px; min-width: 0; }
.oh-campo label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.oh-campo input, .oh-campo select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1; border-radius: 8px;
    /* 16px: sotto questa misura l'iPhone ingrandisce la pagina al tocco */
    font: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.oh-campo input:focus, .oh-campo select:focus { outline: 2px solid var(--azzurro); border-color: var(--azzurro); }

.oh-esca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.oh-spunta { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 0.88rem; line-height: 1.45; cursor: pointer; }
.oh-spunta input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; accent-color: var(--navy); }
.oh-spunta a { color: var(--azzurro); }
.oh-spunta em { color: var(--text-muted); font-style: normal; font-size: 0.8rem; }
.oh-informativa {
    font-size: 0.8rem; line-height: 1.55; color: var(--text-muted);
    background: #f8fafc; border-radius: 8px; padding: 12px; margin: 6px 0 10px;
}

.oh-errore {
    background: #fdecec; color: #a40e15; border: 1px solid #f5b5b8;
    border-radius: 8px; padding: 11px 13px; margin: 12px 0; font-weight: 600; font-size: 0.92rem;
}

.oh-btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--navy); color: #fff;
    border: none; border-radius: 10px;
    font: inherit; font-weight: 700; text-decoration: none; text-align: center;
    cursor: pointer;
}
.oh-btn:hover { background: #002a60; }
.oh-btn:disabled { opacity: 0.6; cursor: wait; }
.oh-btn-grande { width: 100%; padding: 15px; font-size: 1.05rem; margin-top: 8px; background: var(--rosso); }
.oh-btn-grande:hover { background: #c50e17; }
.oh-btn-chiaro { background: #fff; color: var(--navy); border: 1px solid var(--border); margin-top: 10px; }
.oh-btn-chiaro:hover { background: #f4f6f9; }

.oh-chiama {
    display: block; margin-top: 16px; padding: 12px;
    border: 2px solid var(--navy); border-radius: 10px;
    color: var(--navy); font-weight: 700; text-decoration: none; text-align: center;
}

/* --- MESSAGGI (chiuso, concluso, esaurito, link non valido) --- */
.oh-messaggio { text-align: center; padding: 30px 22px; }
.oh-messaggio-icona { font-size: 2.6rem; margin-bottom: 8px; }
.oh-messaggio h2 { color: var(--navy); margin-bottom: 8px; }
.oh-messaggio p { color: var(--text-muted); line-height: 1.5; margin-bottom: 6px; }

/* --- CONFERMA --- */
.oh-conferma { text-align: center; padding: 30px 22px; }
.oh-conferma-spunta {
    width: 64px; height: 64px; margin: 0 auto 12px;
    border-radius: 50%; background: #1a9c4a; color: #fff;
    font-size: 2rem; font-weight: 800; line-height: 64px;
}
.oh-conferma h1 { color: var(--navy); font-size: 1.5rem; }
.oh-conferma-grazie { color: var(--text-muted); margin: 6px 0 16px; }
.oh-conferma-box { background: #eef8fd; border-radius: 10px; padding: 16px; text-align: left; }
.oh-conferma-riga { margin: 6px 0; line-height: 1.45; overflow-wrap: anywhere; }
.oh-conferma-box .oh-btn { display: block; }
.oh-nota { font-size: 0.86rem; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }

@media (max-width: 520px) {
    .oh-riga { grid-template-columns: 1fr; gap: 0; }
    .oh-fasce { grid-template-columns: 1fr 1fr; }
    .vt-logo img { height: 48px; }
    .oh-card { padding: 16px; }
    .oh-intestazione-corpo { padding: 16px; }
}

/* --- DISDETTA E CALENDARIO --- */
.oh-conferma-box .oh-btn + .oh-btn { margin-top: 8px; }
.oh-link-disdetta {
    display: inline-block; margin-top: 14px;
    color: var(--rosso); font-weight: 600; font-size: 0.9rem;
}
