/* =========================================
   PROGETTO ARREDO VERDE - CSS VARIABLES 
========================================= */
:root {
    /* Colors */
    --clr-primary: #1e4a2c; /* Dark Forest Green */
    --clr-primary-light: #2c6e41;
    --clr-secondary: #8fb996; /* Sage Green */
    --clr-accent: #d4a373; /* Earthy Wood/Gold */
    --clr-accent-hover: #b5895e;
    
    --clr-text-dark: #1a1a1a;
    --clr-text-light: #f4f6f4;
    --clr-text-muted: #5a665d;
    
    --clr-bg-main: #fcfdfc;
    --clr-bg-alt: #f1f5f2;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* =========================================
   RESET & BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--clr-text-dark);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--clr-bg-alt);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-light);
    border: 2px solid var(--clr-text-light);
}

.btn-outline:hover {
    background-color: var(--clr-text-light);
    color: var(--clr-primary);
}

.btn-secondary {
    background-color: var(--clr-primary);
    color: white;
}
.btn-secondary:hover {
    background-color: var(--clr-primary-light);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1rem;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--clr-primary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Aumentato per ospitare il logo più grande */
}

.logo-img {
    height: 80px; /* Logo più visibile (prima era 50px) */
    width: auto;
    transition: transform var(--transition-fast);
}

.logo-img:hover {
    transform: scale(1.05); /* Effetto interattivo al passaggio del mouse */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ffffff;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--clr-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--clr-text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 74, 44, 0.9), rgba(30, 74, 44, 0.4));
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero .subtitle {
    font-family: var(--font-primary);
    color: var(--clr-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hero .title {
    font-size: 4.5rem;
    color: var(--clr-text-light);
    margin-bottom: 1rem;
}

.hero .slogan {
    font-size: 1.8rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 2.5rem;
    color: var(--clr-bg-alt);
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* =========================================
   INTRO SECTION
========================================= */
.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.rounded-img {
    border-radius: 20px;
}
.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* =========================================
   SERVICES OVERVIEW
========================================= */
.section-heading {
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
}

.section-heading p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.link-arrow {
    color: var(--clr-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.link-arrow:hover {
    color: var(--clr-accent-hover);
}

/* =========================================
   CTA SECTION
========================================= */
.cta-section {
    background: linear-gradient(rgba(30, 74, 44, 0.9), rgba(30, 74, 44, 0.9)), url('../images/progettoarredoverde1.webp') center/cover no-repeat;
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* =========================================
   FOOTER
========================================= */
.main-footer {
    background-color: var(--clr-primary);
    color: var(--clr-text-light);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-col.contacts ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-col.contacts a:hover {
    color: var(--clr-accent);
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--clr-text-light);
    border-radius: 5px;
}
.social-link:hover {
    background-color: var(--clr-text-light);
    color: var(--clr-primary);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.legal-links a {
    margin-left: 1.5rem;
}

.legal-links a:hover {
    color: var(--clr-accent);
}

/* =========================================
   ANIMATIONS & UTILITIES
========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   WHATSAPP FLOATING BUTTON
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}
.whatsapp-float svg {
    width: 35px;
    height: 35px;
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero .title { font-size: 3.5rem; }
    .intro-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100px;
        left: -100%;
        width: 100%;
        background: var(--clr-primary);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left var(--transition-smooth);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.nav-active { left: 0; }
    .hamburger { display: flex; }
    
    .hero .title { font-size: 2.8rem; }
    .hero .slogan { font-size: 1.4rem; }
    .cta-group { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; gap: 1rem; text-align: center; }
}


