/* =========================================================
   prenota.css — Prenotazione Prima Visita Centro Leone
   Mobile-first. Palette #456789 (primario), #e67e22 (accento),
   #25D366 (whatsapp). Font Roboto caricato da common.css.
   ========================================================= */

/* Main: spazio per l'header fisso di common.css */
.prenota-main {
    padding-top: 140px;
    padding-bottom: 0;
    background: #fff;
}

/* ===== Hero ===== */
.prenota-hero {
    text-align: center;
    padding: 20px 0 30px;
}

.prenota-hero .section-title {
    font-size: 2.2rem;
}

.prenota-intro {
    max-width: 620px;
    margin: 30px auto 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

/* ===== Area slot ===== */
.prenota-slots-section {
    padding: 20px 0 60px;
}

/* Stati (loading / error / empty) */
.prenota-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.prenota-state i {
    font-size: 3rem;
    color: #456789;
    margin-bottom: 20px;
    display: block;
}

.prenota-state p {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.prenota-state-sub {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 20px;
}

.prenota-state-error i {
    color: #c0392b;
}

.btn-retry {
    margin-top: 20px;
    padding: 12px 28px;
    background: #456789;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-retry:hover {
    background: #e67e22;
}

/* ===== Flash message ===== */
.prenota-flash {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c3;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== Griglia slot (max 4 card) ===== */
.prenota-slot-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .prenota-slot-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Slot card (bottone) ===== */
.slot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 14px;
    background: #fff;
    border: 2px solid #456789;
    border-radius: 12px;
    color: #456789;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    min-height: 90px;
}

.slot-card:hover:not(:disabled) {
    background: #456789;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(69, 103, 137, 0.25);
}

.slot-card:hover:not(:disabled) .slot-practitioner {
    color: rgba(255, 255, 255, 0.75);
}

.slot-card:active:not(:disabled) {
    transform: translateY(0);
}

.slot-card:disabled {
    opacity: 0.5;
    cursor: wait;
}

.slot-date {
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.slot-time {
    font-weight: 700;
    font-size: 1.35rem;
    margin: 4px 0 6px;
}

.slot-practitioner {
    font-size: 0.78rem;
    color: #888;
    transition: color 0.2s;
}

/* ===== Sezione contatti fallback ===== */
.prenota-contacts {
    background: #f5f7fa;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #e6e6e6;
}

.prenota-contacts h2 {
    color: #456789;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.prenota-contacts p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

.prenota-contact-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ===== Bottoni generici ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.2s;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: #456789;
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .prenota-main {
        padding-top: 110px;
    }

    .prenota-hero .section-title {
        font-size: 1.8rem;
    }

    .prenota-intro {
        font-size: 0.98rem;
        padding: 0 10px;
    }

    .prenota-contacts {
        padding: 40px 0;
    }

    .prenota-contacts h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .prenota-main {
        padding-top: 100px;
    }

    .prenota-contact-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }

    .btn {
        justify-content: center;
    }
}
