/* Palette:
   Blu notte: #0A1A2F
   Oro: #C9A86A
   Grigio chiaro: #F5F5F5
*/

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    background: #F5F5F5;
    color: #15365f;
}

/* HEADER – Logo sinistra, menu destra */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    color: white;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px; /* distanza minima tra logo e testo */
}

.logo {
    height: 200px; /* ridotto per non occupare troppo spazio */
    width: 200px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    margin: 0;
    padding: 0;
}

.studio-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000103;
    font-family: "Merriweather", serif;
}

.nav a {
    color: #000103;
    margin-left: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.nav a:hover {
    color: white;
}

.nav a {
    color: #000103;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

/* HERO */
.hero {
    background: url('immagine-home.jpg') center/cover no-repeat;
    padding: 140px 20px 160px 20px; /* spazio sopra e sotto */
    text-align: center;
    color: white;
    background: linear-gradient(
    rgba(0,0,0,0.30),
    rgba(0,0,0,0.30)
),
url('immagine-home.jpg') center/cover no-repeat;

}

.hero-image {
    margin-top: 30px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.btn-primary {
    background: #C9A86A;
    color: #0A1A2F;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* SEZIONI */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* SERVICES GRID */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    padding: 25px;
    border-left: 4px solid #C9A86A;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* VALUES */
.values ul {
    list-style: none;
    padding: 0;
}

.values li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* CTA */
.contact-cta {
    text-align: center;
    background: #C9A86A;
    color: #0A1A2F;
    padding: 60px 20px;
}

/* FOOTER */
.footer {
    background: #0A1A2F;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* CHI SONO */
.chi-sono {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.chi-sono-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
}

.chi-sono-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

.chi-sono-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* SLIDER CHI SONO */
.chi-sono-slider {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide-track {
    display: flex;
    width: calc(250px * 8); /* 4 immagini ripetute due volte */
    animation: scroll 20s linear infinite;
}

.chi-sono-slider img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 6px;
}

/* Animazione scorrimento */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* MENU MOBILE SLIDE-IN */
.hamburger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #000103;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: right 0.3s ease;
    z-index: 1002;
}

.mobile-menu a {
    font-size: 1.3rem;
    text-decoration: none;
    color: #000103;
    font-weight: bold;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 1000;
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .logo {
        height: 90px;
        width: 90px;
    }

    .studio-name {
        font-size: 1.4rem;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

.mobile-menu.open {
    right: 0;
}

.overlay.show {
    display: block;
}

/* NASCONDE IL MENU MOBILE SU DESKTOP */
.mobile-menu,
.overlay {
    display: none;
}

/* MOSTRA IL MENU MOBILE SOLO SU MOBILE */
@media (max-width: 900px) {
    .mobile-menu {
        display: flex;
        right: -260px; /* resta nascosto finché non si apre */
    }

    .overlay {
        display: none;
    }

    .nav {
        display: none !important;
    }

    .hamburger {
        display: block;
    }
}

/* MOSTRA IL MENU DESKTOP SOLO SU DESKTOP */
@media (min-width: 901px) {
    .nav {
        display: flex !important;
    }

    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

