/* Global Styles */
:root {
    --primary-color: #4a7c59;
    --secondary-color: #8a9b68;
    --accent-color: #c0b283;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #f8f8f8;
    --border-color: #e0e0e0;
    --footer-background: #2c3e50;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lora', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

.left-aligned {
    text-align: left;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #3d6949;
    color: var(--light-text);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-text {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--secondary-color);
}

/* Header */
.header {
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav .nav-list li {
    margin-left: 25px;
}

.main-nav .nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav .nav-list a:hover, 
.main-nav .nav-list a.active {
    color: var(--primary-color);
}

.main-nav .nav-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover:after,
.main-nav .nav-list a.active:after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: #f5f7f9;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 600px;
    z-index: 1;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-text);
}

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

.service-card {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    height: 60px;
    width: auto;
}

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

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.about-text {
    flex: 1;
}

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

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--light-text);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.project-image {
    height: 250px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.villa-toscana {
    background-image: url('../assets/project-1.svg');
}

.terrazza-milano {
    background-image: url('../assets/project-2.svg');
}

.giardino-liguria {
    background-image: url('../assets/project-3.svg');
}

.parco-pubblico {
    background-image: url('../assets/project-4.svg');
}

.project-info {
    padding: 20px;
    background-color: var(--light-text);
}

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

.project-info p {
    margin-bottom: 0;
    color: #666;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #f5f7f9;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
    position: relative;
}

.testimonial-card {
    min-width: 100%;
    padding: 30px;
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 3rem;
    line-height: 1;
    position: absolute;
    top: -20px;
    left: -10px;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.control-prev, .control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: var(--light-text);
    cursor: pointer;
    position: relative;
}

.control-prev:before, .control-next:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--light-text);
    border-right: 2px solid var(--light-text);
    top: 50%;
    left: 50%;
}

.control-prev:before {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.control-next:before {
    transform: translate(-70%, -50%) rotate(45deg);
}

.control-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--light-text);
}

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

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

.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-position: center;
    background-size: cover;
}

#photo-1 {
    background-image: url('../assets/team-1.svg');
}

#photo-2 {
    background-image: url('../assets/team-2.svg');
}

#photo-3 {
    background-image: url('../assets/team-3.svg');
}

#photo-4 {
    background-image: url('../assets/team-4.svg');
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-member p {
    color: #666;
    margin-bottom: 0;
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.blog-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.blog-content h3 {
    margin-bottom: 10px;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    color: var(--primary-color);
}

.read-more:hover {
    text-decoration: underline;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    color: var(--light-text);
}

.newsletter-form {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-group {
    flex: 1 1 48%;
    min-width: 200px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-primary);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    flex-basis: 100%;
    margin: 10px 0;
}

.form-group.checkbox input {
    margin-right: 10px;
}

.form-group.checkbox label {
    font-size: 0.9rem;
}

.form-group.checkbox a {
    color: var(--light-text);
    text-decoration: underline;
}

.newsletter-form button {
    margin-top: 10px;
    flex-basis: 100%;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-text);
}

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

.contact-info {
    flex: 1;
}

.contact-info h2 {
    margin-bottom: 20px;
}

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

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

.contact-details p svg {
    margin-right: 10px;
    min-width: 20px;
}

.contact-social {
    display: flex;
    gap: 15px;
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--primary-color);
}

.contact-social a:hover svg {
    stroke: var(--light-text);
}

.contact-form {
    flex: 1;
}

.contact-form h2 {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--footer-background);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1 1 300px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links {
    flex: 2 1 600px;
    display: flex;
    justify-content: space-between;
}

.footer-column {
    min-width: 150px;
}

.footer-column h3 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #a7b5c4;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--light-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #3e5266;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #a7b5c4;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #a7b5c4;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--light-text);
}

/* Blog Page Styles */
.blog-hero {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
}

.blog-hero-content h1 {
    color: var(--light-text);
    margin-bottom: 15px;
}

.blog-content {
    padding: 60px 0;
    background-color: var(--background-color);
}

.blog-content .container {
    display: flex;
    gap: 40px;
}

.blog-main {
    flex: 2;
}

.blog-sidebar {
    flex: 1;
}

.sidebar-widget {
    background-color: var(--light-text);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.sidebar-widget p {
    margin-bottom: 15px;
}

.services-widget ul {
    list-style: none;
    padding: 0;
}

.services-widget ul li {
    margin-bottom: 10px;
}

.services-widget ul li a {
    display: block;
    padding: 10px;
    background-color: #f5f7f9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.services-widget ul li a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Article Page Styles */
.article-header {
    padding: 40px 0;
    background-color: #f5f7f9;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
}

.breadcrumbs a {
    color: #666;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.article-meta {
    color: #666;
    margin-top: 10px;
}

.article-date, .article-author {
    margin-right: 20px;
}

.article-content {
    padding: 60px 0;
}

.article-main {
    max-width: 800px;
    margin: 0 auto;
}

.article-image {
    margin-bottom: 30px;
}

.article-image img {
    width: 100%;
    border-radius: 8px;
}

.article-text h2 {
    margin-top: 40px;
    color: var(--primary-color);
}

.article-text h3 {
    margin-top: 30px;
    color: var(--secondary-color);
}

.article-text .lead {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.article-cta {
    margin-top: 50px;
    padding: 30px;
    background-color: #f5f7f9;
    border-radius: 8px;
    text-align: center;
}

.article-share {
    display: flex;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-share span {
    margin-right: 15px;
    color: #666;
}

.article-share a {
    margin-right: 10px;
    color: #666;
    transition: color 0.3s ease;
}

.article-share a:hover {
    color: var(--primary-color);
}

.highlight-box {
    background-color: #f5f7f9;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Legal Pages Styles */
.legal-page {
    padding: 60px 0;
}

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

.legal-content h1 {
    margin-bottom: 10px;
}

.last-updated {
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.legal-section h3 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.legal-section ul, .legal-section ol {
    margin-bottom: 20px;
}

.legal-section ul li, .legal-section ol li {
    margin-bottom: 10px;
}

/* Thank You Page Styles */
.thank-you {
    padding: 80px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.thank-you-icon svg {
    width: 80px;
    height: 80px;
}

.thank-you h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.thank-you p {
    margin-bottom: 20px;
    color: #555;
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Blog Newsletter */
.blog-newsletter {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content, 
    .newsletter-content,
    .contact-content,
    .blog-content .container {
        flex-direction: column;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        transform: none;
        top: 0;
        right: 0;
        margin-top: 30px;
    }
    
    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav .nav-list {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--light-text);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .main-nav .nav-list.active {
        transform: translateY(0);
    }
    
    .main-nav .nav-list li {
        margin: 10px 0;
    }
    
    .services-grid,
    .project-gallery,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    .about-content,
    .contact-content {
        gap: 30px;
    }
}