/* Base Styles */
:root {
    --primary-color: #e5b3b3;
    --secondary-color: #d4af37;
    --accent-color: #f8e6e6;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-text: #222222;
    --background-color: #ffffff;
    --section-bg: #faf5f5;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

/* Language Switching */
.lang-en {
    display: inline-block;
}

.lang-it {
    display: none;
}

body.it .lang-en {
    display: none;
}

body.it .lang-it {
    display: inline-block;
}

/* Specific rules for different element types */
body.it span.lang-en {
    display: none;
}

body.it span.lang-it {
    display: inline;
}

body.it a.lang-en {
    display: none;
}

body.it a.lang-it {
    display: inline-block;
}

/* Override for CTA buttons specifically */
.cta-button.lang-en {
    display: inline-block;
}

.cta-button.lang-it {
    display: none;
}

body.it .cta-button.lang-en {
    display: none;
}

body.it .cta-button.lang-it {
    display: inline-block;
}

/* Header */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

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

nav ul li a:hover::after {
    width: 100%;
}

.language-switch {
    display: flex;
    align-items: center;
}

.language-switch button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 5px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.language-switch button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 179, 179, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin-bottom: 50px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(229, 179, 179, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

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

.hero-images {
    width: 100%;
    max-width: 900px;
    margin-top: 30px;
}

.image-slider {
    display: flex;
    overflow-x: hidden;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about {
    display: flex;
    align-items: center;
}

.about-image {
    flex: 1;
    padding: 0 20px;
}

.about-image img {
    margin-top: 20px;
}

.about-content {
    flex: 1;
    padding: 0 40px;
}

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

.service-item {
    display: flex;
    margin-bottom: 80px;
    align-items: center;
}

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

.service-image {
    flex: 1;
    padding: 0 20px;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-content {
    flex: 1;
    padding: 0 40px;
}

.service-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-content p {
    margin-bottom: 20px;
}

.service-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.service-content ul li {
    margin-bottom: 10px;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 20px 0;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--section-bg);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Certification Section */
.certification {
    padding: 100px 0;
    background-color: var(--background-color);
}

.certification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.certification-text {
    flex: 1;
    padding-right: 50px;
}

.certification-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.certification-logo img {
    max-width: 300px;
    height: auto;
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background-color: var(--section-bg);
}

.reviews-slider {
    max-width: 800px;
    margin: 0 auto;
}

.review-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 20px;
    text-align: center;
}

.review-stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

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

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-item {
    flex-basis: calc(50% - 15px);
    background-color: var(--accent-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--text-color);
    font-weight: 500;
}

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

.cta-container {
    flex: 1;
    padding: 40px;
    background-color: var(--primary-color);
    border-radius: 10px;
    text-align: center;
    color: var(--light-text);
    margin-left: 30px;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-container .cta-button {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.cta-container .cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin-left: 15px;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .service-item, .service-item.reverse {
        flex-direction: column;
    }
    
    .service-image, .service-content {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .certification-content {
        flex-direction: column;
    }
    
    .certification-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .cta-container {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }

    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        margin-bottom: 10px;
    }

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

    .language-switch {
        margin-top: 15px;
    }

    .hero {
        padding: 250px 0 60px;
    }

    body.nav-open .hero {
        padding-top: 280px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about {
        flex-direction: column;
    }

    .about-image, .about-content {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .services, .gallery, .certification, .reviews, .contact {
        padding: 50px 0;
    }

    .contact-item {
        flex-basis: 100%;
    }

    footer .container {
        flex-direction: column;
    }

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

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .service-content h3 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
