/* ===========================
   PAGINA CONTATTI
   =========================== */
.contact-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    min-height: 100vh;
    padding: 2rem;
    flex-direction: column;
    position: relative; /* serve per la barra top */
}


/* Contenitore form */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    margin-top: 6rem; /* spazio sotto la barra */
}

.contact-form h1 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

.contact-form p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Label e input */
.contact-form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0.25rem rgba(0, 123, 255, 0.15);
    outline: none;
}

/* Pulsante */
.contact-form button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

/* Mobile */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        margin-top: 5.5rem;
    }

    .top-bar .btn-home-top {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
}
