:root {
  --cream: #f5f0e5;
  --paper: #fbf8f1;
  --forest: #183c2e;
  --forest-deep: #0e2b20;
  --sage: #a9b69a;
  --clay: #c86545;
  --ink: #183229;
  --line: rgba(24, 50, 41, 0.18);
  --font-display: "Cormorant Garamond";
  --font-sans: "Manrope";
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans), Arial, sans-serif;
}

body::before {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: var(--clay);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(24px, 5vw, 76px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--font-display), Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.brand small {
  margin-top: 3px;
  color: rgba(24, 50, 41, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
}

.brand-mark span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--cream);
}

.brand-mark span:nth-child(1) {
  width: 7px;
  height: 8px;
  top: 7px;
  left: 7px;
}

.brand-mark span:nth-child(2) {
  width: 7px;
  height: 8px;
  top: 5px;
  right: 7px;
}

.brand-mark span:nth-child(3) {
  width: 7px;
  height: 7px;
  top: 13px;
  left: 3px;
}

.brand-mark span:nth-child(4) {
  width: 15px;
  height: 12px;
  left: 10px;
  bottom: 6px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-contact > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 58% 42%;
  background: var(--paper);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px clamp(30px, 7vw, 105px) 80px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display), Georgia, serif;
}

h1 {
  max-width: 800px;
  margin-bottom: 30px;
  font-size: clamp(65px, 7.5vw, 118px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.8;
}

h1 em {
  color: var(--clay);
  font-weight: 500;
}

.hero-intro {
  max-width: 580px;
  margin-bottom: 34px;
  color: rgba(24, 50, 41, 0.76);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  border: 1px solid var(--forest);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest);
  color: white;
}

.button-primary:hover {
  background: var(--forest-deep);
}

.button-ghost:hover {
  background: var(--cream);
}

.coming-soon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: rgba(24, 50, 41, 0.58);
  font-size: 11px;
  font-weight: 600;
}

.coming-soon span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d8e68;
  box-shadow: 0 0 0 5px rgba(109, 142, 104, 0.14);
}

.hero-scene {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #31533e;
}

.hero-scene::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(10, 31, 22, 0.02),
    rgba(10, 31, 22, 0.24)
  );
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: -5% 0;
  width: 100%;
  height: 110%;
  display: block;
  object-fit: cover;
  object-position: 100% center;
  transform: translateZ(0);
  will-change: transform;
}

.location-card {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 19px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: rgba(245, 240, 229, 0.86);
  backdrop-filter: blur(10px);
}

.location-card span {
  color: rgba(24, 50, 41, 0.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-card strong {
  font-family: var(--font-display), Georgia, serif;
  font-size: 19px;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 clamp(24px, 5vw, 76px);
  background: var(--forest);
  color: white;
}

.numbers article {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px clamp(15px, 3vw, 46px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.numbers article:first-child {
  padding-left: 0;
}

.numbers article:last-child {
  border-right: 0;
}

.numbers strong {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 600;
  line-height: 1;
}

.numbers span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
}

.numbers .area-fact strong {
  font-size: clamp(62px, 6.5vw, 96px);
  letter-spacing: -0.04em;
}

.numbers .area-fact .counter {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.numbers .area-fact > span:last-child {
  font-size: 15px;
}

.experience {
  padding: 110px clamp(24px, 6vw, 90px) 130px;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 48px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 4px 50px 4px 4px;
}

.feature-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 38px;
  font-weight: 600;
  line-height: 0.95;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.7;
}

.feature-card .fisc-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-card .fisc-line > span {
  flex: 1;
}

.feature-light {
  border: 1px solid var(--line);
  background: var(--paper);
}

.feature-green {
  background: var(--forest);
  color: white;
}

.feature-green p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-clay {
  background: var(--clay);
  color: #fff9ef;
}

.feature-clay p {
  color: rgba(255, 249, 239, 0.78);
}

.gorge-gallery {
  padding: 105px clamp(24px, 6vw, 90px) 115px;
  background: var(--paper);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 470px);
  align-items: end;
  gap: 60px;
  margin-bottom: 45px;
}

.gallery-heading h2 {
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.gallery-heading > p {
  margin: 0 0 5px;
  color: rgba(24, 50, 41, 0.7);
  font-size: 14px;
  line-height: 1.75;
}

.gorge-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  color: white;
  touch-action: pan-y;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 5px 55px 5px 5px;
  background: var(--forest-deep);
}

.carousel-track {
  width: 100%;
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  min-width: 0;
  height: clamp(500px, 64vw, 680px);
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: #183c2e;
}

.carousel-slide::before {
  position: absolute;
  z-index: -2;
  inset: -35px;
  content: "";
  background-position: center;
  background-size: cover;
  filter: blur(24px) brightness(0.58) saturate(0.9);
  transform: scale(1.08);
}

.carousel-slide::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 27, 19, 0.12), rgba(8, 27, 19, 0.64)),
    radial-gradient(circle at center, transparent 20%, rgba(7, 27, 19, 0.28));
}

.gorge-one::before {
  background-image: url("public/farfa-paesaggio-2.jpg");
}

.gorge-two::before {
  background-image: url("public/farfa-paesaggio-3.jpg");
}

.farfa-river::before {
  background-image: url("public/farfa-ponte-sfondato.jpg");
}

.slide-photo {
  width: auto;
  max-width: min(62%, 520px);
  height: 77%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(5, 22, 15, 0.38);
}

.slide-wide .slide-photo {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.carousel-slide figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 4vw, 52px);
  bottom: clamp(24px, 4vw, 45px);
  left: clamp(22px, 4vw, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.carousel-slide figcaption span {
  max-width: 520px;
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.carousel-slide figcaption a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: right;
}

.carousel-button {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(251, 248, 241, 0.9);
  color: var(--forest);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.carousel-button:hover {
  background: white;
  transform: translateY(-50%) scale(1.06);
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition:
    width 200ms ease,
    border-radius 200ms ease,
    background 200ms ease;
}

.carousel-dot.is-active {
  width: 24px;
  border-radius: 100px;
  background: white;
}

.gallery-license {
  margin: 16px 0 0;
  color: rgba(24, 50, 41, 0.52);
  font-size: 9px;
  line-height: 1.6;
}

.gallery-license a {
  border-bottom: 1px solid currentColor;
}

.about {
  display: grid;
  grid-template-columns: 44% 56%;
  background: var(--paper);
}

.about-portrait {
  min-height: 590px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 25px;
  background: var(--sage);
  overflow: hidden;
}

.portrait-ring {
  width: min(27vw, 350px);
  height: min(27vw, 350px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 60, 46, 0.34);
  border-radius: 50%;
  color: var(--forest);
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(90px, 12vw, 170px);
  font-weight: 500;
  letter-spacing: -0.08em;
}

.about-portrait p {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-copy {
  align-self: center;
  max-width: 750px;
  padding: 90px clamp(35px, 8vw, 125px);
}

.about-copy > p:not(.eyebrow) {
  margin: 30px 0 28px;
  color: rgba(24, 50, 41, 0.72);
  font-size: 16px;
  line-height: 1.8;
}

.about-copy a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--forest);
  font-size: 13px;
  font-weight: 800;
}

.fisc-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
  vertical-align: middle;
}

.fisc-inline strong {
  min-width: 0;
}

.fisc-logo-link,
.about-copy .fisc-logo-link {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.fisc-logo-link:hover {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 7px 8px rgba(8, 33, 24, 0.18));
}

.fisc-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.about-copy .fisc-logo {
  width: 52px;
  height: 52px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 70px;
  padding: 110px clamp(24px, 7vw, 110px);
  background: var(--forest-deep);
  color: white;
}

.contact > div:first-child > p:last-child {
  max-width: 500px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-links a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-links a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-links span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-links strong {
  min-width: 0;
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(24px, 2.5vw, 34px);
  overflow-wrap: anywhere;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px clamp(24px, 5vw, 76px);
  background: var(--paper);
}

footer p,
footer > a {
  margin: 0;
  color: rgba(24, 50, 41, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer > a {
  justify-self: end;
}

.footer-fisc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.footer-fisc .fisc-logo {
  width: 36px;
  height: 36px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 690px;
    padding-top: 140px;
  }

  .hero-scene {
    min-height: 540px;
  }

  .numbers,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .numbers article,
  .numbers article:first-child {
    min-height: 125px;
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .feature-card {
    min-height: 330px;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portrait-ring {
    width: 300px;
    height: 300px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 20px;
  }

  .header-contact > span:last-child {
    display: none;
  }

  .brand strong {
    font-size: 18px;
  }

  .hero-copy {
    min-height: 650px;
    padding: 125px 22px 60px;
  }

  h1 {
    font-size: 61px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .coming-soon {
    align-items: flex-start;
  }

  .coming-soon span {
    flex: 0 0 auto;
    margin-top: 4px;
  }

  .hero-scene {
    min-height: 460px;
  }

  .location-card {
    right: 18px;
    bottom: 18px;
  }

  .experience {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .about-portrait {
    min-height: 430px;
  }

  .gorge-gallery {
    padding: 80px 18px 90px;
  }

  .carousel-viewport {
    border-radius: 4px 32px 4px 4px;
  }

  .carousel-slide {
    height: 530px;
  }

  .slide-photo {
    max-width: 75%;
    height: 72%;
  }

  .carousel-slide figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    bottom: 38px;
  }

  .carousel-slide figcaption a {
    text-align: left;
  }

  .carousel-button {
    width: 42px;
    height: 42px;
  }

  .portrait-ring {
    width: 245px;
    height: 245px;
  }

  .about-copy {
    padding: 72px 24px;
  }

  .contact {
    gap: 45px;
    padding: 80px 24px;
  }

  .contact-links a {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .contact-links strong {
    font-size: 24px;
  }

  .footer-brand small {
    display: none;
  }

  footer {
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
