/* style.css */

/* Stili generali */
:root {
    --primary-color: #2196F3;
    --secondary-color: #03dac6;
    --text-color: #333;
    --bg-color: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column; 
}

body.dark-mode {
    --text-color: #f5f5f5;
    --bg-color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark-mode header {
    background-color: #222;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Menu Burger */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    background-color: var(--text-color);
    height: 3px;
    width: 25px;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Altri stili generali */
.language-toggle {
    display: flex;
    align-items: center;
}

.language-toggle img {
    width: 20px;
    height: 15px;
    margin-right: 5px;
}

/* Stili per i pulsanti toggle */
.dark-mode-toggle, .language-toggle {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover, .language-toggle:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Stili specifici per mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    body.dark-mode .nav-links {
        background-color: #222;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.hero {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: #fff;
        text-align: center;
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .cta-button {
        display: inline-block;
        background-color: #fff;
        color: var(--primary-color);
        padding: 12px 30px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s ease;
    }
    
    .cta-button:hover {
        background-color: var(--secondary-color);
        color: #fff;
    }

    .logo img {
    width: 70px;
    /* Regola la dimensione dell'immagine secondo le tue necessità */
    height: auto;
}

body.dark-mode .logo img {
    content: url('../../assets/images/logo/Phas_w.png');
}

.logo img {
    max-height: 1.8rem; /* Regola l'altezza massima in base alla dimensione desiderata */
    width: auto;
}