/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  color: #a3a3a3;
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}
h1, h2, h3, h4, h5, h6 { color: #727475; font-family: 'Roboto', sans-serif; }
a { color: #a3a3a3; text-decoration: none; transition: color 0.3s; }
a:hover { color: #727475; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 15px; }
strong { font-weight: 700; }

/* Container */
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Navigation */
.nav-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 0;
  position: relative;
}
.nav-logo {
  position: absolute;
  left: 15px;
  top: 20px;
}
.home .nav-logo { display: none; }
.nav-logo img { width: 135px; }
.nav-menu { list-style: none; display: flex; gap: 0; }
.nav-menu li { display: inline-block; }
.nav-menu li::after {
  content: "|";
  display: inline-block;
  margin: 0 20px;
  color: #fff;
}
.nav-menu li:last-child::after { content: ""; margin: 0; }
.nav-menu li a {
  color: #fff;
  font-size: 16px;
  line-height: 16px;
  font-family: 'Roboto', sans-serif;
  transition: opacity 0.3s;
}
.nav-menu li a:hover { opacity: 0.7; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* Sticky Nav */
.sticky-nav {
  position: fixed;
  top: -80px;
  left: 0; right: 0;
  z-index: 100;
  background-color: #c8c4d8;
  border-bottom: 1px solid #fff;
  transition: top 0.8s ease;
  text-align: center;
  padding: 20px 0;
}
.sticky-nav.visible { top: 0; }
.sticky-nav .nav-menu { justify-content: center; }

/* Mobile sidebar */
.mobile-sidebar {
  position: fixed;
  right: -300px;
  top: 0;
  width: 300px;
  height: 100%;
  background-color: #c8c4d8;
  z-index: 999;
  padding: 40px;
  transition: right 0.8s ease;
  overflow-y: auto;
}
.mobile-sidebar.open { right: 0; }
.mobile-sidebar .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.mobile-sidebar ul { list-style: none; }
.mobile-sidebar ul li { padding: 10px 0; }
.mobile-sidebar ul li a {
  color: #fff;
  font-size: 24px;
  text-transform: capitalize;
}

/* Hero Slider (Homepage) */
.hero-slider {
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
}
.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(114,116,118,0.4), rgba(200,196,216,0.4));
}
.hero-slider .slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.hero-slider .hero-logo { width: 150px; margin-bottom: 20px; }
.hero-slider .hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 110px;
  line-height: 110px;
  color: #fff;
  font-weight: 400;
  mix-blend-mode: overlay;
}
.hero-slider .hero-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  line-height: 28px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 3px;
  mix-blend-mode: overlay;
  margin-top: 15px;
  max-width: 90%;
}

/* Subpage Hero */
.hero-subpage {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-subpage .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-subpage .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(114,116,118,0.4), rgba(200,196,216,0.4));
}
.hero-subpage h1 {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  color: #fff;
  font-weight: 700;
}

/* Welcome Section */
.welcome-section {
  display: flex;
  gap: 30px;
  padding: 45px 0 5px;
  align-items: flex-start;
}
.welcome-section .welcome-image { flex: 1; }
.welcome-section .welcome-image img { width: 100%; }
.welcome-section .welcome-text { flex: 1; }
.welcome-section .welcome-text h2 {
  font-size: 40px;
  line-height: 50px;
  font-weight: bold;
  color: #727475;
  margin-bottom: 20px;
}
.welcome-section .welcome-text p { font-size: 15px; }

.intro-text {
  padding: 0 0 60px;
}
.intro-text p { font-size: 15px; }

/* Read more button */
.btn-readmore {
  display: inline-block;
  color: #a3a3a3;
  border: 1px solid #a3a3a3;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s;
}
.btn-readmore:hover {
  background: #727475;
  color: #fff;
  border-color: #727475;
}

/* Quote Section */
.quote-section {
  background-color: #c8c4d8;
  padding: 90px 0;
  text-align: center;
}
.quote-section .quote-inner {
  max-width: 600px;
  margin: 0 auto;
}
.quote-section h2 {
  color: #fff;
  font-size: 30px;
  line-height: 40px;
  font-weight: bold;
}
.quote-section h4 {
  color: #fff;
  font-size: 30px;
  line-height: 40px;
  font-weight: 300;
  text-align: right;
  margin-top: 10px;
}

/* Cards Grid (Adolescenti, Adulti, Coppie) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px 0;
}
.card {
  text-align: center;
}
.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.card-body { padding: 20px; }
.card-body h2 { margin: 0; font-size: 24px; }
.card-body h6 {
  color: #a3a3a3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 300;
  margin: 10px 0 20px;
}
.card-body p {
  margin: 0 0 20px;
  font-size: 14px;
}

/* Parallax Banner */
.parallax-banner {
  position: relative;
  padding: 120px 0 320px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.parallax-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.parallax-banner .banner-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 600px;
  margin-left: auto;
}
.parallax-banner h2 {
  color: #fff;
  font-size: 40px;
  line-height: 40px;
  font-weight: 400;
}

/* Projects cards with negative margin */
.projects-grid {
  margin-top: -130px;
  position: relative;
  z-index: 3;
}

/* Two Column Layout (subpages) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}
.two-col img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* Subpage Content */
.page-content {
  padding: 40px 0 60px;
}
.page-content h2 {
  font-size: 30px;
  line-height: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}
.page-content h2:first-child {
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 20px;
}
.page-content p { margin-bottom: 15px; }

/* Quote block (subpages) */
.quote-block {
  padding: 40px 0;
}
.quote-block h2 {
  font-size: 28px;
  line-height: 38px;
  font-weight: bold;
  font-style: italic;
  color: #727475;
}
.quote-block .author {
  text-align: right;
  font-size: 30px;
  font-weight: 300;
  color: #727475;
  margin-top: 10px;
}

/* Contact page */
.contact-info { padding: 40px 0; }
.contact-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.contact-info p { margin-bottom: 5px; }
.studios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.studio h3 {
  font-weight: bold;
  margin-bottom: 10px;
}
.map-container {
  width: 100%;
  height: 300px;
  margin-top: 15px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 30px 0;
}
.blog-post {
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f1f1f1;
}
.blog-post img {
  width: 260px;
  min-width: 260px;
  height: 175px;
  object-fit: cover;
}
.blog-post-content { flex: 1; }
.blog-post-content .date {
  font-size: 12px;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.blog-post-content h3 {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 10px;
  font-weight: bold;
}
.blog-post-content h3 a { color: #727475; }
.blog-post-content h3 a:hover { color: #c8c4d8; }
.blog-post-content p {
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 10px;
}

/* Progetti page */
.project-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  align-items: start;
}
.project-section.reverse { direction: rtl; }
.project-section.reverse > * { direction: ltr; }
.project-section h2 {
  font-size: 24px;
  margin-bottom: 5px;
}
.project-section h6 {
  color: #a3a3a3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 300;
  margin-bottom: 15px;
}
.project-section img {
  width: 100%;
  object-fit: cover;
}

/* Adulti list */
.dash-list { list-style: none; padding: 0; }
.dash-list li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}
.dash-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
}

/* Footer */
.footer {
  background-color: #000;
  padding: 50px 0 10px;
  border-top: 1px solid #bababa;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.footer-logo img { width: 120px; }
.footer h3 {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}
.footer p, .footer a {
  color: #a3a3a3;
  font-size: 14px;
  line-height: 24px;
}
.footer a:hover { color: #fff; }

/* Copyright */
.copyright {
  background-color: #000;
  border-top: 1px solid #bababa;
  padding: 15px 0;
}
.copyright-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copyright p {
  color: #a3a3a3;
  font-size: 14px;
  margin: 0;
}
.copyright .social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.copyright .social img { width: 15px; height: 15px; }
.copyright .social a { font-size: 14px; color: #a3a3a3; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-slider { height: 900px; }
  .hero-slider .hero-name { font-size: 80px; line-height: 80px; }
  .hero-slider .hero-subtitle { font-size: 17px; }
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .parallax-banner { background-attachment: scroll; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-inner {
    justify-content: center;
    flex-direction: column;
    padding: 20px 0;
  }
  .nav-logo {
    position: static;
    margin-bottom: 10px;
  }
  .nav-logo img { width: 100px; float: none; margin: 0 auto; }

  .hero-slider { height: 720px; }
  .hero-slider .hero-name { font-size: 60px; line-height: 60px; }
  .hero-slider .hero-subtitle { font-size: 14px; letter-spacing: 1px; }
  .hero-subpage { height: 150px; }
  .hero-subpage h1 { font-size: 30px; }

  .welcome-section { flex-direction: column; padding-top: 20px; }
  .welcome-section .welcome-text h2 { font-size: 28px; line-height: 36px; text-align: center; }

  .two-col { grid-template-columns: 1fr; }
  .two-col img { height: 250px; }

  .studios { grid-template-columns: 1fr; }

  .blog-post { flex-direction: column; }
  .blog-post img { width: 100%; min-width: auto; height: 200px; }

  .project-section { grid-template-columns: 1fr; }
  .project-section.reverse { direction: ltr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; text-align: center; }
  .footer-logo img { margin: 0 auto; }

  .copyright-inner { flex-direction: column; gap: 10px; text-align: center; }

  .sticky-nav { display: none; }

  .quote-section { padding: 50px 15px; }
  .quote-section h2 { font-size: 22px; line-height: 32px; }

  .parallax-banner { padding: 60px 15px 160px; }
  .parallax-banner h2 { font-size: 28px; line-height: 34px; }
  .projects-grid { margin-top: -80px; }
}
