:root {
  --bg-color: #F7F5f0; /* Sfondo */
  --text-main: #3b3b3b; /* Testo principale */
  --text-muted: #686868; /* Testi didascalici */
  --accent-color: #9e876e; /* Colore di accento */
  --font-main: 'Montserrat', Arial, sans-serif;
  --font-secondary: 'Karla', sans-serif;
  --terracotta: #a86951;
  --oliva: #878974;
}

.main-header {
  width: 100%;
  padding: 30px 8%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--terracotta);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-family: "Karla", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.logo a {
  color: #F7F5F0;
  font-size: 1.6rem;
  font-weight: 380;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: "Karla", sans-serif;
  font-size: 1.3rem;
  font-weight: 340;
  letter-spacing: 0.07em;
  color: rgba(247, 245, 240, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: #FFFFFF;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .main-header {
    padding: 20px 5%;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #F7F5F0;
    transition: all 0.3s ease;
  }
  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--terracotta);
    padding: 0 5%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
    gap: 15px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  .nav-links a {
    font-size: 1.1rem;
  }
  .nav-links.is-active, .nav-links.is-open {
    max-height: 250px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(247, 245, 240, 0.1);
  }
}
.btn-minimal {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 400;
  background-color: transparent;
  color: var(--bg-color);
  border: 1px solid var(--bg-color);
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.btn-minimal:hover {
  background-color: var(--oliva);
  color: #000000;
  font-weight: 500;
}

.nav-link-arrow {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 350;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.3);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}
.nav-link-arrow:hover {
  color: var(--oliva);
  border-color: var(--oliva);
}

body.home-locked {
  overflow: hidden;
  height: 100vh;
  margin: 0;
}

.hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/moodboard SF.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 50vh;
  padding-left: 8%;
  box-sizing: border-box;
  margin: 0;
  position: relative;
}
.hero-section h1 {
  color: var(--bg-color);
  margin-bottom: 5px;
}
.hero-section h2 {
  color: var(--bg-color);
  margin-bottom: 3rem;
}
.hero-section .btn-minimal {
  color: var(--bg-color);
  border: 1px solid var(--bg-color);
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.hero-section .btn-minimal:hover {
  background-color: var(--oliva);
  color: #000000;
}

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

.home-section {
  padding: 80px 20px;
  background-color: #fdfbf7;
}
.home-section .home-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  /* Sostituiamo il vecchio span con una vera freccia CSS */
}
.scroll-down-arrow .arrow-icon {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  animation: bounceArrow 1.5s infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(8px) rotate(45deg);
    opacity: 1;
  }
}
.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 80px;
}
.about-grid .about-text {
  flex: 1;
  min-width: 300px;
}
.about-grid .about-text span {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #777;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}
.about-grid .about-text h2 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 20px;
}
.about-grid .about-text .divider {
  width: 60px;
  border: none;
  border-top: 2px solid var(--terracotta);
  margin-bottom: 25px;
}
.about-grid .about-text p {
  line-height: 1.8;
  font-size: 1.2rem;
  font-weight: 350;
  margin: 0;
}
.about-grid .about-text .tag {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--oliva);
  font-size: 1rem;
  font-weight: 400;
  display: block;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}
.about-grid .about-image {
  flex: 0 0 350px;
  text-align: center;
}
.about-grid .about-image img {
  width: 100%;
  max-width: 320px;
  height: 400px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stats-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 60px auto 80px auto;
  padding: 40px 0;
  max-width: 1000px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.stats-section .stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}
.stats-section .stat-item .stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}
.stats-section .stat-item .stat-label {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  font-weight: 400;
}

.home-services-header {
  text-align: center;
  margin-bottom: 40px;
}
.home-services-header h2 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.home-services-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.home-services-grid .home-service-box {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 40px 30px;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  border-top: 3px solid var(--terracotta);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}
.home-services-grid .home-service-box:hover {
  transform: translateY(-5px);
  color: inherit;
  text-decoration: none;
}
.home-services-grid .home-service-box h3 {
  color: var(--text-main);
  margin-bottom: 20px;
}
.home-services-grid .home-service-box p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.home-cta {
  max-width: 1100px;
  margin: 80px auto 0 auto;
  padding: 60px 30px;
  text-align: center;
  border-radius: 4px;
}
.home-cta strong, .home-cta b {
  font-weight: 550;
  color: var(--text-main);
}
.home-cta h2 {
  color: var(--text-main);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 15px;
}
.home-cta p {
  max-width: 1000px;
  font-size: 1.2rem;
  margin: 0 auto 35px auto;
  line-height: 1.6;
}

body.portfolio-home {
  overflow: hidden;
  height: 100dvh;
  margin: 0;
}

.portfolio-split-container {
  display: flex;
  margin-top: 96px;
  height: calc(100dvh - 96px);
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.split-block {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  overflow: hidden;
  background-color: #f0f0f0;
  transition: flex 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border-right: 2px solid var(--bg-color);
}
.split-block:last-child {
  border-right: none;
}
.split-block:hover {
  flex: 1.15;
}
.split-block:hover .block-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
}
.split-block:hover .nav-link-arrow {
  border-color: rgb(255, 255, 255);
}

.interior-block {
  background-image: url("../images/Cover/interior-cover.jpg");
  background-size: cover;
  background-position: center;
}

.photography-block {
  background-image: url("../images/Cover/photo-cover.jpg");
  background-size: cover;
  background-position: center;
}

.block-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  transition: background 0.4s ease;
  z-index: 1;
}

.block-content {
  position: relative;
  color: #ffffff;
  z-index: 2;
}
.block-content h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
  color: var(--bg-color);
  margin-top: 0;
}
.block-content .tag {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
}

.nav-link-arrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1.4px solid var(--accent-color);
  padding-bottom: 4px;
  transition: border-color 0.3s ease;
  display: inline-block;
}

@media (max-width: 768px) {
  .portfolio-split-container {
    margin-top: 96px;
    height: calc(100dvh - 96px);
    flex-direction: column;
  }
  .split-block {
    flex: 1;
    height: 50%;
    padding: 40px;
    border-right: none;
    border-bottom: 2px solid var(--bg-color);
  }
  .split-block:last-child {
    border-bottom: none;
  }
  .split-block:hover {
    flex: 1;
  }
  .split-block .block-content .tag {
    margin-bottom: 2px;
    line-height: 2.2;
  }
  .split-block .block-content h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    line-height: 1.2;
  }
}
.internal-portfolio-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 160px 5% 80px 5%;
}
.internal-portfolio-container .page-intro {
  max-width: 700px;
  margin-bottom: 80px;
}
.internal-portfolio-container .page-intro h1 {
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.internal-portfolio-container .page-intro h2 {
  margin: 0;
}
.internal-portfolio-container .tag {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  display: block;
  margin-bottom: 12px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  width: 100%;
  align-items: flex-start;
}
.projects-grid .project-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.projects-grid .project-card.card-small {
  flex: 0 0 calc(50% - 1.25rem);
  width: calc(50% - 1.25rem);
  max-width: calc(50% - 1.25rem);
}
.projects-grid .project-card.card-small .project-image-wrapper {
  aspect-ratio: 3/2;
}
.projects-grid .project-card.card-large {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
.projects-grid .project-card.card-large .project-image-wrapper {
  aspect-ratio: 21/9;
  max-height: 48vh;
}
.projects-grid .project-card:hover .project-img {
  transform: scale(1.03);
}
.projects-grid .project-card-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.projects-grid .project-image-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #eaeaea;
  margin-bottom: 1rem;
}
.projects-grid .project-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.projects-grid .project-info {
  padding-top: 5px;
}
.projects-grid .project-info .tag {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 5px;
}
.projects-grid .project-info h3 {
  margin-bottom: 5px;
  letter-spacing: -0.01em;
  margin-top: 0;
}
.projects-grid .project-info p {
  color: var(--text-muted);
  margin: 0;
}

.back-button-container {
  position: sticky;
  bottom: 0;
  z-index: 100;
  width: 100%;
  margin-top: 6rem;
  margin-bottom: 0;
  padding: 0.8rem 1.5rem;
  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.back-button-container .nav-link-arrow {
  position: static;
  display: inline-block;
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1.3px solid var(--text-main);
}
.back-button-container .nav-link-arrow:hover {
  opacity: 1;
  transform: none;
  font-weight: 450;
  border-bottom: 1.5px solid var(--text-main);
}

@media (max-width: 768px) {
  .projects-grid .project-card.card-small, .projects-grid .project-card.card-large {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  .projects-grid .project-card .project-image-wrapper {
    width: 100%;
    height: 220px;
    aspect-ratio: unset;
    max-height: 220px;
  }
  .back-button-container {
    margin-top: 4rem;
    padding: 1.5rem 1rem;
    background-color: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
  }
  .back-button-container .nav-link-arrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-align: center;
    padding-bottom: 4px;
    width: auto;
    white-space: nowrap;
  }
}
.project-detail-container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 140px 1.5rem 2rem 1.5rem;
  text-align: center;
}
.project-detail-container .project-detail-header {
  margin-bottom: 2rem;
}
.project-detail-container .project-detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.project-detail-container .project-detail-header h2 {
  line-height: 1.5;
  margin-bottom: 35px;
  margin-top: 0;
}
.project-detail-container .project-detail-header .tag {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin: 0;
}

.project-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.gallery-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2.5rem;
  align-items: stretch;
  position: relative;
}
.gallery-row > div,
.gallery-row .img-horizontal,
.gallery-row .img-vertical {
  min-width: 0;
  box-sizing: border-box;
}
.gallery-row img,
.gallery-row video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.gallery-row.full {
  width: 100%;
}
.gallery-row.full img, .gallery-row.full video {
  aspect-ratio: 16/9;
}
.gallery-row.full {
  -o-object-fit: cover;
     object-fit: cover;
  height: auto;
}
.gallery-row.double-horizontal .img-horizontal {
  flex: 1 1 0;
}
.gallery-row.double-horizontal .img-horizontal img, .gallery-row.double-horizontal .img-horizontal video {
  aspect-ratio: 3/2;
}
.gallery-row.double-vertical .img-vertical {
  flex: 1 1 0;
}
.gallery-row.double-vertical .img-vertical img, .gallery-row.double-vertical .img-vertical video {
  aspect-ratio: 2/3;
}
.gallery-row.triple-vertical {
  gap: 1.5rem;
}
.gallery-row.triple-vertical .img-vertical {
  flex: 1 1 0;
}
.gallery-row.triple-vertical .img-vertical img, .gallery-row.triple-vertical .img-vertical video {
  aspect-ratio: 2/3;
}
.gallery-row.triple-horizontal {
  gap: 1.5rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding: 0 1.5rem;
}
.gallery-row.triple-horizontal .img-horizontal {
  flex: 1 1 0;
}
.gallery-row.triple-horizontal .img-horizontal img, .gallery-row.triple-horizontal .img-horizontal video {
  aspect-ratio: 16/10;
}
.gallery-row.quad-vertical-full {
  gap: 1.25rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding: 0 1.5rem;
}
.gallery-row.quad-vertical-full .img-vertical {
  flex: 1 1 0;
}
.gallery-row.quad-vertical-full .img-vertical img, .gallery-row.quad-vertical-full .img-vertical video {
  aspect-ratio: 2/3;
}
.gallery-row.mixed {
  gap: 2.5rem;
}
.gallery-row.mixed.mixed-left .img-horizontal {
  flex: 1 1 0;
  margin-left: calc(-50vw + 50%);
}
.gallery-row.mixed.mixed-left .img-vertical {
  flex: 0 0 42%;
  width: 42%;
}
.gallery-row.mixed.mixed-right .img-vertical {
  flex: 0 0 42%;
  width: 42%;
}
.gallery-row.mixed.mixed-right .img-horizontal {
  flex: 1 1 0;
  margin-right: calc(-50vw + 50%);
}
.gallery-row.mixed .img-horizontal img, .gallery-row.mixed .img-horizontal video {
  aspect-ratio: 16/10;
  -o-object-position: center;
     object-position: center;
}
.gallery-row.mixed .img-vertical img, .gallery-row.mixed .img-vertical video {
  aspect-ratio: 2/3;
}
.gallery-row .image-caption {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-main);
  margin-top: 1px;
  letter-spacing: 0.05em;
  text-align: center;
}

.macro-project-layout {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 3rem 0 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 60px;
  align-items: start !important;
  box-sizing: border-box;
  text-align: left;
  position: relative;
  overflow: visible !important;
  /* A. COLONNA DI SINISTRA: SIDEBAR STICKY */
}
.macro-project-layout .project-sidebar {
  position: fixed !important;
  top: 350px !important;
  left: 0rem;
  width: 240px !important;
  height: calc(100vh - 160px) !important;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 20px 30px 0;
  background-color: transparent;
  z-index: 100;
  box-sizing: border-box;
  overflow-y: auto !important;
}
.macro-project-layout .project-sidebar .sidebar-header {
  padding-left: 1.5rem;
}
.macro-project-layout .project-sidebar .sidebar-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.macro-project-layout .project-sidebar .sidebar-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}
.macro-project-layout .project-sidebar .sidebar-header .tag {
  margin-bottom: 6px;
  font-size: 0.75rem;
}
.macro-project-layout .project-sidebar .project-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 25px 0;
  width: 100%;
}
.macro-project-layout .project-sidebar .project-nav-menu .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: #f4f0ec;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}
.macro-project-layout .project-sidebar .project-nav-menu .nav-item .num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-color);
}
.macro-project-layout .project-sidebar .project-nav-menu .nav-item:hover {
  background-color: #eae3dc;
  color: var(--text-main);
  transform: translateX(6px);
}
.macro-project-layout .project-sidebar .project-nav-menu .nav-item.active {
  background-color: var(--accent-color);
  color: #ffffff;
  font-weight: 500;
  transform: translateX(10px);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.08);
}
.macro-project-layout .project-sidebar .project-nav-menu .nav-item.active .num {
  color: #ffffff;
}
.macro-project-layout .project-sidebar .sidebar-back {
  padding-left: 1.5rem;
  padding-top: 20px;
}

/* B. COLONNA DI DESTRA: MICRO-PROGETTI */
.project-content-scroll {
  margin-left: 10px;
  grid-column: 2;
  width: 100%;
  max-width: 1300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-right: 0;
  box-sizing: border-box;
  overflow: visible !important;
}
.project-content-scroll .micro-project-section {
  width: 100%;
  max-width: 100%;
  scroll-margin-top: 140px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  box-sizing: border-box;
}
.project-content-scroll .micro-project-section:not(:last-child) {
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 50px !important;
  margin-bottom: 0px;
}
.project-content-scroll .micro-project-section > *:last-child {
  margin-bottom: 0 !important;
}
.project-content-scroll .micro-project-section {
  /* Regole specifiche per i titoli dei micro-progetti (.project-info) */
}
.project-content-scroll .micro-project-section .project-info {
  text-align: left;
  margin-bottom: -1rem;
}
.project-content-scroll .micro-project-section .project-info .tag {
  display: block;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  font-family: var(--font-secondary, var(--font-main));
  margin-bottom: 6px;
}
.project-content-scroll .micro-project-section .project-info h3 {
  font-size: 1.8rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 8px;
}
.project-content-scroll .micro-project-section .project-info p {
  font-size: 1.15rem;
  font-weight: 350;
  color: var(--text-muted);
  font-family: var(--font-main);
  line-height: 1.5;
  margin: 0;
}
.project-content-scroll .micro-project-section .gallery-row {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2.5rem;
  align-items: stretch;
  box-sizing: border-box;
  margin-bottom: 0 !important;
}
.project-content-scroll .micro-project-section .gallery-row.full {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.project-content-scroll .micro-project-section .gallery-row.full img, .project-content-scroll .micro-project-section .gallery-row.full video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
.project-content-scroll .micro-project-section .gallery-row.double-horizontal {
  width: 100%;
  gap: 1.5rem;
  display: flex;
  flex-direction: row;
}
.project-content-scroll .micro-project-section .gallery-row.double-horizontal .img-horizontal {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.project-content-scroll .micro-project-section .gallery-row.double-horizontal img, .project-content-scroll .micro-project-section .gallery-row.double-horizontal video {
  aspect-ratio: 16/10;
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}
.project-content-scroll .micro-project-section .gallery-row.triple-horizontal {
  width: 100%;
  max-width: 100%;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  gap: 1.5rem;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
}
.project-content-scroll .micro-project-section .gallery-row.triple-horizontal .img-horizontal {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-content-scroll .micro-project-section .gallery-row.triple-horizontal .img-horizontal img,
.project-content-scroll .micro-project-section .gallery-row.triple-horizontal .img-horizontal video {
  aspect-ratio: 16/10;
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.project-content-scroll .micro-project-section .gallery-row.triple-vertical {
  gap: 1.5rem;
}
.project-content-scroll .micro-project-section .gallery-row.triple-vertical .img-vertical {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.project-content-scroll .micro-project-section .gallery-row.triple-vertical .img-vertical img {
  aspect-ratio: 9/16;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
}
.project-content-scroll .micro-project-section {
  /* 1. Didascalia sotto la singola foto */
}
.project-content-scroll .micro-project-section .image-caption {
  display: block;
  width: 100% !important;
  font-size: 17px;
  color: var(--text-muted);
  font-family: var(--font-main);
  margin-top: 20px;
  margin-bottom: 0 !important;
  letter-spacing: 0.05em;
  text-align: center !important;
}
.project-content-scroll .micro-project-section {
  /* 2. Didascalia condivisa sotto l'intero blocco */
}
.project-content-scroll .micro-project-section .image-caption.shared-caption {
  display: block;
  width: 100% !important;
  font-size: 17px;
  color: var(--text-muted);
  font-family: var(--font-main);
  margin-top: -20px !important;
  margin-bottom: 0 !important;
  letter-spacing: 0.05em;
  text-align: center !important;
}

@media (max-width: 768px) {
  .project-detail-container {
    padding-top: 110px;
  }
  .gallery-row {
    flex-direction: column;
    height: auto;
    gap: 1.5rem;
  }
  .gallery-row.mixed, .gallery-row.double-vertical, .gallery-row.double-horizontal, .gallery-row.triple-vertical {
    flex-direction: column;
    height: auto;
    gap: 1.5rem;
  }
  .gallery-row.full img, .gallery-row.mixed .img-horizontal img, .gallery-row.double-horizontal .img-horizontal img {
    width: 100%;
    aspect-ratio: 3/2;
  }
  .gallery-row.mixed .img-vertical img, .gallery-row.double-vertical .img-vertical img, .gallery-row.triple-vertical .img-vertical img {
    width: 100%;
    aspect-ratio: 2/3;
  }
  .gallery-row.mixed.mixed-left .img-horizontal, .gallery-row.mixed.mixed-right .img-horizontal, .gallery-row.triple-horizontal, .gallery-row.quad-vertical-full {
    width: 100%;
    left: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  .gallery-row.mixed.mixed-left .img-vertical, .gallery-row.mixed.mixed-right .img-vertical {
    flex: 1 1 100%;
    width: 100%;
  }
  .gallery-row.triple-horizontal .img-horizontal img, .gallery-row.triple-horizontal .img-horizontal video {
    width: 100%;
    aspect-ratio: 3/2;
  }
  .back-button-container {
    margin-top: 4rem;
    padding: 1.5rem 1rem;
    background-color: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
  }
  .back-button-container .nav-link-arrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-align: center;
    padding-bottom: 4px;
    width: auto;
    white-space: normal;
  }
  /* Responsive mobile per MACRO-PROJECT / MICRO-PROJECT */
  .macro-project-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
  .macro-project-layout .project-sidebar {
    display: none;
  }
}
main.cv-container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 160px 2rem 80px 2rem;
  box-sizing: border-box;
}
main.cv-container h1 {
  color: var(--text-main);
  margin: 0 0 4rem 0;
  border-bottom: 1px solid var(--oliva);
  padding-bottom: 1.5rem;
}
main.cv-container h2 {
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
}

.cv-layout {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

.cv-sidebar {
  flex: 0 0 260px;
  width: 260px;
}

.cv-main-content {
  flex: 1;
  min-width: 0;
}

.cv-section {
  margin-bottom: 3.5rem;
}
.cv-section:last-child {
  margin-bottom: 0;
}

.cv-contact-list,
.cv-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cv-contact-list li,
.cv-skill-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.cv-contact-list a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}
.cv-contact-list a:hover {
  color: var(--oliva);
}

.cv-item {
  margin-bottom: 2.5rem;
}
.cv-item:last-child {
  margin-bottom: 0;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 0.2rem;
}

h3.cv-item-role {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.tag,
.cv-item-date {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  white-space: nowrap;
}

.cv-item-company {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--oliva);
  margin: 0 0 0.5rem 0;
}

.cv-item-desc {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 350;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media screen and (max-width: 768px) {
  main.cv-container {
    padding-top: 120px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  main.cv-container h1 {
    margin-bottom: 3rem;
  }
  .cv-layout {
    flex-direction: column;
    gap: 3rem;
  }
  .cv-sidebar {
    flex: 1 1 100%;
    width: 100%;
  }
  .cv-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
  }
  .tag,
  .cv-item-date {
    white-space: normal;
  }
}
.contatti-page {
  width: 100%;
  color: var(--text-main);
}

.contatti-wrapper {
  max-width: 1050px;
  margin: 0 auto;
  padding: 160px 2rem 80px 2rem;
  box-sizing: border-box;
}
.contatti-wrapper h1 {
  margin: 0 0 20px 0;
}
.contatti-wrapper h2 {
  margin: 0 0 5rem 0;
}

.intro-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 3.5rem;
}

.contatti-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5rem;
}

.contatti-sidebar {
  flex: 0 0 280px;
}
.contatti-sidebar h3 {
  text-transform: uppercase;
  letter-spacing: 0rem;
  color: var(--terracotta);
  padding-bottom: 8px;
  margin-bottom: 0rem;
}
.contatti-sidebar p {
  margin-bottom: 2rem;
  line-height: 1.5;
}

.social-link {
  color: var(--text-main);
  font-weight: 400;
  text-decoration: none;
}
.social-link:hover {
  text-decoration: underline;
}

.contatti-form-section {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d1d1d1;
  border-radius: 0;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 1rem;
  background-color: transparent;
  outline: none;
  box-sizing: border-box;
}
.form-group input::-moz-placeholder, .form-group textarea::-moz-placeholder {
  font-family: var(--font-main);
  color: var(--oliva);
  opacity: 1;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  font-family: var(--font-main);
  color: var(--oliva);
  opacity: 1;
}
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #111111;
}

.btn-minimal {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.btn-minimal:hover {
  border: 1px solid var(--text-main);
  background-color: var(--oliva);
  color: #000000;
}

@media screen and (max-width: 768px) {
  .contatti-page .contatti-wrapper {
    padding-top: 130px;
  }
  .contatti-page .contatti-grid {
    flex-direction: column;
    gap: 3rem;
  }
  .contatti-page .contatti-sidebar {
    flex: 1 1 100%;
    width: 100%;
  }
}
/* ==========================================
   PAGINA SERVIZI - STILE COORDINATO
   ========================================== */
.internal-services-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 160px 5% 80px 5%;
}
.internal-services-container .page-intro {
  max-width: 700px;
  margin-bottom: 80px;
}
.internal-services-container .page-intro h1 {
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.internal-services-container .page-intro h2 {
  margin: 0;
}
.internal-services-container .page-intro .btn-minimal {
  margin-top: 32px;
  margin-bottom: 0;
}
.internal-services-container .tag {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  display: block;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .internal-services-container {
    padding: 160px 5% 80px 5%;
  }
  .internal-services-container .page-intro {
    max-width: 100%;
    margin-bottom: 48px;
  }
  .internal-services-container .page-intro h2 {
    white-space: normal;
    overflow-wrap: break-word;
  }
  .internal-services-container .page-intro .btn-minimal {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
    margin-bottom: 0;
  }
}

/* Griglia dei 5 servizi a Zig-Zag */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  border-bottom: 1px solid #e5e0d8;
  padding-bottom: 60px;
}
.service-card:last-child {
  border-bottom: none;
}
.service-card.align-left {
  grid-template-areas: "media content";
}
.service-card.align-right {
  grid-template-areas: "content media";
}

.service-img {
  grid-area: media;
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #e0ddd5;
  border: 1px solid #d0cbc1;
  overflow: hidden;
}
.service-img img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}
.service-img .img-dim {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 3px 8px;
  font-family: monospace;
  z-index: 2;
}

.service-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  height: 100%; /* Occupa l'intera altezza della riga/immagine */
}
.service-content .num {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.service-content h2 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 5px;
}
.service-content .lead {
  font-family: var(--font-secondary);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--oliva);
  margin-bottom: 20px;
  line-height: 1.5;
}
.service-content .text {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.service-content .service-btn-wrapper {
  margin-top: auto; /* Spinge il pulsante in basso, allineato al bordo inferiore dell'immagine */
  text-align: center; /* Centra il pulsante orizzontalmente rispetto al testo */
  padding-top: 25px; /* Distanza opzionale sopra il pulsante */
}

.services-cta-bottom {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 30px;
}

/* Responsive Mobile */
@media (max-width: 991px) {
  .service-card,
  .service-card.align-left,
  .service-card.align-right {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "content";
    gap: 30px;
  }
}
html {
  scrollbar-gutter: stable;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1 {
  margin-top: 15px;
  color: var(--text-main);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0rem;
  margin-bottom: 5px;
}

h2 {
  margin-top: 0;
  color: var(--text-main);
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 3rem;
}

h3 {
  margin-top: -3px;
  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 550;
  margin-bottom: 1rem;
}

h4 {
  margin-top: 0px;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 550;
  margin-bottom: 1rem;
}

p {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.tag {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
}

.back-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  h4 {
    font-size: 1rem;
  }
}/*# sourceMappingURL=style.css.map */