/* public/css/style.css */
:root {
    --primary: #0056b3;
    --primary-hover: #004085;
    --bg: #f4f7f9;
    --card-bg: #ffffff;
    --text: #333333;
    --green: #2ba745;
    --green-bg: #e8f5e9;
    --gray-border: #cccccc;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 15px;
    display: flex;
    justify-content: center;
}
.container {
    max-width: 650px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
h1 {
    font-size: 1.4rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 5px;
}
p.subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}
.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 6px;
    color: #444;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 5px;
}
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
}
.row-2 {
    display: flex;
    gap: 12px;
}
.row-2 > div, .row-2 > button {
    flex: 1;
}
#notice-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-bottom: 15px;
    display: none;
}
.slot-card {
    border: 2px solid var(--gray-border);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.slot-card.green {
    border-color: var(--green);
    background-color: var(--green-bg);
}
.slot-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}
.slot-time {
    font-weight: bold;
    font-size: 1rem;
}
.slot-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}
.badge-green {
    background-color: var(--green);
    color: white;
}
.badge-gray {
    background-color: #e2e8f0;
    color: #4a5568;
}
button.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s;
}
button.btn-primary:hover {
    background-color: var(--primary-hover);
}
button.btn-secondary {
    width: 100%;
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s;
}
button.btn-secondary:hover {
    background-color: #5a6268;
}
button.btn-danger {
    width: 100%;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s;
}
button.btn-danger:hover {
    background-color: #bd2130;
}
.step-page {
    display: none;
}
.step-page.active {
    display: block;
}
.maintenance-details {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.88rem;
}
.maintenance-details h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: var(--primary);
}
.maintenance-details ul {
    margin: 0 0 10px 0;
    padding-left: 20px;
}
.maintenance-details li {
    margin-bottom: 4px;
}

/* INIZIO MODIFICA: Regole di adattamento per schermi di smartphone */
@media (max-width: 600px) {
    body {
        padding: 0; /* Rimuove lo spazio grigio esterno */
        background-color: var(--card-bg); /* Uniforma lo sfondo */
    }
    .container {
        border-radius: 0; /* Toglie gli angoli arrotondati, occupando tutto lo schermo come un'app */
        padding: 15px; /* Riduce lo spazio bianco interno */
        box-shadow: none; /* Rimuove l'ombra inutile su mobile */
    }
    .row-2 {
        flex-direction: column; /* Impila i campi affiancati e i bottoni uno sotto l'altro */
        gap: 15px;
    }
    .row-2 > button, .row-2 > div {
        margin-top: 0; /* Resetta i margini dei bottoni se incolonnati */
    }
}
/* FINE MODIFICA */

/* --- INIZIO STILI INTRO ANIMATA --- */
.intro-container {
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInMove 1.2s ease-out forwards;
}
.logo-placeholder {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}
.welcome-text {
    font-size: 16px;
    color: #555;
    max-width: 480px;
    margin: 15px auto;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInText 1s ease-out 0.8s forwards;
}
.skip-link {
    display: inline-block;
    margin-top: 30px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    opacity: 0;
    animation: fadeInText 1s ease-out 1.5s forwards; /* Appare per ultimo */
}
.skip-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
@keyframes fadeInMove {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
/* --- FINE STILI INTRO ANIMATA --- */
