/* --- VARIABILI E BASE --- */
:root { 
    --primary-color: #34495e; 
    --accent-color: #27ae60; 
    --bg-color: #f4f7f6; 
}

body { 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    background: var(--bg-color); 
    margin: 0; 
    padding: 10px; 
    color: #333; 
}

.wrapper { 
    max-width: 600px; 
    margin: 0 auto; 
    padding-bottom: 40px; 
}

h2 { 
    text-align: center; 
    color: var(--primary-color); 
    margin: 20px 0; 
    font-size: 1.5rem; 
}

/* --- LOGO CONTAINER --- */
.logo-container {
    background: #ffffff; 
    padding: 15px; 
    border-radius: 10px; 
    border: 1px solid #d0e3ff; 
    max-width: 600px; 
    margin: 10px auto;
    text-align: center;
}

.logo-container img {
    width: 250px;
    height: auto;
}

/* --- CALENDARIO --- */
#calendar { 
    background: white; 
    padding: 10px; 
    border-radius: 15px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    margin-bottom: 20px; 
}

.giorno-chiuso-cliente { 
    background-color: #ffebee !important; 
    color: #c62828 !important; 
    cursor: not-allowed !important; 
}

/* --- FORM E INPUT --- */
.form-prenota { 
    background: white; 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
}

.form-group { margin-bottom: 15px; }

label { 
    font-weight: 600; 
    font-size: 0.9rem; 
    display: block; 
    margin-bottom: 8px; 
    color: var(--primary-color); 
}

input, select, textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    box-sizing: border-box; 
    font-size: 1rem; 
}

.flex-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

button { 
    width: 100%; 
    padding: 15px; 
    background: var(--accent-color); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.3s; 
}

button:hover { opacity: 0.9; }

/* --- SELETTORE SERVIZIO (NUOVO) --- */
.servizio-selector { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.servizio-btn { 
    background: #fff; 
    border: 2px solid #eee; 
    border-radius: 12px; 
    padding: 15px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.servizio-btn.active { 
    border-color: var(--accent-color); 
    background-color: #e8f5e9; 
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}

.servizio-btn h3 { margin: 0; font-size: 1rem; color: var(--primary-color); }
.servizio-btn p { margin: 5px 0 0; font-size: 0.75rem; color: #7f8c8d; }

/* --- TESSERA E PRIVACY --- */
.tessera-box {
    background: #f0f7ff; 
    padding: 15px; 
    border-radius: 10px; 
    border: 1px solid #d0e3ff;
}

.consenso-wrapper { 
    background: #fdfdfd; 
    border: 2px solid #eee; 
    border-radius: 12px; 
    padding: 15px; 
    margin: 20px 0; 
}

.consenso-label { display: flex; align-items: center; cursor: pointer; }
.consenso-label input { display: none; }

.custom-checkbox { 
    height: 25px; 
    width: 25px; 
    background-color: #eee; 
    border-radius: 6px; 
    margin-right: 15px; 
    flex-shrink: 0; 
    border: 2px solid #ddd; 
    position: relative; 
}

.consenso-label input:checked ~ .custom-checkbox { 
    background-color: #25D366; 
    border-color: #128C7E; 
}

.custom-checkbox:after { 
    content: ""; 
    position: absolute; 
    display: none; 
    left: 8px; top: 4px; 
    width: 5px; height: 10px; 
    border: solid white; 
    border-width: 0 3px 3px 0; 
    transform: rotate(45deg); 
}

.consenso-label input:checked ~ .custom-checkbox:after { display: block; }

/* --- MODALI E FOOTER --- */
.modal-privacy { 
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-privacy-content { 
    background-color: white; 
    margin: 10% auto; 
    padding: 20px; 
    border-radius: 15px; 
    width: 80%; 
    max-width: 600px; 
    max-height: 70vh; 
    overflow-y: auto; 
    position: relative; 
}

.close-privacy { 
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
}

.footer-link { 
    text-align: center; 
    margin-top: 20px; 
    font-size: 12px; 
    color: #7f8c8d; 
}

.footer-link a { 
    color: #34495e; 
    text-decoration: underline; 
    cursor: pointer; 
}

#cookie-banner {
    display:none; 
    position:fixed; 
    bottom:20px; 
    left:50%; 
    transform:translateX(-50%); 
    width:90%; 
    max-width:500px; 
    background:#34495e; 
    color:white; 
    padding:15px; 
    border-radius:12px; 
    z-index:9999; 
    text-align:center;
}
/* Rimuove la sottolineatura dai numeri del calendario FullCalendar */
#calendar a {
    text-decoration: none !important;
    color: inherit; /* Mantiene il colore originale del testo */
}

/* Opzionale: toglie la sottolineatura anche quando ci passi sopra col mouse */
#calendar a:hover {
    text-decoration: none !important;
}