/* Giorgia Piras, pagina in pausa. Stesso design della bozza GP METHOD: tre colori, due caratteri, mobile-first. */

:root {
  --nero: #191716;
  --pietra: #E0E2DB;
  --bronzo: #8A6E58;
  --pietra-2: rgba(224, 226, 219, 0.75);
  --line: rgba(224, 226, 219, 0.18);
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 20px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--nero); }
body {
  margin: 0; background: var(--nero); color: var(--pietra);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, picture { display: block; max-width: 100%; }
h1, p { margin: 0; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--bronzo); outline-offset: 3px; border-radius: 4px; }

/* ---------- header: transparent, only the metal logo ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
}
.top::before {
  content: ''; position: absolute; inset: 0 0 auto 0; z-index: -1; pointer-events: none;
  height: calc(env(safe-area-inset-top, 0px) + 140px);
  background: linear-gradient(180deg, rgba(25, 23, 22, 0.55) 0%, rgba(25, 23, 22, 0) 100%);
}
.brand { display: inline-block; border-radius: 50%; }
.brand-logo { width: 64px; height: 64px; }

/* ---------- hero: photo from the top edge, the copy under it on phones ---------- */
.hero { display: grid; padding: 0 var(--gutter) 40px; }
.hero-photo { position: relative; order: -1; margin: 0 calc(var(--gutter) * -1) 24px; height: 78vh; height: 78svh; }
.hero-photo picture { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 23, 22, 0) 0%, rgba(25, 23, 22, 0) 70%, var(--nero) 100%); }
.hero-copy { display: grid; gap: 16px; justify-items: start; }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pietra-2); }
.hero-name { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 17vw, 120px); line-height: 0.92; letter-spacing: -0.01em; }
.hero-role { display: block; margin-top: clamp(20px, 4.6vw, 40px); font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.4; }
.hero-rule { display: block; width: 56px; height: 1px; background: var(--bronzo); }
.hero-line { max-width: 34ch; font-size: 18px; line-height: 1.55; color: var(--pietra-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--pietra); color: var(--nero);
  font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0.02em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.i-wa { width: 18px; height: 18px; flex: none; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 4px; font-size: 15px; color: var(--pietra-2); }
.hero-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: var(--bronzo); }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 28px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  border-top: 1px solid var(--line); font-size: 14px; color: var(--pietra-2);
}
.foot-logo { width: 44px; height: 44px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-legal { display: flex; gap: 18px; margin-left: auto; }

/* ---------- WhatsApp fixed button: phones only, compact, bottom-right, always on ---------- */
.fab {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px; border: 1.5px solid var(--bronzo); border-radius: 999px;
  background: var(--nero); color: var(--pietra); font-weight: 500; text-decoration: none;
  box-shadow: 0 6px 20px rgba(25, 23, 22, 0.45);
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out);
}
.fab:active { transform: scale(0.97); }
/* phones: the name on two lines keeps the right side of the first screen free for the button;
   room at the end of the page so the last links scroll clear of it */
@media (max-width: 767px) {
  .hero-name .nm { display: block; }
  .foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); }
}
@media (min-width: 768px) { .fab { display: none; } }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #fff; }
  .hero-links a:hover, .foot a:hover { text-decoration-color: currentColor; }
}

/* ---------- desktop: photo full screen, Giorgia right, copy left ---------- */
@media (min-width: 768px) {
  .hero-photo img { object-position: 75% 25%; }
}
@media (min-width: 900px) {
  :root { --gutter: 56px; }
  .brand-logo { width: 80px; height: 80px; }
  .hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2)); isolation: isolate; }
  .hero-copy { align-self: center; max-width: min(42vw, 600px); padding: 140px 0 64px; }
  .hero-photo { position: absolute; inset: 0; z-index: -1; margin: 0; height: auto; }
  .hero-photo::after { background:
    linear-gradient(90deg, rgba(25, 23, 22, 0.35) 0%, rgba(25, 23, 22, 0) 45%),
    linear-gradient(180deg, rgba(25, 23, 22, 0) 0%, rgba(25, 23, 22, 0) 82%, var(--nero) 100%); }
  .hero-name { font-size: clamp(96px, 10.4vw, 150px); }
  .hero-role { font-size: 16px; }
  .hero-line { font-size: 20px; }
  .foot { padding-left: max(var(--gutter), calc((100% - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--max)) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .fab { transition: none; }
}
