/* =========================================================
   Mom's Cooking - Custom Overrides for HTML5 UP Eventually
   Load AFTER assets/css/main.css
   v1.4 – fix overflow mobile Android
   ========================================================= */

:root {
    --brand: #D633FF;
    --text: rgba(255, 255, 255, 0.75);
    --textSoft: rgba(255, 255, 255, 0.6);
}

/* Prevent horizontal scroll on ALL devices */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Readability */
body, input, select, textarea {
    color: var(--text) !important;
}

p, li, label {
    color: var(--text) !important;
}

/* Brand headings */
#header h1, h1, h2 {
    color: var(--brand) !important;
}

#bg {
    z-index: 1 !important;
}

body > * {
    position: relative;
    z-index: 2;
}

/* =========================================================
   Top Nav Pills
   ========================================================= */
.top-nav {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 1.5em 0;
    padding: 0 1em;
    box-sizing: border-box;
}

    .top-nav a {
        height: auto !important;
        align-self: flex-start;
        border-bottom: none !important;
        text-decoration: none !important;
        font-weight: 700;
        color: var(--brand) !important;
        border: 2px solid var(--brand);
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 0.9rem;
        line-height: 1;
        white-space: nowrap;
        box-sizing: border-box;
    }

        .top-nav a:hover,
        .top-nav a.active {
            background: var(--brand);
            color: #fff !important;
        }

/* =========================================================
   Header
   ========================================================= */
#header {
    height: auto !important;
    min-height: auto !important;
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

    #header h1, #header p {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

/* =========================================================
   FIX #1 - Footer: rimuove pallino icona email
   ========================================================= */
#footer ul.icons,
#footer ul.icons li,
ul.icons,
ul.icons li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#footer .copyright {
    list-style: none;
    padding: 0;
}

/* =========================================================
   Form 2-column layout
   ========================================================= */
#signup-form {
    display: block !important;
    max-width: 1000px;
    margin: 2em auto;
}

.form-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.form-left {
    flex: 1;
}

.form-right {
    flex: 1.2;
}

#signup-form input,
#signup-form textarea {
    width: 100% !important;
    margin-bottom: 18px;
}

#signup-form textarea {
    min-height: 220px;
    resize: vertical;
}

#signup-form button {
    display: block;
    margin: 1.5em auto 0 auto;
    padding: 0 2.5em;
}

@media screen and (max-width: 768px) {
    .form-wrapper {
        flex-direction: column;
    }
}

/* =========================================================
   FIX #2 - Form inquiry: testi leggibili su sfondo scuro
   ========================================================= */
.styled-form,
.styled-form * {
    box-sizing: border-box;
}

.styled-form {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(214, 51, 255, 0.3);
    border-radius: 12px;
    padding: 2em;
    max-width: 720px;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

    .styled-form h2 {
        color: var(--brand) !important;
        font-size: 1.1rem;
        margin: 1.5em 0 0.75em;
        border-bottom: 1px solid rgba(214, 51, 255, 0.2);
        padding-bottom: 0.3em;
    }

    .styled-form input[type="text"],
    .styled-form input[type="email"],
    .styled-form input[type="number"],
    .styled-form input[type="tel"],
    .styled-form select,
    .styled-form textarea {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(214, 51, 255, 0.4);
        border-radius: 6px;
        padding: 10px 14px;
        width: 100%;
        margin-bottom: 14px;
    }

        .styled-form input::placeholder,
        .styled-form textarea::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .styled-form input:focus,
        .styled-form select:focus,
        .styled-form textarea:focus {
            border-color: var(--brand);
            outline: none;
            background: rgba(214, 51, 255, 0.08);
        }

        .styled-form select option {
            background: #1a001a;
            color: #fff;
        }

    .styled-form textarea {
        min-height: 130px;
        resize: vertical;
    }

    .styled-form label,
    .checkbox-group label,
    .gdpr-consent {
        color: #fff !important;
        font-size: 0.9rem;
    }

        .gdpr-consent a {
            color: var(--brand) !important;
        }

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

    .checkbox-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: normal;
    }

    .checkbox-group input[type="checkbox"] {
        accent-color: var(--brand);
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

.gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.82rem;
}

    .gdpr-consent input[type="checkbox"] {
        accent-color: var(--brand);
        margin-top: 2px;
        flex-shrink: 0;
    }

.primary-btn,
.styled-form button[type="submit"] {
    width: 100%;
    margin-top: 1.5em;
    padding: 13px;
    background: var(--brand);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .primary-btn:hover,
    .styled-form button[type="submit"]:hover {
        background: #c020ee;
    }

/* =========================================================
   Mobile: fix overflow Android + stop Eventually flex
   ========================================================= */
@media screen and (max-width: 980px) {
    html, body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        display: block !important;
        padding: 5.5em 1.2em 2em 1.2em !important;
    }

        body > * {
            max-width: 100% !important;
            box-sizing: border-box !important;
        }

    p, h1, h2, h3, li {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    #footer {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        margin: 2em 0 0 0 !important;
        opacity: 0.85;
        text-align: center !important;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Footer
   ========================================================= */
#footer {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2em !important;
    padding: 0 1.5em 1em 1.5em !important;
    text-align: center !important;
    opacity: 0.85;
    box-sizing: border-box !important;
}

.submit-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* =========================================================
   Icons (Font Awesome)
   ========================================================= */
.icon:before {
    font-family: 'Font Awesome 5 Free' !important;
}

.icon.solid:before {
    font-weight: 900 !important;
}

.icon.brands:before {
    font-family: 'Font Awesome 5 Brands' !important;
}
