/* OrtaVillas — veste grafica del gruppo, con palette verde-lago e sabbia/ottone. */

:root {
  --ink:          #0a1b1e;
  --ink-2:        #10282c;
  --brand:        #1c6470;
  --brand-dark:   #0f424b;
  --brand-light:  #6aa3ac;
  --sand:         #cfb795;
  --sand-hi:      #e8d5af;
  --brass:        #be9a63;
  --paper:        #f4f1ea;
  --ease-lux:     cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--sand-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.what :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--brand-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 32px, 1152px);
  margin-inline: auto;
}

.section-wrap {
  padding-block: clamp(72px, 9vw, 128px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 10px;
  background: var(--brass);
  content: "";
  vertical-align: middle;
}

/* ============================================================ header a pillola */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 12px;
  z-index: 50;
  padding-inline: 8px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 980px;
  height: 56px;
  margin: 0 auto;
  padding: 0 8px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(10, 27, 30, 0.7);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.pill__brand {
  display: flex;
  align-items: center;
  flex: none;
}

.pill__brand img {
  width: auto;
  height: 21px;
  transition: transform 300ms var(--ease-lux);
}

.pill__brand:hover img { transform: scale(1.04); }

.pill__nav {
  display: none;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.pill__nav a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  white-space: nowrap;
  transition: color 250ms var(--ease-lux);
}

.pill__nav a:hover { color: #fff; }

.nav-underline { position: relative; }

.nav-underline::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1.5px;
  border-radius: 9999px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms var(--ease-lux);
}

.nav-underline:hover::after { transform: scaleX(1); }

.pill__end {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.locale {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 500;
}

.locale a,
.locale span {
  padding: 6px 5px;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 250ms var(--ease-lux), background-color 250ms var(--ease-lux);
}

.locale a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.locale [aria-current="page"] { color: #fff; }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: color 250ms var(--ease-lux), background-color 250ms var(--ease-lux);
}

.burger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sheet {
  display: none;
  width: 100%;
  max-width: 980px;
  margin: 10px auto 0;
  padding: 18px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(10, 27, 30, 0.94);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.sheet[data-open] { display: block; }

.sheet ul {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.sheet li {
  font-size: 15px;
  font-weight: 500;
}

.sheet li a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.sheet li a:hover { color: #fff; }

.sheet__contacts {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.sheet__contacts a {
  color: var(--sand-hi);
  overflow-wrap: anywhere;
  text-decoration: none;
}

@media (min-width: 900px) {
  .site-header {
    top: 16px;
    padding-inline: 16px;
  }

  .pill {
    gap: 16px;
    padding: 0 16px 0 24px;
  }

  .pill__brand img { height: 24px; }
  .pill__nav { display: flex; }
  .locale { gap: 2px; font-size: 13px; }
  .locale a, .locale span { padding: 6px 8px; }
  .burger { display: none; }
  .sheet { display: none !important; }
}

/* ============================================================ hero */

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 104px 20px 76px;
  overflow: hidden;
  text-align: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(80% 62% at 50% 45%, rgba(5, 18, 21, 0.73) 0%, rgba(5, 18, 21, 0) 100%),
    linear-gradient(180deg, rgba(5, 18, 21, 0.76) 0%, rgba(5, 18, 21, 0.42) 34%, rgba(5, 18, 21, 0.64) 76%, var(--ink) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 62rem);
}

.hero__mark {
  width: min(277px, 64vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.48));
}

.hero h1 {
  max-width: 56rem;
  margin: 24px auto 0;
  color: #fff;
  font-size: clamp(2.15rem, 0.85rem + 4.5vw, 4.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 48rem;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  transition:
    color 250ms var(--ease-lux),
    background-color 250ms var(--ease-lux),
    border-color 250ms var(--ease-lux),
    transform 250ms var(--ease-lux);
}

.btn:hover { transform: translateY(-1px); }

.btn--solid {
  background: var(--paper);
  color: var(--ink);
}

.btn--solid:hover { background: #fff; }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.17);
}

.hero__email {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-underline-offset: 4px;
  transition: color 250ms var(--ease-lux);
}

.hero__email:hover { color: #fff; }

.hero__cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  display: grid;
  padding: 6px;
  color: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__cue { animation: bob 2.6s var(--ease-lux) infinite; }
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@media (max-width: 520px) {
  .hero__cta .btn {
    width: 100%;
    max-width: 22rem;
  }
}

/* ============================================================ cosa facciamo */

.what {
  color: var(--ink);
  background: var(--paper);
  scroll-margin-top: 88px;
}

.what h2 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(42px, 6vw, 72px);
  border-top: 1px solid rgba(10, 27, 30, 0.16);
}

.service {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 0;
  border-bottom: 1px solid rgba(10, 27, 30, 0.16);
}

.service__number {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.service h3 {
  margin: 12px 0 0;
  color: var(--brand-dark);
  font-size: clamp(1.35rem, 1.15rem + 0.55vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.service > p {
  margin: 16px 0 0;
  color: rgba(10, 27, 30, 0.72);
  font-size: 15px;
  line-height: 1.72;
  text-wrap: pretty;
}

.service__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-top: auto;
  padding-top: 26px;
}

.text-link {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  transition: transform 250ms var(--ease-lux);
}

.text-link:hover span { transform: translate(2px, -2px); }

.service__email {
  color: rgba(10, 27, 30, 0.62);
  font-size: 13px;
  text-underline-offset: 4px;
}

.service__email:hover { color: var(--brand-dark); }

@media (min-width: 860px) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(10, 27, 30, 0.16);
  }

  .service {
    padding: 32px clamp(24px, 3vw, 40px);
    border-right: 1px solid rgba(10, 27, 30, 0.16);
    border-bottom: 0;
  }

  .service:first-child { padding-left: 0; }
  .service:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

/* ============================================================ il lago */

.lake {
  position: relative;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 12%, rgba(106, 163, 172, 0.16), transparent 34rem),
    var(--ink);
  scroll-margin-top: 88px;
}

.lake .eyebrow { color: var(--sand-hi); }

.lake__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.lake h2 {
  max-width: 46rem;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 3.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lake__body {
  max-width: 42rem;
  color: rgba(244, 241, 234, 0.74);
  font-size: 16px;
  line-height: 1.76;
}

.lake__body p { margin: 0; }

.lake__body .lake__close {
  margin-top: 24px;
  color: var(--sand-hi);
  font-weight: 500;
}

@media (min-width: 820px) {
  .lake__intro {
    grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
    gap: clamp(48px, 7vw, 96px);
    align-items: end;
  }
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: clamp(48px, 7vw, 88px);
}

.gallery figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink-2);
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 800ms var(--ease-lux);
}

.gallery figure:hover img { transform: scale(1.025); }

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ============================================================ fascia CTA */

.cta-band {
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(207, 183, 149, 0.3), transparent 44%),
    var(--paper);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-block: clamp(52px, 7vw, 82px);
}

.cta-band h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(2rem, 1.55rem + 1.8vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.cta-band p {
  max-width: 42rem;
  margin: 14px 0 0;
  color: rgba(10, 27, 30, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn--brand {
  background: var(--brand-dark);
  color: #fff;
}

.btn--brand:hover { background: var(--brand); }

.btn--outline {
  border: 1px solid rgba(15, 66, 75, 0.3);
  color: var(--brand-dark);
}

.btn--outline:hover {
  border-color: var(--brand-dark);
  background: rgba(28, 100, 112, 0.06);
}

.cta-band__email {
  color: var(--brand-dark);
  font-size: 13px;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

@media (min-width: 860px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
  }

  .cta-band__actions {
    max-width: 25rem;
    justify-content: flex-end;
  }
}

/* ============================================================ footer */

.footer {
  color: #fff;
  background: var(--brand-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  padding-block: 52px;
  font-size: 14px;
}

.footer__mark {
  width: auto;
  height: 28px;
}

.footer__tagline {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer__method {
  max-width: 24rem;
  margin: 14px 0 0;
  color: var(--sand-hi);
  line-height: 1.6;
}

.footer__method a {
  text-decoration-color: rgba(232, 213, 175, 0.35);
  text-underline-offset: 4px;
  transition: color 250ms var(--ease-lux);
}

.footer__method a:hover { color: #fff; }

.footer h2.col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__sitemap a,
.footer__contacts a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: color 250ms var(--ease-lux);
}

.footer__sitemap a:hover,
.footer__contacts a:hover {
  color: #fff;
}

.footer__contacts {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contacts a,
.footer__contacts span {
  overflow-wrap: anywhere;
}

#contatti { scroll-margin-top: 88px; }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bar .wrap {
  padding-block: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .footer__grid {
    grid-template-columns: 1.35fr 0.8fr 1fr;
    gap: clamp(48px, 7vw, 92px);
    padding-block: 64px;
  }
}

/* ============================================================ movimento ridotto */

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__video { display: none; }

  .hero {
    background: url("/assets/images/hero-poster.jpg") center / cover no-repeat;
  }
}
