/* ============================================================
   Le Marzoline – Stile principale
   ============================================================ */

/* Palette colori */
:root {
    --verde-marzoline: #6b8c3e;
    --verde-hover:     #5a7634;
    --grigio-label:    #6c6c6c;
    --grigio-bordo:    #d0d0d0;
    --bianco-carta:    #ffffff;
    --sfondo:          #f0ede8;
}

/* Base */
html,body {
    background-color: var(--sfondo);
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

/* Card centrale */
.main-wrapper {
    padding: 2rem 1rem;
}

.form-card {
    background: var(--bianco-carta);
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 680px;
}

/* Logo */
.logo-main {
    max-width: 200px;
    height: auto;
}

.form-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--grigio-label);
    margin-bottom: 0;
    text-transform: uppercase;
}

/* Righe label + input affiancati */
.form-row-inline {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.form-label-inline {
    width: 160px;
    min-width: 160px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--grigio-label);
    padding-top: 0.45rem;
    text-transform: uppercase;
}

.form-input-wrapper {
    flex: 1;
}

/* Campi input */
.form-control,
.form-select {
    border: 1px solid var(--grigio-bordo);
    border-radius: 2px;
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--verde-marzoline);
    box-shadow: 0 0 0 0.2rem rgba(107,140,62,0.20);
}

/* Captcha */
.captcha-input {
    max-width: 100px;
}

/* Calendario settimanale */
.week-picker {
    background: #fff;
    border: 1px solid var(--grigio-bordo);
    border-radius: 3px;
    padding: 0.6rem 0.8rem;
    display: inline-block;
}

.week-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.week-days {
    display: flex;
    gap: 0.3rem;
}

.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    transition: background 0.15s;
    min-width: 40px;
}

.week-day input[type="radio"] {
    display: none;
}

.day-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--grigio-label);
    text-transform: uppercase;
}

.day-num {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.week-day:hover:not(.disabled) {
    background: #e8f0dc;
}

.week-day.disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    pointer-events: none;
}

.week-day.disabled .day-name,
.week-day.disabled .day-num {
    color: #bbb;
}

.week-day.selected,
.week-day:has(input:checked) {
    background: var(--verde-marzoline);
}

.week-day.selected .day-name,
.week-day.selected .day-num,
.week-day:has(input:checked) .day-name,
.week-day:has(input:checked) .day-num {
    color: #fff;
}

.is-invalid-container .week-picker {
    border-color: #dc3545;
}

/* Bottone conferma */
.btn-prenotazione {
    background-color: var(--verde-marzoline);
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 0.65rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-prenotazione:hover {
    background-color: var(--verde-hover);
    color: #fff;
}

/* reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-notice {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.recaptcha-notice a {
    color: #6c757d;
}

/* Logo 3A Sistemi */
.logo-3a {
    position: fixed;
    bottom: 1rem;
    right: 1.2rem;
    z-index: 100;
}

.logo-3a img {
    max-width: 35px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.logo-3a img:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 576px) {
    .form-card {
        padding: 1.5rem 1rem;
    }

    .form-row-inline {
        flex-direction: column;
        gap: 0.2rem;
    }

    .form-label-inline {
        width: auto;
        text-align: left;
        padding-top: 0;
    }

    .form-input-wrapper,
    .form-control,
    .form-select {
        width: 100%;
    }

    .week-picker {
        width: 100%;
        box-sizing: border-box;
    }

    .week-days {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .week-day {
        min-width: 0;
        flex: 1;
        padding: 0.3rem 0.2rem;
    }
}
