:root {
    --primary: #1a1d23;
    --accent: #b8915e;
    --accent-light: #d4af37;
    --text: #2d3436;
    --text-muted: #636e72;
    --bg-cream: #fdfcf8;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --container-width: 1200px;
    --header-height: 80px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--bg-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

ul {
    list-style: none;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex: 2;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

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

.cta-btn {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

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

.cta-btn.btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
    background: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background-color: var(--primary);
    color: var(--white);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: grayscale(20%);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Servizi Section */
#servizi {
    padding: 100px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    padding: 3rem;
    background: var(--bg-light);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Detail Section */
.detail-section {
    display: flex;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
}

.detail-img, .detail-text {
    flex: 1;
}

.detail-img img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.detail-text {
    padding: 5rem;
}

.detail-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.detail-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

/* Galleria Section */
#galleria {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.gallery-item {
    overflow: hidden;
    height: 500px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Chi Siamo Section */
#storia {
    padding: 100px 0;
    background-color: var(--white);
}

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

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    box-shadow: 30px 30px 0 var(--bg-cream);
}

/* Processo Section */
#processo {
    padding: 100px 0;
}

.process-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.process-steps {
    flex: 1.2;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    font-weight: 700;
    line-height: 1;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
}

/* Testimonianze */
#testimonianze {
    padding: 100px 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.1;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-card cite {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent);
}

/* Contatti Section */
#contatti {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-flex {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-form {
    flex: 1;
    background: var(--bg-light);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--accent);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    font-size: 1.2rem;
    opacity: 0.7;
}

.footer-socials a:hover {
    opacity: 1;
    color: var(--accent);
}

/* Animations */
.reveal {
    opacity: 1; /* Keeping it visible as requested, enhancements via scroll JS would normally happen */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-slider { grid-template-columns: 1fr 1fr; }
    .nav-links { gap: 1.5rem; }
}

@media (max-width: 768px) {
    header { height: auto; padding: 1rem 0; }
    nav.container { flex-direction: column; gap: 1rem; }
    .nav-links { display: none; } /* Standard for simple mobile toggle needed here */
    .cta-btn { justify-content: center; width: 100%; }
    
    .hero { height: auto; padding: 100px 0; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-img { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .hero-btns { justify-content: center; }
    
    .services-grid, .testimonials-slider, .gallery-grid { grid-template-columns: 1fr; }
    .detail-section, .about-flex, .process-content, .contact-flex { flex-direction: column; }
    
    .detail-text, .about-text, .process-steps, .contact-info, .contact-form { padding: 3rem 1rem; }
    .about-img img { box-shadow: 15px 15px 0 var(--bg-cream); }
    
    .section-title h2 { font-size: 2.2rem; }
}
