﻿/* Stile base */
:root {
    --primary-color: #2ECC71; /* Verde NutriCare */
    --secondary-color: #3498DB; /* Blu per accenti */
    --accent-color: #FF6B6B; /* Corallo per CTA */
    --energy-orange: #FF9800; /* Arancione energia */
    --text-color: #333;
    --light-bg: #f7f7f7;
    --dark-bg: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background-color: white;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

    .logo i {
        margin-right: 5px;
        color: var(--primary-color);
    }

.nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

    .nav a:hover {
        color: var(--primary-color);
    }

.btn-accesso {
    color: var(--primary-color) !important;
    font-size: 16px !important; /* Font più grande per ACCEDI */
}

    .btn-accesso i {
        margin-right: 5px;
    }

/* ----------------------- */
/* CONTENUTO PRINCIPALE (GRADIENTE) */
/* ----------------------- */
.main-content {
    /* Colori approssimativi del gradiente: dal verde chiaro all'azzurro/acqua */
    /* background: linear-gradient(to right, #65D997, #A8E9E3);*/
    padding: 50px;
    flex: 1;
    background: linear-gradient(to right, rgba(46, 204, 113, 0.8), rgba(52, 152, 219, 0.6));
    /* Se hai un'immagine, aggiungila qui: url('cartoon-illustration.jpg') */
    /* background-size: cover;
            background-position: center;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;*/
}

/* Contenitore Flexbox per le 2 Colonne */
.split-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.2); /* Sfondo leggermente trasparente */
    border-radius: 10px;
    overflow: hidden; /* Per contenere gli elementi */
}

/* Stile comune alle colonne */
.colonna-sinistra, .colonna-destra {
    padding: 30px;
    box-sizing: border-box;
    color: white; /* Testo bianco sulle sezioni colorate */
}

.colonna-sinistra {
    flex: 60%; /* Occupazione del 60% dello spazio */
}

.colonna-destra {
    flex: 40%; /* Occupazione del 40% dello spazio */
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* ----------------------- */
/* Stili del Form */
/* ----------------------- */
h2 {
    font-size: 1.8em;
    margin-top: 0;
    font-weight: normal;
}

form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="email"], input[type="password"], select {
    background-color: rgba(255, 255, 255, 0.85) !important; /* Sfondo chiaro e opaco per i campi */
    border: none !important;
    padding: 12px 15px !important;
    border-radius: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1em !important;
    color: #333 !important;
}

.form-row {
    display: flex;
    gap: 20px;
}

    .form-row > div {
        flex: 1;
    }

/* Pulsante Registrati */
.btn-registrati {
    background-color: #F08080; /* Rosso corallo */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    width: 100%;
    margin-top: 30px;
}

/* Testo piccolo validazione password */
.password-info {
    font-size: 0.8em;
    margin-top: 10px;
}

/* Checkbox e link privacy */
.privacy-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

    .privacy-check a {
        color: #FFA07A; /* Colore arancione chiaro per il link */
        text-decoration: none;
        font-weight: bold;
    }

/* ----------------------- */
/* Stili Colonna Destra (Social) */
/* ----------------------- */
.colonna-destra h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
}

.btn-social {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    margin-right: 10px;
    font-size: .9em !important;
}

.btn-google {
    background-color: #DB4437; /* Rosso Google */
}

.btn-microsoft {
    background-color: #00A4EF; /* Blu Microsoft */
}

.colonna-destra hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 30px 0;
}

.info-specialista h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.info-specialista p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* FOOTER */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 30px 0;
    margin-top: 50px; /* Aggiunto margine superiore per separare dal contenuto */
    flex-shrink: 0;
}

.footer-content {
    text-align: center;
}

.footer h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.footer p {
    margin-bottom: 5px;
    font-size: 12px;
    opacity: 0.9;
}

/* Media Query per la responsività */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .nav {
        margin-top: 10px;
    }

        .nav a {
            margin-left: 15px;
            font-size: 13px;
        }

    .main-content {
        padding: 20px;
    }

    .split-content {
        flex-direction: column;
    }

    .colonna-destra {
        padding-left: 30px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer {
        margin-top: 30px; /* Margine ridotto per dispositivi mobili */
    }

    .btn-social {

        font-size: 2vh;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0;
    }
}
