/* RESET E STILI GENERALI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import font Marta Maddalena originale */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* STILI HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NOME SPOSTATO A DESTRA */
.logo-name-right {
    font-family: 'revert', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: #333333;
    margin-right: auto;
    margin-left: 120px;
}

/* Menu desktop - visibile su schermi grandi */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 35px;
    text-decoration: none;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #8b7355;
    font-weight: 400;
}

/* Hamburger menu - nascosto su desktop */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #333333;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Compensa l'header fisso */
body {
    padding-top: 80px;
}

/* CONTENITORE LOGO SOVRAPPOSTO */
.logo-overlay-container {
    position: absolute;
    /*top: 160%;*/
    left: 50px;
    z-index: 1001;
    transform: translateY(-50%);
}

/* LOGO CON EFFETTO SOVRAPPOSIZIONE */
.logo-overlay {
    display: block;
    text-decoration: none;
}

.logo-blended {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    mix-blend-mode: normal;
    transition: all 0.3s ease;
	margin-top: 49px;
    margin-left: -47px;
}


.logo-overlay:hover .logo-blended {
    transform: scale(1.05);
    box-shadow: 0 8px 35px rgba(0,0,0,0.15);
}

/* HERO SECTION */
.hero {
    position: relative;
    z-index: 1;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('../foto/sfondo.jpeg') center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 3.5rem;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* SEZIONI GENERALI */
section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2.5rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 50px;
    color: #333333;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    text-align: center;
    color: #666666;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* ABOUT SECTION */
.about {
    background: #fafafa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    line-height: 1.7;
    color: #555555;
}

.about-text p {
    margin-bottom: 25px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 2px;
}

/* SERVIZI SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 2px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    color: #333333;
}

.service-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    color: #666666;
}

/* PORTFOLIO SECTION */
.portfolio {
    background: #fafafa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 9px;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* TESTIMONIALS SECTION */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 2px;
    border: 1px solid #f0f0f0;
}

.testimonial-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 25px;
    color: #555555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.testimonial-author {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333333;
    font-size: 0.95rem;
}

/* CTA SECTION */
.cta {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1464822759844-d94c9f12c7e7?ixlib=rb-4.0.3') center/cover;
    color: white;
    text-align: center;
}

.cta h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2.2rem;
    letter-spacing: 0.03em;
    margin-bottom: 25px;
}

.cta p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* BOTTONI */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background: #333333;
    color: white;
    border: 1px solid #333333;
}

.btn-secondary {
    background: transparent;
    color: #333333;
    border: 1px solid #333333;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-weight: 500;
}

.btn-primary:hover {
    background: #555555;
    border-color: #555555;
}

.btn-secondary:hover {
    background: #333333;
    color: white;
}

/* FOOTER MIGLIORATO */
.main-footer {
    background: #1a1a1a;
    color: #cccccc;
    padding: 30px 0 30px;
    font-family: 'Inter', sans-serif;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.footer-nav a:hover {
    color: #8b7355;
    font-weight: 400;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /*gap: 50px;
    margin-bottom: 50px;*/
	gap: 0px;
    margin-bottom: 0px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.9rem;
    font-weight: 300;
}

.newsletter input {
    padding: 12px 15px;
    width: 70%;
    border: 1px solid #444444;
    border-radius: 2px 0 0 2px;
    background: #2a2a2a;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.newsletter button {
    padding: 12px 20px;
    background: #333333;
    color: white;
    border: 1px solid #333333;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: background 0.3s ease;
}

.newsletter button:hover {
    background: #444444;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: #cccccc;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #8b7355;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333333;
    color: #888888;
    font-size: 0.85rem;
    font-weight: 300;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    .nav-links a {
        margin-left: 20px;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 0.03em;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 70px 0;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .logo-overlay-container {
        left: 20px;
        top: 20px;
    }
    
    .logo-blended {
        width: 80px;
        height: 80px;
		margin-left:-15px;
		margin-top:60px;
    }
    
    .logo-name-right {
        margin-left: 90px;
        font-size: 1rem;
    }
    
    /* Nascondi menu normale su mobile */
    .nav-links {
        position: fixed;
        top: 45px;
        left: -100%;
        width: 50%;
        height: calc(100vh - 70px);
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 50px 20px;
        transition: left 0.3s ease;
        gap: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        margin: 0;
        padding: 5px 0;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:hover {
        background: #fafafa;
    }
    
    /* Mostra hamburger su mobile */
    .hamburger {
        display: flex;
    }
    
    /* Animazione hamburger quando attivo */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .nav-links a {
        margin-left: 15px;
        font-size: 0.85rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
    
    .logo-overlay-container {
        left: 15px;
    }
    
    .logo-blended {
        /*width: 60px;*/
        /*height: 60px;*/
		margin-left:-15px;
		margin-top:65px;
    }
    
    .logo-name-right {
        margin-left: 70px;
        font-size: 0.9rem;
    }
}