/* Alex Leroy v2 — editorial design system
   Palette: ink + bone + warm cognac accent. */
:root {
  --ink: #0E1014;
  --ink-2: #1A1D22;
  --bone: #ECE6DA;
  --bone-2: #E2DBCD;
  --bone-3: #D6CDBC;
  --paper: #F4EFE5;
  --rule: rgba(14,16,20,0.18);
  --rule-soft: rgba(14,16,20,0.10);
  --rule-on-ink: rgba(236,230,218,0.20);
  --accent: #B26A3C;
  --muted: #6B6357;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-body: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad-x: clamp(20px, 5vw, 88px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Neutralize deep-cms RichText wrapper — pages render full-bleed sections */
main[data-dcms-blocks] .dcms-richtext {
  max-width: none;
  padding: 0;
  margin: 0;
  line-height: inherit;
}
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ——— Type system ——— */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--accent); margin-right: 10px; font-variant-numeric: tabular-nums; }
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
}
.h-section .it { font-style: italic; }
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Structure ——— */
.container { max-width: 1480px; margin: 0 auto; }
.head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(56px, 6vw, 96px);
}
.section--ink { background: var(--ink); color: var(--bone); }
.section--ink .eyebrow { color: rgba(236,230,218,0.55); }

/* ——— Top nav ——— */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px var(--pad-x);
  z-index: 5;
  color: var(--bone);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 140px;
  background: linear-gradient(180deg,
    rgba(14,16,20,0.55) 0%,
    rgba(14,16,20,0.30) 55%,
    rgba(14,16,20,0) 100%);
  pointer-events: none;
  z-index: -1;
}
.nav .wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav .wordmark .it { font-style: italic; font-weight: 300; opacity: 0.8; }
.nav .links {
  display: flex; gap: 36px; justify-content: center;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.nav .links a {
  opacity: 1;
  color: var(--bone);
  text-shadow: 0 1px 2px rgba(14,16,20,0.55);
}
.nav .links a:hover { color: var(--accent); }
.nav .wordmark, .nav .lang { text-shadow: 0 1px 2px rgba(14,16,20,0.55); }
.nav .lang {
  justify-self: end;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  display: flex; gap: 14px;
}
.nav .lang .on { opacity: 1; }
.nav .lang .off { opacity: 0.45; }

/* Inverted nav (over a light bone hero/masthead) */
.nav.nav--inv { color: var(--ink); }
.nav.nav--inv::before { display: none; }
.nav.nav--inv .links a,
.nav.nav--inv .wordmark,
.nav.nav--inv .lang { color: var(--ink); text-shadow: none; }
.nav.nav--inv .links a.is-current {
  color: var(--accent);
  position: relative;
}
.nav.nav--inv .links a.is-current::after {
  content: ""; position: absolute;
  left: -6px; right: -6px; bottom: -8px;
  height: 1px; background: var(--accent);
}
.nav.nav--inv .lang .off { opacity: 0.4; }

/* ——— Footer ——— */
.foot {
  background: var(--bone); color: var(--ink);
  padding: clamp(56px, 6vw, 96px) var(--pad-x) 36px;
}
.foot__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--rule);
}
.foot__brand .wm {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.014em;
}
.foot__brand .wm .it { font-style: italic; }
.foot__brand p {
  font-family: var(--serif-body); font-style: italic;
  font-size: 16px; line-height: 1.55; color: var(--muted); margin: 16px 0 0; max-width: 32ch;
}
.foot h5 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.foot__bot {
  margin-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 980px) {
  .nav .links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__bot { flex-direction: column; gap: 8px; }
}

/* ——— Global Contact CTA Form (unico widget, sopra footer) ——— */
html { scroll-behavior: smooth; }

.cta-form {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(72px, 8vw, 120px) var(--pad-x);
  border-top: 1px solid var(--rule-on-ink);
  scroll-margin-top: 24px;
}
.cta-form__inner {
  max-width: 760px;
  margin: 0 auto;
}
.cta-form__head {
  text-align: center;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.cta-form__kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.cta-form__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 18px;
  color: var(--bone);
  text-wrap: balance;
}
.cta-form__lede {
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  color: rgba(236, 230, 218, 0.82);
  margin: 0 auto;
  max-width: 46ch;
}
.cta-form__grid {
  display: grid;
  gap: 22px;
  margin: 0;
}
.cta-form__fld { display: grid; gap: 10px; }
.cta-form__fld--full { grid-column: 1 / -1; }
.cta-form__fld label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--bone);
}
.cta-form__fld input,
.cta-form__fld textarea {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  background: rgba(236, 230, 218, 0.06);
  border: 1px solid var(--rule-on-ink);
  color: var(--bone);
  padding: 16px 18px;
  border-radius: 4px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
  width: 100%;
}
.cta-form__fld input::placeholder,
.cta-form__fld textarea::placeholder {
  color: rgba(236, 230, 218, 0.38);
  font-family: var(--sans);
}
.cta-form__fld input:focus,
.cta-form__fld textarea:focus {
  border-color: var(--accent);
  background: rgba(236, 230, 218, 0.10);
}
.cta-form__fld textarea {
  resize: vertical;
  min-height: 140px;
}
.cta-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(236, 230, 218, 0.82);
  cursor: pointer;
  margin: 6px 0 4px;
}
.cta-form__privacy input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--rule-on-ink);
  background: rgba(236, 230, 218, 0.06);
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: border-color .2s ease, background .2s ease;
}
.cta-form__privacy input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.cta-form__privacy input[type="checkbox"]:checked::after {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2px solid #FBF6EE;
  border-bottom: 2px solid #FBF6EE;
  transform: rotate(45deg) translate(-1px, -1px);
}
.cta-form__privacy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 36px;
  background: var(--accent);
  color: #FBF6EE;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: background .2s ease, transform .2s ease;
}
.cta-form__btn:hover { background: #9A5A30; transform: translateY(-1px); }
.cta-form__btn .arr { font-size: 18px; line-height: 1; }

@media (max-width: 600px) {
  .cta-form__inner { max-width: 100%; }
  .cta-form__btn { font-size: 14px; padding: 18px 24px; }
}

/* ——— Nav minimal (landing pages) ——— */
.nav.nav--minimal {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad-x);
  z-index: 10;
  color: var(--bone);
}
.nav.nav--minimal::before { display: none; }
.nav.nav--minimal .wordmark a {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; letter-spacing: 0.02em;
  color: var(--bone);
  text-shadow: 0 1px 2px rgba(14,16,20,0.55);
}
.nav.nav--minimal .wordmark .it { font-style: italic; opacity: 0.8; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  justify-self: end;
  padding: 12px 22px;
  background: var(--accent);
  color: #FBF6EE;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
}
.nav__cta:hover { background: #9A5A30; transform: translateY(-1px); }
@media (max-width: 600px) {
  .nav__cta { font-size: 11px; padding: 10px 14px; }
  .nav__cta .arr { display: none; }
}

/* ——— Foot minimal (landing pages) ——— */
.foot.foot--minimal {
  background: var(--bone);
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--rule);
}
.foot__min {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot__min-brand .wm {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
}
.foot__min-brand .wm .it { font-style: italic; opacity: 0.7; }
.foot__min-brand p {
  margin: 4px 0 0;
  font-family: var(--sans); font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.foot__min-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 24px;
  font-family: var(--sans); font-size: 12px;
  color: var(--muted);
}
.foot__min-links a { color: var(--ink); }
.foot__min-links a:hover { color: var(--accent); }

/* ——— Sticky mobile CTA bar ——— */
.iz-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: none;
  align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: var(--ink);
  border-top: 1px solid var(--rule-on-ink);
  color: var(--bone);
  box-shadow: 0 -8px 24px rgba(14,16,20,0.18);
}
.iz-sticky-cta[hidden] { display: none !important; }
.iz-sticky-cta__txt {
  font-family: var(--sans); font-size: 12px; line-height: 1.3;
  color: rgba(236,230,218,0.78);
  min-width: 0;
  flex: 1;
}
.iz-sticky-cta__btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: #FBF6EE;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .iz-sticky-cta:not([hidden]) { display: flex; }
}

/* ——— Force-fill rules for all photo card containers (cross-page) ——— */
.iz-card__photo > img,
.ct-person__photo > img,
.cs-person__photo > img,
.st-feat__media > img {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  max-width: none !important;
}

/* ── Newsletter "Entra nel loop" ───────────────────────── */
.loop-form { padding: 5rem 1.5rem; background: var(--ink, #1a1714); color: var(--bone, #f3ece1); }
.loop-form__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.loop-form__kicker { font-family: 'Archivo', sans-serif; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; opacity: .7; margin: 0 0 .75rem; }
.loop-form__title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .75rem; }
.loop-form__lede { font-family: 'Newsreader', serif; opacity: .85; margin: 0 auto 2rem; max-width: 48ch; }
.loop-form__row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.loop-form__row input { flex: 1 1 280px; padding: .9rem 1.1rem; border: 1px solid rgba(243,236,225,.3); background: transparent; color: inherit; font-size: 1rem; border-radius: 2px; }
.loop-form__btn { padding: .9rem 1.6rem; background: var(--accent, #B26A3C); color: #fff; border: 0; cursor: pointer; font-family: 'Archivo', sans-serif; font-size: 1rem; border-radius: 2px; white-space: nowrap; }
.loop-form__btn:disabled { opacity: .6; cursor: default; }
.loop-form__error { color: #ff9b8a; font-size: .85rem; margin-top: .75rem; }
@media (max-width: 540px){ .loop-form__row input, .loop-form__btn { flex: 1 1 100%; } }

/* ── Generic placeholder ───────────────────────────────── */
.ph{display:flex;align-items:center;justify-content:center;border:1px dashed rgba(0,0,0,.25);color:#999;font-family:'Archivo',sans-serif;font-size:.8rem;letter-spacing:.05em;min-height:160px;}

/* Shared buttons (also defined in home.css, scoped to pages that don't load it) */
.btn{display:inline-flex;align-items:center;gap:.4rem;padding:.85rem 1.5rem;font-family:var(--sans,'Archivo',sans-serif);font-size:.95rem;border-radius:2px;text-decoration:none;cursor:pointer;transition:opacity .2s;}
.btn--primary{background:var(--accent,#B26A3C);color:#fff;border:1px solid var(--accent,#B26A3C);}
.btn--ghost{background:transparent;color:inherit;border:1px solid currentColor;}
.btn:hover{opacity:.85;}

/* ——— RichText block wrapper neutralizer ———
   Bespoke full-bleed sections live inside RichText blocks; il default
   del package (.dcms-richtext = prose 65ch + padding + h2 font) li
   strozzava in colonna stretta e forzava i titoli in sans. */
main .dcms-richtext {
  max-width: none;
  padding: 0;
  margin: 0;
  line-height: inherit;
}
main .dcms-richtext h2 {
  margin-top: 0;
  font-family: var(--serif);
}
main .dcms-richtext img { max-width: none; border-radius: 0; }

/* ——— DeepCMS badge (footer, inline right) ——— */
.foot__bot { align-items: center; }
.foot__cms {
  display: inline-block;
  background: var(--ink);
  border-radius: 5px;
  padding: 6px 10px;
  transition: opacity .2s ease;
}
.foot__cms:hover { opacity: 0.85; }
.foot__cms img { display: block; height: 20px; width: auto; }
