/*
Theme Name: TL-ML Child
Template: toplocal
Description: Tema child per il progetto ML Studio.
 * Version: 1.0.15
 * Author: Enrico Gobbi
 */

/* Reset Browser Margins for Full Width Templates */
body,
html {
    margin: 0;
    padding: 0;
}

.wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
}

/* Fix WordPress Core Layout Margins */
:root :where(.is-layout-constrained)>* {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Contact Form 7 Styles */
/* Container generale */
.ml-form-container {
    background: #fff;
    padding: 20px;
}

/* Gestione Righe e Colonne */
.ml-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.ml-form-col {
    flex: 1;
    min-width: 250px;
}

.ml-form-col.full-width {
    flex: 0 0 100%;
}

/* Etichette (Label) */
.ml-form-container label {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* Campi di Input e Textarea */
.ml-form-container input[type="text"],
.ml-form-container input[type="email"],
.ml-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #f2f2f2;
    background-color: #f9f9fb;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.ml-form-container textarea {
    height: 120px;
}

/* Pulsante Invio */
.ml-form-submit input[type="submit"] {
    width: 100%;
    background-color: #2563eb;
    /* Colore blu simile all'originale */
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ml-form-submit input[type="submit"]:hover {
    background-color: #1d4ed8;
}

/* Responsive per mobile */
@media (max-width: 600px) {
    .ml-form-col {
        flex: 0 0 100%;
    }
}

/* Mobile Menu Active State Overrides */
/* Only invert if header is transparent (absolute) */
#master-header.mobile-menu-active.absolute img[alt="ML Technology Logo"] {
    filter: invert(1) brightness(0);
}

#master-header.mobile-menu-active.absolute #mobile-menu-toggle {
    color: #111827;
    /* slate-900 */
}