:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mineral-text: #354c50;
  --mineral-label: #51432d;
}
body {
  background: #dfe7e2;
}
.site-header {
  background: #e4ece7;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.site-header.is-scrolled {
  background: #e4ece7f5;
  backdrop-filter: blur(12px);
}
.hero {
  min-height: 610px;
  height: min(740px, calc(100svh - 180px));
  max-height: none;
}
.hero-media {
  position: absolute;
  inset: -40px 0;
  z-index: -2;
}
.hero-image {
  z-index: auto;
  object-position: center 58%;
}
.hero-content {
  padding-block: 52px;
}
.hero h1 {
  font-size: 76px;
  line-height: 1.09;
  font-weight: 600;
}
.hero-title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero-title-line > * {
  display: block;
}
.hero-tagline {
  font: 500 22px/1.4 var(--body);
  margin-top: 28px;
}
.hero p {
  margin-top: 16px;
  font-size: 14px;
}
.hero-note {
  margin-top: 34px;
}
.hero-scroll {
  width: 54px;
  height: 54px;
  bottom: 32px;
  right: 136px;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.hero-scroll:hover {
  background: #ffffff20;
  border-color: var(--accent);
}
.section-label {
  display: flex;
  gap: 14px;
  align-items: center;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}
.section h2 {
  text-wrap: balance;
}
.reviews-inner .section-label {
  justify-content: center;
}
.about-photo {
  overflow: hidden;
  height: 530px;
}
.about-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
}
.image-caption {
  padding: 28px 36px;
  border-left: 2px solid var(--accent);
}
.services-section {
  --text-muted: #59696e;
  background: #f5f7f6;
}
.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.service-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  align-content: start;
  column-gap: 18px;
  padding: 32px 18px;
  border: 0;
  border-top: 1px solid #cdd6d4;
  border-radius: 0;
  background: transparent;
}
.service-card::before {
  position: absolute;
  content: "";
  inset: -1px 0 0;
  z-index: -1;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--motion-ease);
}
.service-card:hover {
  transform: none;
}
.service-number {
  grid-column: 1;
  grid-row: 1 / 4;
  font: 500 12px/1.5 var(--body);
  color: #746141;
  padding-top: 5px;
}
.service-card > .icon {
  grid-column: 3;
  grid-row: 1;
  width: 28px;
  height: 28px;
  margin: 0;
}
.service-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 23px;
  margin: 0 0 14px;
  min-height: 0;
}
.service-card p {
  grid-column: 2 / 4;
  min-height: 46px;
  font-size: 13px;
  max-width: 400px;
}
.service-more {
  grid-column: 2 / 4;
  border: 0;
  padding: 0;
  margin-top: 22px;
}
.service-card :is(h3, p, .icon, .service-number, .service-more) {
  transition:
    color 0.3s,
    transform 0.4s var(--motion-ease);
}
.service-card:is(:hover, :focus-visible)::before {
  transform: scaleY(1);
}
.service-card:is(:hover, :focus-visible) :is(h3, .service-more) {
  color: white;
}
.service-card:is(:hover, :focus-visible) p {
  color: #dae4e3;
}
.service-card:is(:hover, :focus-visible) :is(.icon, .service-number) {
  color: #edc381;
}
.service-card:is(:hover, :focus-visible) .service-more .icon {
  transform: translate(3px, -3px);
}
.why-section,
.site-footer {
  background-color: var(--primary-dark);
  background-image:
    linear-gradient(#092832bd, #092832bd),
    url("../images/textures/marmo-petrolio.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.why-section {
  padding-block: 114px;
}
.site-footer {
  border-top: 1px solid #d99a3270;
  background-position: center 75%;
}
.footer-top p,
.footer-contact,
.footer-bottom {
  color: #c5d5d7;
}
.footer-links a,
.footer-contact a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition:
    color 0.2s,
    translate 0.3s var(--motion-ease);
}
.footer-links a:hover,
.footer-contact a:hover {
  translate: 5px 0;
}
.footer-top > div {
  min-width: 0;
}
.footer-contact {
  overflow-wrap: anywhere;
}
.footer-company-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  color: #c5d5d7;
  padding-block: 20px;
  border-top: 1px solid #ffffff25;
  font-size: 11px;
}
.company-certification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  border-block: 1px solid #a3b5ac;
  color: var(--primary-dark);
  font-weight: 500;
}
.company-certification .icon {
  width: 24px;
  height: 24px;
}
.legal-company-address {
  margin-block: 24px;
  font-style: normal;
  overflow-wrap: anywhere;
}
.legal-company-address a {
  text-decoration: underline;
}
.legal-page h2 {
  font-size: 28px;
  margin-block: 24px 18px;
}
.values-grid article {
  position: relative;
  padding-top: 34px;
}
.value-number {
  font-size: 52px;
  margin-bottom: 34px;
}
.values-grid article::after,
.workflow li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
}
.gallery-grid {
  gap: 48px;
  grid-template-columns: 1.22fr 1fr;
}
.gallery-item img {
  height: 460px;
  transition: transform 1s var(--motion-ease);
}
.gallery-item:nth-child(2) {
  margin-top: 90px;
}
.gallery-item:nth-child(2) img {
  height: 390px;
}
.gallery-open:hover img {
  transform: scale(1.065);
}
.gallery-expand {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.4s var(--motion-ease);
}
.gallery-open:hover .gallery-expand {
  background: var(--accent);
  transform: rotate(90deg);
}
.gallery-item figcaption {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}
.workflow-section {
  background: #eef3f1;
}
.workflow li {
  padding-top: 32px;
}
.workflow li > span {
  font: 600 30px/1.2 var(--heading);
}
.cta-section {
  position: relative;
  isolation: isolate;
  padding-block: 96px;
  overflow: hidden;
  background: #092832;
}
.cta-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #092832b8;
}
.cta-inner h2 {
  font-size: 44px;
}
.cta-inner p {
  color: #e1e8e7;
}
.contact-form {
  --text-muted: #4c5d62;
  border: 0;
  border-top: 2px solid var(--accent);
  border-radius: 0;
  background: #edf2ee;
  padding: 38px;
}
/* Two mineral tones connect the light sections without tinting the photography. */
.about-section,
.gallery-section,
.reviews-section,
.contact-section,
.services-section,
.workflow-section,
.trust-band {
  --text-muted: var(--mineral-text);
  background-color: #dfe7e2;
  background-image:
    linear-gradient(#dfe7e2b3, #dfe7e2b3),
    url("../images/textures/marmo-perla.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.services-section,
.workflow-section,
.trust-band {
  background-color: #d2dfd8;
  background-image:
    linear-gradient(#d2dfd8d1, #d2dfd8d1),
    url("../images/textures/marmo-perla.webp");
  background-position: center 70%;
}
.gallery-section {
  background-position: center 25%;
}
.services-grid .service-card {
  border-top-color: #a3b5ac;
}
.service-more .icon {
  color: #735525;
}
.contact-section {
  background-position: right center;
}
:is(
    .about-section,
    .gallery-section,
    .reviews-section,
    .contact-section,
    .services-section,
    .workflow-section
  )
  .section-label,
.gallery-item figcaption > span,
.services-section .service-number,
.workflow li > span {
  color: var(--mineral-label);
}
.services-section .section-heading > p,
.workflow-section p {
  color: var(--mineral-text);
}
.service-card:is(:hover, :focus-visible) .service-number {
  color: #edc381;
}
.cookie-banner {
  background: #f1f5f2;
}
@media (max-width: 1023px) {
  .main-nav {
    background: #e4ece7;
  }
}
@media (max-width: 767px) {
  .mobile-actions {
    background: #e4ece7;
  }
}
.field :is(input, textarea, select) {
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.field :is(input, textarea, select):focus {
  border-color: var(--primary);
  box-shadow: 0 3px 0 #d99a3226;
}
.button {
  position: relative;
  overflow: hidden;
  transition:
    background 0.3s,
    transform 0.35s var(--motion-ease),
    box-shadow 0.3s;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    #ffffff26 48%,
    transparent 66%
  );
  translate: -110% 0;
  pointer-events: none;
}
.button:hover::after {
  translate: 110% 0;
  transition: translate 0.75s var(--motion-ease);
}
.button:hover {
  box-shadow: 0 8px 18px #09283216;
}
.button:active {
  scale: 0.97;
}
.button .icon,
.text-link .icon {
  transition: transform 0.4s var(--motion-ease);
}
.button:hover .icon:last-child,
.text-link:hover .icon {
  transform: translateX(4px);
}
.text-link {
  transition:
    border-color 0.3s,
    gap 0.4s var(--motion-ease);
}
.text-link:hover {
  gap: 32px;
  border-color: var(--primary);
}

/* Progressive enhancement: content is visible until observers are ready. */
.reveal {
  transition:
    opacity 0.65s var(--motion-ease),
    translate 0.8s var(--motion-ease),
    scale 0.8s var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-motion .reveal:not(.is-visible) {
  opacity: 0;
  transform: none;
  translate: 0 56px;
}
.js-motion .reveal.is-visible {
  translate: 0 0;
}
.js-motion :is(.service-card, .gallery-item):not(.is-visible) {
  scale: 0.96;
}
.js-motion :is(.service-card, .gallery-item).is-visible {
  scale: 1;
}
.js-motion .is-visible > :is(.value-number, .service-number),
.js-motion .workflow .is-visible > span {
  animation: number-in 0.7s var(--motion-ease) both;
  animation-delay: var(--reveal-delay, 0ms);
  transform-origin: left center;
}
.js-motion .section-heading:not(.is-visible) {
  translate: 0 46px;
}
.js-motion .footer-top .reveal:not(.is-visible) {
  translate: 0 38px;
}
.js-motion .about-photo {
  clip-path: inset(0);
  transition: clip-path 1.1s var(--motion-ease);
}
.js-motion .about-visual:not(.is-visible) .about-photo {
  clip-path: inset(0 0 28% 0);
}
.js-motion .image-caption {
  transition: translate 1.1s var(--motion-ease) 0.15s;
}
.js-motion .about-visual:not(.is-visible) .image-caption {
  translate: 0 22px;
}
.js-motion .section-label::before,
.js-motion .values-grid article::after,
.js-motion .workflow li::after {
  transition: transform 1.1s var(--motion-ease) var(--reveal-delay, 0ms);
}
.js-motion .reveal:not(.is-visible) .section-label::before,
.js-motion .values-grid article:not(.is-visible)::after,
.js-motion .workflow li:not(.is-visible)::after {
  transform: scaleX(0);
}
.js-motion .hero-image {
  animation: hero-photo-in 3.8s var(--motion-ease) both;
}
.js-motion .hero-title-line > * {
  animation: title-in 1s var(--motion-ease) both;
}
.js-motion .hero-title-line:nth-child(2) > * {
  animation-delay: 0.14s;
}
.js-motion :is(.hero-tagline, .hero p, .hero-actions, .hero-note) {
  animation: detail-in 0.95s var(--motion-ease) both;
  animation-delay: 0.25s;
}
.js-motion .hero p {
  animation-delay: 0.34s;
}
.js-motion .hero-actions {
  animation-delay: 0.43s;
}
.js-motion .hero-note {
  animation-delay: 0.52s;
}
.js-motion .hero-scroll .icon {
  animation: scroll-cue 2.8s ease-in-out 0.8s;
}
.js-motion .lightbox[open] {
  animation: detail-in 0.4s var(--motion-ease);
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .main-nav.is-open > a {
    animation: detail-in 0.55s var(--motion-ease) both;
  }
  .main-nav.is-open > a:nth-child(2) {
    animation-delay: 40ms;
  }
  .main-nav.is-open > a:nth-child(3) {
    animation-delay: 80ms;
  }
  .main-nav.is-open > a:nth-child(4) {
    animation-delay: 120ms;
  }
  .main-nav.is-open > a:nth-child(5) {
    animation-delay: 160ms;
  }
  .main-nav.is-open > a:nth-child(6) {
    animation-delay: 200ms;
  }
  .main-nav.is-open > a:nth-child(7) {
    animation-delay: 240ms;
  }
}
@keyframes hero-photo-in {
  from {
    transform: scale(1.18);
  }
  to {
    transform: scale(1);
  }
}
@keyframes title-in {
  0% {
    transform: translateY(115%) rotate(2deg);
  }
  75% {
    transform: translateY(-3%) rotate(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes number-in {
  from {
    transform: translateY(16px) scale(0.8);
  }
  to {
    transform: translateY(0) scale(1);
  }
}
@keyframes detail-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes scroll-cue {
  0%,
  50%,
  100% {
    transform: translateY(0);
  }
  25%,
  75% {
    transform: translateY(5px);
  }
}
@media (min-width: 1024px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js-motion .hero-media {
    transform: translate3d(0, var(--parallax-y, 0px), 0);
  }
  .js-motion .about-photo > img {
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.09);
  }
}
@media (min-width: 1600px) {
  .hero h1 {
    font-size: 88px;
  }
  .hero {
    height: min(800px, calc(100svh - 180px));
  }
}
@media (max-width: 1199px) {
  .hero h1 {
    font-size: 68px;
  }
  .services-grid {
    gap: 0 28px;
  }
  .service-card {
    column-gap: 12px;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
  }
  .service-card h3 {
    font-size: 21px;
  }
  .about-photo {
    height: 490px;
  }
  .gallery-grid {
    gap: 30px;
  }
}
@media (max-width: 767px) {
  .hero {
    min-height: 580px;
    height: calc(100svh - 190px);
    max-height: 700px;
    align-items: center;
  }
  .hero h1 {
    font-size: 52px;
    line-height: 1.1;
  }
  .hero-content {
    padding-block: 34px 60px;
  }
  .hero-tagline {
    font-size: 18px;
    margin-top: 24px;
  }
  .hero p {
    font-size: 13px;
    margin-top: 14px;
  }
  .hero-actions {
    margin-top: 24px;
  }
  .hero-note {
    margin-top: 28px;
    max-width: 245px;
  }
  .hero-scroll {
    right: 100px;
    bottom: 22px;
    width: 38px;
    height: 38px;
  }
  .hero-image {
    object-position: 64% center;
  }
  .about-photo {
    height: 380px;
  }
  .image-caption {
    padding: 22px 26px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service-card {
    padding: 27px 12px;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }
  .service-card h3 {
    font-size: 22px;
    min-height: 0;
  }
  .service-card p {
    min-height: 0;
    font-size: 13px;
  }
  .service-card > .icon {
    width: 25px;
    height: 25px;
  }
  .service-more {
    margin-top: 18px;
    font-size: 11px;
  }
  .why-section {
    padding-block: 70px;
  }
  .value-number {
    font-size: 40px;
    margin-bottom: 26px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .gallery-item:nth-child(2) {
    margin-top: 0;
  }
  .gallery-item img,
  .gallery-item:nth-child(2) img {
    height: 360px;
  }
  .gallery-expand {
    width: 44px;
    height: 44px;
  }
  .workflow li > span {
    font-size: 26px;
  }
  .cta-section {
    padding-block: 66px;
  }
  .cta-inner h2 {
    font-size: 32px;
  }
  .contact-form {
    padding: 28px 20px;
  }
  .js-motion .reveal:not(.is-visible) {
    translate: 0 32px;
  }
}
@media (max-width: 374px) {
  .hero h1 {
    font-size: 44px;
  }
  .hero-tagline {
    font-size: 16px;
  }
  .hero-scroll {
    right: 96px;
    bottom: 12px;
  }
  .service-card {
    padding-inline: 4px;
    column-gap: 10px;
  }
  .service-card h3 {
    font-size: 20px;
  }
  .about-photo {
    height: 320px;
  }
  .gallery-item img,
  .gallery-item:nth-child(2) img {
    height: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .about-photo > img,
  .gallery-open:hover img {
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
  }
  .about-photo {
    clip-path: none !important;
  }
  .button:hover,
  .gallery-open:hover .gallery-expand {
    transform: none;
  }
  .button:active {
    scale: none;
  }
  .footer-links a:hover,
  .footer-contact a:hover {
    translate: none;
  }
}
