/* ==========================================================================
   Edilizia 2026 — landing page
   Hero e tipografia: rif. OH Architecture
   Sezioni a pannelli arrotondati sovrapposti: rif. Somervilles
   ========================================================================== */

:root {
  --cream: #fffcf5;
  --cream-2: #eceae0;
  --dark: #262324;
  --dark-2: #1b1919;
  --line-light: #d6d4ca;
  --line-dark: #3d3a3b;
  --grey: #6b6966;
  --grey-light: #a4a4a4;
  --accent: #ff5a1f;

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 2.5vw, 40px);
  --section-y: clamp(88px, 12vh, 160px);
  --r-lg: 20px;
  --r-sm: 10px;

  --h1: clamp(3rem, 8.4vw, 8.5rem);
  --h2: clamp(2.4rem, 5vw, 4.75rem);
  --statement: clamp(1.9rem, 4vw, 3.75rem);
  --text-lg: clamp(1.1rem, 1.35vw, 1.3rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #000;
  color: var(--dark);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--cream);
}
.skip:focus { top: 12px; }

/* ---------- Typography helpers ---------- */

.label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h2 {
  font-size: var(--h2);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.muted { color: var(--grey-light); }

.link {
  position: relative;
  display: inline-flex;
  gap: 6px;
  padding-bottom: 4px;
  font-weight: 500;
  text-decoration: none;
}
.link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.link:hover::before { transform: scaleX(0); transform-origin: right; }

/* ---------- Buttons: effetto "blur-lift" (rif. tiny-mighty-buttons) ----------
   Le lettere vengono generate da main.js: ogni carattere e' ripetuto 3 volte
   con ritardi sfalsati, cosi' il movimento lascia una scia che simula il blur. */

.btn {
  --btn-bg: var(--cream);
  --btn-fg: var(--dark);
  --btn-border: transparent;
  --elastic: linear(0, .2178 2.1%, 1.1144 8.49%, 1.2959 10.7%, 1.3463 11.81%, 1.3705 12.94%, 1.3726, 1.3643 14.48%, 1.3151 16.2%, 1.0317 21.81%, .941 24.01%, .8912 25.91%, .8694 27.84%, .8698 29.21%, .8824 30.71%, 1.0122 38.33%, 1.0357, 1.046 42.71%, 1.0416 45.7%, .9961 53.26%, .9839 57.54%, .9853 60.71%, 1.0012 68.14%, 1.0056 72.24%, .9981 86.66%, 1 100%);
  --elastic-out: linear(0, .5737 7.6%, .8382 11.87%, .9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, .9995 46.99%, .9872 51.63%, .9842 58.77%, 1.0011 81.26%, 1);
  --lift-ease: cubic-bezier(.32, .72, 0, 1);

  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 1.05s var(--elastic), color .3s ease-out;
}
.btn:active { transform: scaleX(.955) scaleY(.954); }

/* fondo: si gonfia con rimbalzo e passa all'arancione */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  transition: transform .75s var(--elastic-out), background-color .3s ease-out, border-color .3s ease-out;
}

.btn__text {
  display: grid;
  align-items: center;
  align-self: stretch;
  padding: 0 26px;
  overflow: clip;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}
.btn svg { flex: none; margin-left: 22px; }
.btn svg + .btn__text { padding-left: 10px; }

.btn__line { grid-area: 1 / 1; white-space: pre; }
.btn__char { display: inline-grid; }
.btn__copy { grid-area: 1 / 1; }

.btn__line--out .btn__copy {
  transition: transform .5s var(--lift-ease), opacity .2s ease-out;
  transition-delay: calc(var(--k) * -.007s + var(--i) * .012s);
}
.btn__line--in .btn__copy {
  opacity: 0;
  transform: translate3d(calc(var(--o) * .0625rem), 1.25rem, 0) rotate(calc(var(--o) * -2deg));
  transition: transform .75s var(--elastic-out), opacity .2s ease-out;
  transition-delay: calc(var(--k) * .007s + var(--i) * .012s);
}

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

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before,
  .btn:focus-visible::before { transform: scaleX(1.015) scaleY(1.034) translateZ(0); }

  .btn:hover .btn__line--out .btn__copy,
  .btn:focus-visible .btn__line--out .btn__copy {
    opacity: 0;
    transform: translate3d(calc(var(--o) * .0625rem), -1.25rem, 0) rotate(calc(var(--o) * 2deg));
    transition-delay: calc(var(--k) * .007s + var(--i) * .012s);
  }
  .btn:hover .btn__line--in .btn__copy,
  .btn:focus-visible .btn__line--in .btn__copy {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--k) * -.007s + var(--i) * .012s + .1s);
  }
}

.btn--light { --btn-bg: var(--cream); --btn-fg: var(--dark); }
.btn--dark { --btn-bg: var(--dark); --btn-fg: var(--cream); }
.btn--ghost {
  --btn-bg: rgba(39, 39, 39, .45);
  --btn-border: rgba(255, 252, 245, .3);
  --btn-fg: var(--cream);
}
.btn--ghost::before {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn:hover, .btn:focus-visible { --btn-bg: var(--accent); --btn-border: var(--accent); --btn-fg: #fff; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  color: var(--cream);
  transition: transform .45s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 8px calc(var(--gutter) / 2);
  z-index: -1;
  border-radius: 999px;
  background: rgba(38, 35, 36, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.nav.is-solid::before { opacity: 1; }
.nav__logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.nav__links {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  font-size: 0.9375rem;
}
.nav__links a { text-decoration: none; }
/* nell'hero il menu sta a destra; dopo l'hero torna centrale e a destra compare il CTA */
.nav.is-solid .nav__links { grid-column: 2; justify-self: center; }
.nav__links a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav__cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-height: 42px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s, color .45s var(--ease), border-color .45s var(--ease);
}
.nav.is-solid .nav__cta {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s, color .45s var(--ease), border-color .45s var(--ease);
}

.nav__toggle {
  display: none;
  justify-self: end;
  padding: 10px 18px;
  border: 1px solid rgba(255, 252, 245, .35);
  border-radius: 999px;
  background: rgba(39, 39, 39, .45);
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: 8px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: 100px var(--gutter) 40px;
  border-radius: var(--r-lg);
  background: var(--dark);
  color: var(--cream);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  font-size: clamp(2.4rem, 11vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-decoration: none;
}
.menu__phone { font-size: 1.125rem; }

body.menu-open { overflow: hidden; }
body.menu-open .nav::before { opacity: 0; }

/* ---------- Pannelli sovrapposti ---------- */

main { position: relative; }

.block {
  position: relative;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  margin-top: calc(var(--r-lg) * -1);
  padding: var(--section-y) var(--gutter);
}
.block--cream { background: var(--cream); color: var(--dark); }
.block--dark { background: var(--dark); color: var(--cream); }

/* ogni pannello copre gli angoli di quello precedente */
.intro      { z-index: 1; padding-top: calc(var(--section-y) + var(--r-lg)); }
.about      { z-index: 2; }
.services   { z-index: 3; }
.bleed      { z-index: 4; }
.where      { z-index: 5; }
.contact    { z-index: 6; }
.footer     { z-index: 7; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 10;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--cream);
  background: var(--dark);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-in 2.2s var(--ease) forwards;
}
@keyframes hero-in { to { transform: scale(1); } }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.35) 22%, rgba(0,0,0,.1) 40%, rgba(0,0,0,0) 55%);
}
.hero__content {
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  position: absolute;
  inset: auto var(--gutter) clamp(28px, 5vh, 56px);
  display: grid;
  gap: clamp(20px, 3vh, 32px);
}
.hero__content .btn { text-shadow: none; }
.hero__heading {
  display: grid;
  gap: clamp(20px, 3vh, 32px);
  font-size: inherit;
}
.hero__heading > span { display: block; }
.hero__title {
  max-width: 12ch;
  font-size: var(--h1);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero__lead {
  max-width: 36ch;
  font-size: var(--text-lg);
  line-height: 1.25;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  writing-mode: vertical-rl;
  text-decoration: none;
  opacity: .8;
}

.hero__label, .hero__title, .hero__bottom {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__label { animation-delay: .3s; }
.hero__title { animation-delay: .45s; }
.hero__bottom { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */

.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px var(--gutter);
  padding-bottom: clamp(56px, 9vh, 112px);
}
.intro__grid .label { grid-column: 1 / 4; padding-top: .9em; }
.intro__statement {
  grid-column: 4 / 13;
  font-size: var(--statement);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.media {
  height: calc(100vh - var(--gutter) * 2);
  height: calc(100svh - var(--gutter) * 2);
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Chi siamo ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.about__media {
  position: sticky;
  top: var(--gutter);
  height: calc(100vh - var(--gutter) * 2);
  height: calc(100svh - var(--gutter) * 2);
  overflow: hidden;
  border-radius: var(--r-sm);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-block: clamp(24px, 8vh, 96px);
}
.about__body .label { color: var(--grey-light); }
.about__body .h2 { max-width: 13ch; }
.about__text {
  display: grid;
  gap: 1em;
  max-width: 46ch;
  font-size: var(--text-lg);
  line-height: 1.4;
  color: #cfccc4;
}
.values {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.values li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--r-sm);
  background: rgba(255, 252, 245, .06);
  border: 1px solid var(--line-dark);
}
.values__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
}
.values h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.values p { color: var(--grey-light); font-size: 0.9375rem; }

/* ---------- Cosa facciamo ---------- */

.services__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px var(--gutter);
  align-items: end;
  padding-bottom: clamp(40px, 7vh, 80px);
}
.services__head .label { grid-column: 1 / -1; }
.services__head .h2 { grid-column: 1 / 7; }
.services__intro {
  grid-column: 8 / 13;
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--grey);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: clamp(260px, 34vh, 360px);
  padding: clamp(22px, 2.4vw, 36px);
  border-radius: var(--r-sm);
  background: var(--cream-2);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.card:hover { background: var(--dark); color: var(--cream); }
.card:hover p { color: var(--grey-light); }
.card__num {
  margin-bottom: auto;
  font-size: 0.8125rem;
  color: var(--accent);
}
.card__title {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.card p { max-width: 36ch; color: var(--grey); transition: color .4s var(--ease); }
.card--dark { background: var(--dark); color: var(--cream); }
.card--dark p { color: var(--grey-light); }
.card--dark:hover { background: #000; }
.card__link {
  align-self: flex-start;
  margin-top: 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
  text-decoration: none;
}

/* ---------- Foto a tutto schermo ---------- */

.bleed {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  color: var(--cream);
  background: var(--dark);
}
.bleed__img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.bleed__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.05) 60%);
}
.bleed__content {
  position: absolute;
  inset: auto var(--gutter) calc(clamp(32px, 6vh, 72px) + var(--r-lg));
  display: grid;
  gap: 20px;
}
.bleed__quote {
  max-width: 18ch;
  font-size: var(--h2);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

/* ---------- Dove siamo ---------- */

.where {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gutter);
  align-items: stretch;
}
.where__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.where__body .link { align-self: flex-start; }
.where__text { max-width: 36ch; color: var(--grey); }
.where__address {
  font-style: normal;
  font-size: var(--text-lg);
  line-height: 1.4;
}
.where__map {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--cream-2);
}
.where__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border: 0;
  filter: saturate(.35) contrast(1.05) brightness(1.04);
}
/* tinta arancione sulla mappa (l'iframe di Google non si puo' stilizzare dall'interno) */
.where__tint {
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: .2;
  pointer-events: none;
}

/* ---------- Contatti ---------- */

.contact {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}
.contact__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}
.contact__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38,35,36,.92) 0%, rgba(38,35,36,.6) 100%);
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--section-y) var(--gutter) calc(var(--section-y) + var(--r-lg));
}
.contact__intro { display: grid; gap: 28px; justify-items: start; }
.contact__intro .label { color: var(--grey-light); }
.contact__lead { max-width: 40ch; font-size: var(--text-lg); line-height: 1.4; color: #cfccc4; }
.contact__phone {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone { transition: color .3s ease-out; }
.contact__phone:hover { color: var(--accent); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__meta dt { color: var(--grey-light); margin-bottom: 4px; }
.contact__meta dd { margin: 0; }

.form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--dark);
}
.form > .label { color: var(--grey); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; color: var(--grey); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--dark); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--grey);
}
.check input { margin-top: 2px; accent-color: var(--accent); }
.form__error { color: var(--accent); font-size: 0.875rem; }
.form__submit { justify-self: start; margin-top: 4px; }
.form .btn--light { --btn-bg: var(--dark); --btn-fg: var(--cream); }
.form .btn--light:hover, .form .btn--light:focus-visible { --btn-bg: var(--accent); --btn-fg: #fff; }

/* ---------- Footer ---------- */

.footer {
  padding-top: clamp(72px, 11vh, 128px);
  padding-bottom: 28px;
  background: #000;
  color: var(--cream);
  font-size: 0.9375rem;
}
.footer a { text-decoration: none; transition: color .25s ease-out; }
.footer a:hover { color: var(--accent); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px var(--gutter);
  padding-bottom: clamp(56px, 9vh, 104px);
}
.footer__brand { grid-column: 1 / 7; display: grid; gap: 16px; align-content: start; }
.footer__logo {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.05em;
}
.footer__tagline { max-width: 34ch; color: var(--grey-light); }

.footer__col { display: grid; gap: 14px; align-content: start; grid-column: span 2; }
.footer__grid > :nth-child(2) { grid-column: 7 / 9; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col address { font-style: normal; line-height: 1.5; }
.footer__title {
  color: var(--grey-light);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer__map { justify-self: start; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 252, 245, .14);
  color: var(--grey-light);
  font-size: 0.8125rem;
}
.footer__legal span:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: rgba(255, 252, 245, .3);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 252, 245, .14);
  font-size: 0.8125rem;
  color: var(--grey-light);
}
.footer__policies { display: flex; gap: 24px; }

/* ---------- Dock mobile ---------- */

.dock { display: none; }

/* ---------- Comparsa allo scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__grid > :nth-child(2) { grid-column: span 4; }
  .contact__inner { grid-template-columns: 1fr; align-content: center; }
  .form { max-width: 560px; width: 100%; }
}

@media (max-width: 860px) {
  :root { --r-lg: 14px; --r-sm: 10px; }

  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  /* Su mobile il testo occupa metà hero: sfumatura bassa più alta e più scura */
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%),
      linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.15) 65%, rgba(0,0,0,0) 78%);
  }

  .hero__scroll { display: none; }
  .hero__title { max-width: none; }

  .intro__grid, .services__head { grid-template-columns: 1fr; }
  .intro__grid .label, .intro__statement,
  .services__head .label, .services__head .h2, .services__intro { grid-column: 1 / -1; }
  .intro__grid .label { padding-top: 0; }
  .media { height: 75vh; height: 75svh; }

  .about { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; height: 70vh; height: 70svh; }
  .about__body { padding-block: 0; }

  .where { grid-template-columns: 1fr; }
  .where__map, .where__map iframe { min-height: 60vh; }

  .dock {
    position: fixed;
    inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(38, 35, 36, .88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transform: translateY(160%);
    transition: transform .5s var(--ease);
  }
  .dock.is-visible { transform: none; }
  /* Col menu aperto la dock coprirebbe il numero di telefono */
  body.menu-open .dock { transform: translateY(160%); }
  .dock a {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--dark);
    font-size: 0.9375rem;
    text-decoration: none;
  }
  .dock a + a { background: var(--accent); color: #fff; }
  .footer { padding-bottom: 104px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 180px; }
  .hero__actions, .contact__actions { width: 100%; }
  .hero__actions .btn, .contact__actions .btn { flex: 1 1 100%; }
  .footer__col, .footer__grid > :nth-child(2) { grid-column: 1 / -1; }
  .footer__legal { display: grid; gap: 4px; }
  .footer__legal span::after { display: none; }
  .contact__phone { font-size: clamp(2.4rem, 13vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__img { transform: none; }
  .btn__line--in { display: none; }
  .btn:hover .btn__line--out .btn__copy { opacity: 1 !important; transform: none !important; }
}
