:root {
  /* Color System - Sophisticated & Calming Aesthetic */
  --primary: #1a1a2e;       /* Deep Midnight Blue */
  --secondary: #fdf6f0;     /* Soft Cream Pearl */
  --accent: #c5a880;        /* Muted Champagne Gold */
  --accent-light: #e2d1b8;  /* Light Sand */
  --text-dark: #2c2c2c;     /* Soft Charcoal */
  --text-light: #6e6e6e;    /* Warm Grey */
  --white: #ffffff;
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 100px 0;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Typography & Layout Helpers */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

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

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

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 300;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

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

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(253, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.8rem;
  color: var(--primary);
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(26, 26, 46, 0.4), rgba(26, 26, 46, 0.4)), url('assets/hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-btns {
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

/* Services Section */
#servizi {
  padding: var(--section-padding);
}

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

.service-card {
  background-color: var(--white);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid rgba(197, 168, 128, 0.2);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

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

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

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

/* Gallery Section */
#galleria {
  padding: var(--section-padding);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 46, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay .btn {
  color: var(--white);
  border-color: var(--white);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: var(--white);
}

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

.about-image {
  flex: 1;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  z-index: 0;
}

.about-image img {
  position: relative;
  z-index: 1;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-light);
}

.about-text .btn {
  margin-top: 20px;
}

/* Process Section */
#processo {
  padding: var(--section-padding);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: rgba(197, 168, 128, 0.2);
  line-height: 1;
  margin-bottom: -20px;
  font-weight: 700;
}

.step h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--primary);
  position: relative;
}

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

/* Testimonials */
#testimonianze {
  padding: var(--section-padding);
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}

#testimonianze .section-title p {
  color: var(--accent-light);
}

#testimonianze .section-title h2 {
  color: var(--white);
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card p {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 30px;
}

.testimonial-author {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* Contact Section */
#contatti {
  padding: var(--section-padding);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  background-color: var(--white);
  padding: 60px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

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

.contact-info > p {
  margin-bottom: 40px;
  color: var(--text-light);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 5px;
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.info-item p {
  color: var(--text-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px;
  background-color: var(--secondary);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
}

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

.footer-logo {
  font-size: 2.5rem;
  letter-spacing: 0.3em;
  margin-bottom: 30px;
  font-family: 'Playfair Display', serif;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--accent);
}

.social-links a:hover {
  color: var(--white);
  transform: translateY(-5px);
}

.footer-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 40px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

/* Reveal Animation Class */
.reveal {
  opacity: 1; /* Visible by default as per instruction */
  transition: var(--transition-smooth);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .about-content { flex-direction: column; gap: 50px; }
  .contact-container { grid-template-columns: 1fr; gap: 60px; padding: 40px; }
}

@media (max-width: 768px) {
  header { padding: 15px 0; }
  .nav-links { display: none; } /* Mobile menu would usually be a hamburger here */
  .logo { font-size: 1.4rem; }
  .hero h1 { font-size: 2.8rem; }
  .section-title h2 { font-size: 2.2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .step-number { font-size: 3rem; }
  .testimonial-card p { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-btns { display: flex; flex-direction: column; gap: 15px; }
  .hero-btns .btn { margin-left: 0 !important; }
}
