/* Brand Gallery */
.brand-img {
    width: 170px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #fff;
    padding: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    margin: 0 auto;
}

.brand-name {
    color: var(--primary-color);
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.brands-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 40px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.brands-list li {
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
}

.brand-img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.18);
}

@media (max-width: 600px) {
    .logo {
        font-size: 0.8rem!important;
    }
    .brands-list ul {
        flex-direction: row;
        gap: 16px;
    }
    .brand-img {
        width: 170px;
        height: 140px;
        padding: 4px;
    }
}
/* Sezione Brand */
#brands {
    background-color: var(--light-background-color);
    padding: 60px 0 40px 0;
}

.brands-list {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.brands-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.brands-list li {
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 28px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 8px;
}

.brands-list li:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.15);
}

.portfolio-badges {
    position: absolute;
    right: 6px;
    top: 6px;
}

.badge {
    display: inline-block;
    padding: 6px 18px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    background: var(--secondary-color);
    color: #fff;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.badge:last-child {
    margin-right: 0;
}

@media (max-width: 600px) {
    .brands-list ul {
        gap: 12px;
    }
    .brands-list li {
        font-size: 1rem;
        padding: 10px 16px;
    }
}
/* Logo image styling */
.logo-with-image {
    display: flex;
    align-items: center;
}

.logo-img {
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-right: 8px;
}

.logo-img-header {
    height: 40px;
}

.logo-footer {
    margin-bottom: 16px;
    text-align: center;
}

.logo-img-footer {
    height: 32px;
}

/* Reset e variabili CSS */
:root {
    --light-background-color: #ebebeb;
    --primary-color: #103090;
    --secondary-color: #3498db;
    --accent-color: #e74c3c; /*unused*/
    --dark-color: #2c3e50; /*unused*/
    --text-color: #333;
    --text-light: #eee;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[lang="en"] {
    --home-title: "Hi, I'm Massimo Esposito";
    --home-subtitle: "Web Developer & Digital Creator";
    --about-title: "About Me";
    --mission-title: "My Mission";
    --portfolio-title: "Portfolio";
    --contact-title: "Contact Me";
    --contact-btn: "Send Message";
}

[lang="it"] {
    --home-title: "Ciao, sono Massimo Esposito";
    --home-subtitle: "Sviluppatore Web & Creatore Digitale";
    --about-title: "Chi Sono";
    --mission-title: "Mission";
    --portfolio-title: "Portfolio";
    --contact-title: "Contatti";
    --contact-btn: "Invia Messaggio";
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Header e Navigazione */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
}

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

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    margin-left: 30px;
}

.language-switcher button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 10px;
    font-weight: 500;
    transition: var(--transition);
}

.language-switcher button.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Sezione Home */
#home {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/static/images/home_background.avif');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    text-align: center;
}

.home-content {
    max-width: 800px;
    margin: 0 auto;
}

.home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

.home-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
}

.home-content .btn {
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sezione Chi Sono */
#about {
    background-color: var(--light-background-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Sezione Mission */
#mission {
    background-color: var(--text-light);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.mission-values {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.value {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background-color: var(--light-background-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value:hover {
    transform: translateY(-10px);
}

.value i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.value h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Sezione Portfolio */
#portfolio {
    background-color: var(--light-background-color);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 5px;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--text-light);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Sezione Contatti */
#contact {
    background-color: var(--text-light);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--light-background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary-color);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    .contact-content {
        flex-direction: column;
    }
    .mission-values {
        flex-direction: column;
    }
}

@media (max-width: 1140px) {
    .navbar {
        flex-wrap: wrap;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .hamburger {
        display: block;
    }
    .language-switcher {
        margin-left: auto;
        margin-right: 20px;
    }
    .home-content h1 {
        font-size: 2.5rem;
    }
    .home-content p {
        font-size: 1.2rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .home-content h1 {
        font-size: 2rem;
    }
}
