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

:root {
  --plaster: #F7F2EA;
  --walnut: #3A332C;
  --cotto: #A6694A;
  --cotto-dark: #8A5238;
  --stone: #8C8071;
  --sand: #C9BCA3;
  --espresso: #2B2622;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-zia: "Times New Roman", Times, serif;
  --header-h: 5.5rem;
  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--plaster);
  color: var(--walnut);
  line-height: 1.6;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cotto);
  color: var(--plaster);
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--cotto);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cotto);
  margin-bottom: 0.9rem;
}

.eyebrow-light {
  color: var(--cotto);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background-color: var(--cotto);
  color: var(--plaster);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--cotto-dark);
}

.site-header {
  background-color: var(--espresso);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0 2.5rem;
  height: 8rem;
  background-image: url("../img/header.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.head-logo {
  display: flex;
  align-items: center;
}


.head-logo img {
  height: 7.3rem;
  width: auto;
  margin: 25px;
}

.head-logo p {
  color: white;
  font-family: var(--font-zia);
  font-size: 3rem;
}

.menu ul {
  display: flex;
  gap: 2.4rem;
}

.menu a {
  color: var(--plaster);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 0.3rem;
  font-variant: small-caps;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--cotto);
  transition: width 0.25s ease;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 2.4rem;
  height: 2.4rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--plaster);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: calc(100vh - var(--header-h));
  background-color: var(--plaster);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 4rem;
  animation: hero-rise 0.8s ease-out both;
}

.hero-media {
  position: relative;
  align-self: center;
  width: 78%;
  max-width: 32rem;
  aspect-ratio: 6 / 5;
  margin: 1.6rem 5rem 0 0;
  animation: hero-fade 1s ease-out both;
}

.hero-media::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  bottom: -1.1rem;
  width: 82%;
  height: 82%;
  border: 1px solid var(--cotto);
  border-radius: 2px;
}

.hero-media-primary {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 82%;
  height: 82%;
  overflow: hidden;
  border-radius: 2px;
  z-index: 1;
}

.hero-media-secondary {
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  border: 6px solid var(--plaster);
  box-shadow: 0 14px 34px rgba(43, 38, 34, 0.2);
  z-index: 2;
}

.hero-media-primary img,
.hero-media-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-title {
  font-family: var(--font-zia);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--walnut);
  margin-bottom: 1.6rem;
}

.hero-tag {
  font-size: 1.15rem;
  color: var(--stone);
  max-width: 30rem;
  margin-bottom: 2.2rem;
}

.chi-siamo {
  padding: 6rem 0;
  background-color: var(--plaster);
}

.chi-siamo-grid {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: 4rem;
  align-items: start;
}

.chi-siamo-card {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
}

.chi-siamo-card-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chi-siamo-titolo {
  font-family: var(--font-zia);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1.4rem;
  color: var(--walnut);
}

.chi-siamo-desc {
  color: var(--stone);
  max-width: 38rem;
  margin-bottom: 2.4rem;
  font-size: 1.05rem;
}

.chi-siamo-stats {
  display: flex;
  gap: 2.6rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--sand);
  padding-top: 1.6rem;
}

.chi-siamo-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cotto);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cosa-facciamo {
  padding: 6rem 0;
  background-color: var(--espresso);
  color: var(--plaster);
}

.section-titolo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--sand);
  max-width: 34rem;
  margin-bottom: 3.4rem;
  font-size: 1.05rem;
}

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

.servizio-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 1.4rem 0 0.7rem;
}

.servizio-card p {
  color: var(--sand);
  font-size: 0.96rem;
}

.servizio-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  object-fit: cover;
}

.galleria {
  padding: 6rem 0;
  background-color: var(--plaster);
  overflow: hidden;
}

.galleria .section-titolo,
.galleria .eyebrow-light {
  color: var(--walnut);
}

.galleria-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.galleria-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.3rem 0.3rem 0.8rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.galleria-track::-webkit-scrollbar {
  display: none;
}

.galleria-item {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
}

.galleria-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}

.galleria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.galleria-thumb:hover img,
.galleria-thumb:focus-visible img {
  transform: scale(1.06);
}

.galleria-arrow {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--sand);
  background-color: var(--plaster);
  color: var(--walnut);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.galleria-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
}

.galleria-arrow:hover,
.galleria-arrow:focus-visible {
  background-color: var(--cotto);
  color: var(--plaster);
  border-color: var(--cotto);
}

body.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 17, 14, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(90vw, 1100px);
  max-height: 88vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-caption {
  color: var(--plaster);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(247, 242, 234, 0.4);
  background: none;
  color: var(--plaster);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background-color: var(--cotto);
  border-color: var(--cotto);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(247, 242, 234, 0.4);
  background: none;
  color: var(--plaster);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox-arrow svg {
  width: 1.4rem;
  height: 1.4rem;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  background-color: var(--cotto);
  border-color: var(--cotto);
}

.lightbox-arrow-prev {
  left: 1rem;
}

.lightbox-arrow-next {
  right: 1rem;
}

.contatti {
  padding: 6rem 0;
  background-color: var(--plaster);
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contatti-testo .section-titolo {
  color: var(--walnut);
}

.contatti-testo .section-intro {
  color: var(--stone);
}

.contatti-lista {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contatti-lista li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 1.4rem;
}

.contatti-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.contatti-valore {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--walnut);
  transition: color 0.2s ease;
}

a.contatti-valore:hover,
a.contatti-valore:focus-visible {
  color: var(--cotto);
}

.site-footer {
  background-color: var(--espresso);
  color: var(--sand);
  text-align: center;
  padding: 1.8rem 0;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .chi-siamo-grid,
  .contatti-grid {
    grid-template-columns: 1fr;
  }

  .chi-siamo-card {
    width: 14rem;
  }

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

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

  .hero-media {
    order: -1;
    width: 72%;
    max-width: 20rem;
    margin: 2.8rem auto 0;
  }

  .hero-media::before {
    left: -0.7rem;
    bottom: -0.7rem;
  }

  .hero-media-secondary {
    border-width: 4px;
  }

  .hero-content {
    padding: 2.4rem 2.5rem;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 0 1.4rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--espresso);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu.open {
    max-height: 16rem;
  }

  .menu ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.4rem 1.4rem;
  }

  .menu li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(247,242,234,0.1);
  }

  .section-inner {
    padding: 0 1.4rem;
  }

  .hero-content {
    padding: 2rem 1.4rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .galleria-item {
    width: 74vw;
  }

  .galleria-arrow {
    width: 2.4rem;
    height: 2.4rem;
  }

  .galleria-arrow svg {
    width: 1rem;
    height: 1rem;
  }

  .lightbox-arrow {
    width: 2.4rem;
    height: 2.4rem;
  }

  .lightbox-arrow-prev {
    left: 0.4rem;
  }

  .lightbox-arrow-next {
    right: 0.4rem;
  }

  .lightbox-close {
    top: 0.6rem;
    right: 0.6rem;
  }
}


#menu-principale a {
  font-family: var(--font-zia);
}
