/* ==== IMPOSTAZIONI GLOBALI E FONT ==== */
:root {
    --color-text: #333;
    --color-primary: #1a1a1a;
    --color-light-bg: #fdfdfd;
    --color-border: #eee;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1100px;
}

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

html {
    scroll-behavior: smooth; /* Per navigazione fluida */
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #777;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.content-section {
    padding: 80px 0;
}

/* ==== GESTIONE LINGUA (Visibilità) ==== */
/* Nasconde la lingua non attiva */
.lang-it .lang-en,
.lang-en .lang-it {
    display: none;
}
/* Mostra la lingua attiva */
.lang-it .lang-it,
.lang-en .lang-en {
    display: inline;
}
/* Per blocchi di testo */
body.lang-en .lang-en,
body.lang-it .lang-it {
    display: block;
}
body.lang-en .lang-it,
body.lang-it .lang-en {
    display: none;
}

/* Classe per nascondere visivamente ma mantenere accessibile (SEO, screen reader) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ==== HEADER E NAVIGAZIONE ==== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px; /* Aumentato il padding */
    padding-bottom: 30px; /* Aumentato il padding */
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background-color: rgba(253, 253, 253, 0.95); /* Sfondo header semi-trasparente */
    z-index: 100;
    backdrop-filter: blur(5px);
}

header .logo img {
    height: 60px; /* Aumentato l'altezza del logo */
    filter: invert(10%);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav li {
    margin-left: 25px;
}

header nav a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ==== SELETTORE LINGUA ==== */
.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    padding: 5px;
    transition: color 0.3s ease;
}

.lang-switcher button:hover {
    color: var(--color-primary);
}

.lang-switcher button.active {
    color: var(--color-primary);
    text-decoration: underline;
}

.lang-switcher span {
    margin: 0 3px;
    color: #ccc;
    font-size: 0.9rem;
}


/* ==== SEZIONE HERO ==== */
#home {
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* Immagine di sfondo */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('MAURO BUCCOLO shoes designer.pdf-image-010.png');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed; /* Effetto parallasse leggero */
}

#home h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 0;
}

#home h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ==== SEZIONE ABOUT (Timeline) ==== */
.timeline-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.timeline-item.reverse {
    flex-direction: row-reverse;
}

.timeline-image,
.timeline-content {
    flex: 1;
    padding: 20px;
}

.timeline-image img {
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-image img.logo-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    box-shadow: none;
    filter: invert(15%);
}

.timeline-content h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 1.1rem;
    color: #555;
}

/* ==== SEZIONE PROCESSO E FILOSOFIA ==== */
.philosophy-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    font-size: 1.2rem;
    color: #444;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ==== SEZIONE CONTATTI ==== */
#contact {
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #555;
}

.contact-info a {
    font-weight: 500;
}

.social-links {
    margin-top: 30px;
}

.social-links p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

.social-links a {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 10px;
    text-transform: uppercase;
}

/* ==== FOOTER ==== */
footer {
    padding: 50px 20px;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    filter: invert(20%);
    opacity: 0.8;
}

footer p {
    font-size: 0.9rem;
    color: #888;
}


/* ==== RESPONSIVE (Adattamento Mobile) ==== */

/* Per tablet */
@media (max-width: 900px) {
    .timeline-item,
    .timeline-item.reverse {
        flex-direction: column;
        text-align: center;
    }

    .timeline-image img.logo-icon {
        width: 150px;
        height: 150px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Per smartphone */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 15px;
        position: static; /* Rimuove sticky su mobile */
    }
    
    header .logo img {
        height: 50px; /* Logo leggermente più piccolo su mobile */
    }

    #home {
        height: 50vh;
        background-attachment: scroll; /* Disattiva parallasse su mobile */
    }

    #home h1 {
        font-size: 2.5rem;
    }
    #home h2 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .content-section {
        padding: 50px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Una colonna su mobile */
    }
    
    .gallery-grid img {
        height: 250px;
    }
}