/* =====================================================================
   EasyFlipbook — landing site
   Palette e token derivati da src/FlipBook.Branding/Web/brand.css
   ===================================================================== */

:root {
  --ink-950: #070E19;
  --ink-900: #0B1524;
  --ink-850: #0F1D31;
  --ink-800: #14263F;
  --ink-700: #1F3A5F;
  --ink-600: #2E5183;

  --gold-600: #B8863A;
  --gold-500: #D4A24C;
  --gold-400: #E0B76F;
  --gold-300: #EBD1A2;

  --parchment: #F5F2EC;
  --parchment-dim: #EDE8DE;
  --paper: #FFFFFF;

  --on-surface: #1A1A1A;
  --muted: #6C675F;
  --muted-dark: #97A6BC;
  --border: #E0DCD3;
  --border-dark: rgba(212, 162, 76, .22);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;

  --shadow-s: 0 1px 2px rgba(11, 21, 36, .06), 0 4px 14px rgba(11, 21, 36, .06);
  --shadow-m: 0 2px 6px rgba(11, 21, 36, .08), 0 18px 44px rgba(11, 21, 36, .12);
  --shadow-l: 0 30px 80px rgba(7, 14, 25, .45);
}

/* ------------------------------- reset ------------------------------ */

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, .55vw + 14.4px, 18px);
  line-height: 1.65;
  color: var(--on-surface);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
figure, dl, dd { margin: 0; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--gold-500); color: var(--ink-900); }

/* ------------------------------ layout ------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.section--dark {
  background: var(--ink-900);
  color: #E7EDF6;
}
.section--paper { background: var(--paper); }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold-400); }
.section-head--center .eyebrow::before { display: none; }

.section-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}
.section-lede {
  margin-top: 20px;
  font-size: clamp(1.02rem, .5vw + .9rem, 1.18rem);
  color: var(--muted);
}
.section--dark .section-lede { color: var(--muted-dark); }

/* ------------------------------ buttons ----------------------------- */

.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--ink-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--gold-400); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #F1F5FB;
  border-color: rgba(241, 245, 251, .3);
}
.btn--ghost:hover { background: rgba(241, 245, 251, .1); border-color: rgba(241, 245, 251, .55); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-700);
  border-color: rgba(31, 58, 95, .28);
}
.btn--outline:hover { background: rgba(31, 58, 95, .06); border-color: rgba(31, 58, 95, .5); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------ header ------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--border-dark);
  opacity: 0;
  transition: opacity .3s ease;
}
.site-header.is-stuck {
  background: rgba(11, 21, 36, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-stuck::after { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: #F4F7FC;
  margin-right: auto;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand-mark em { font-style: normal; color: var(--gold-500); }
.brand-sub {
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244, 247, 252, .58);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(238, 243, 250, .82);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.header-side { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(238, 243, 250, .26);
  border-radius: 999px;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.lang a {
  padding: 7px 12px;
  color: rgba(238, 243, 250, .74);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.lang a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lang a[aria-current="true"] { background: var(--gold-500); color: var(--ink-950); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(238, 243, 250, .26);
  border-radius: 12px;
  background: transparent;
  color: #EEF3FA;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin-inline: auto;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: relative; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 4.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 640px) {
  .brand-sub { display: none; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px var(--gutter) 28px;
    background: rgba(11, 21, 36, .97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 4px; font-size: 1.02rem; border-radius: 8px; }
}

/* ------------------------------- hero ------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 900px);
  padding-top: 128px;
  padding-bottom: clamp(44px, 5vw, 68px);
  background: var(--ink-950);
  color: #EEF3FA;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 44%;
  filter: saturate(108%) contrast(104%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 100%, rgba(7, 14, 25, .94) 0%, rgba(7, 14, 25, .68) 42%, rgba(7, 14, 25, .12) 78%),
    linear-gradient(to bottom, rgba(7, 14, 25, .82) 0%, rgba(7, 14, 25, .28) 34%, rgba(7, 14, 25, .55) 76%, rgba(7, 14, 25, .92) 100%);
}

.hero-inner { position: relative; max-width: 50rem; }

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-400);
}
.hero-lede {
  margin-top: 22px;
  max-width: 42rem;
  font-size: clamp(1.02rem, .6vw + .9rem, 1.22rem);
  color: rgba(233, 240, 249, .84);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 162, 76, .26);
  list-style: none;
  padding-inline: 0;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(238, 243, 250, .18);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(233, 240, 249, .78);
  background: rgba(11, 21, 36, .35);
}
.hero-badges li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ------------------------------ figures ----------------------------- */

.stats {
  border-block: 1px solid var(--border);
  background: var(--paper);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px) clamp(16px, 2vw, 28px);
  text-align: center;
}
.stat dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  color: var(--ink-700);
  line-height: 1;
}
.stat dd {
  margin: 12px 0 0;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--muted);
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------- video cards --------------------------- */

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
}
@media (max-width: 980px) { .showcase { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }

.showcase-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(212, 162, 76, .18);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.showcase-card:hover { border-color: rgba(212, 162, 76, .45); transform: translateY(-3px); }

.showcase-card .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-950);
}
.showcase-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-card .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -60px 60px -40px rgba(7, 14, 25, .8);
  pointer-events: none;
}
.showcase-body { padding: 24px 24px 28px; }
.showcase-body h3 {
  font-size: 1.45rem;
  color: #F2F6FC;
}
.showcase-body p {
  margin-top: 12px;
  font-size: .95rem;
  color: var(--muted-dark);
}

/* ------------------------------- steps ------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding-top: 26px;
  border-top: 2px solid var(--ink-700);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-600);
}
.step h3 { font-size: 1.65rem; }
.step p { margin-top: 14px; color: var(--muted); font-size: .97rem; }

/* ------------------------------- apps ------------------------------- */

.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.app-row + .app-row { margin-top: clamp(56px, 7vw, 104px); }
.app-row:nth-of-type(even) .app-figure { order: 1; }
@media (max-width: 900px) {
  .app-row { grid-template-columns: 1fr; gap: 28px; }
  .app-row:nth-of-type(even) .app-figure { order: 0; }
}

.app-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink-950);
  box-shadow: var(--shadow-m);
}
.app-figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.app-figure figcaption {
  padding: 12px 16px;
  font-size: .76rem;
  letter-spacing: .05em;
  color: rgba(233, 240, 249, .55);
  background: var(--ink-900);
}

.app-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--parchment);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--ink-700);
  margin-bottom: 18px;
}
.app-body h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.app-body > p { margin-top: 16px; color: var(--muted); }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .46em;
  width: 15px;
  height: 8px;
  border-left: 1.8px solid var(--gold-600);
  border-bottom: 1.8px solid var(--gold-600);
  transform: rotate(-45deg);
}

/* ----------------------------- features ----------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.feature {
  padding: clamp(26px, 2.6vw, 34px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: rgba(212, 162, 76, .45);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--ink-700), var(--ink-850));
  color: var(--gold-400);
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.35rem; }
.feature p { margin-top: 10px; font-size: .93rem; color: var(--muted); }

/* ------------------------------ gallery ----------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery button {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--ink-950);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1), opacity .3s ease;
  opacity: .88;
}
.gallery button:hover img { transform: scale(1.06); opacity: 1; }
.gallery button:nth-child(1),
.gallery button:nth-child(4),
.gallery button:nth-child(5),
.gallery button:nth-child(8) { grid-column: span 2; aspect-ratio: 8 / 3; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery button:nth-child(1),
  .gallery button:nth-child(4),
  .gallery button:nth-child(5),
  .gallery button:nth-child(8) { grid-column: span 2; aspect-ratio: 8 / 3; }
}

.lightbox {
  margin: 0;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(7, 14, 25, .93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-l);
}
.lightbox figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: .85rem;
  color: rgba(233, 240, 249, .68);
}
.lightbox-close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 250, .28);
  border-radius: 50%;
  background: transparent;
  color: #EEF3FA;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(238, 243, 250, .12); }

/* ------------------------------ contexts ---------------------------- */

.contexts {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .contexts { grid-template-columns: 1fr; } }

.context-list { list-style: none; margin: 0; padding: 0; }
.context-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-dark);
}
.context-list li:first-child { border-top: 1px solid var(--border-dark); }
.context-list b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #F2F6FC;
  flex: 0 0 clamp(9rem, 17vw, 13rem);
}
.context-list span { color: var(--muted-dark); font-size: .94rem; }
@media (max-width: 560px) {
  .context-list li { flex-direction: column; gap: 6px; }
  .context-list b { flex: none; }
}

/* ------------------------------- specs ------------------------------ */

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: .94rem;
}
.spec-row dt { color: var(--muted); letter-spacing: .02em; }
.spec-row dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

.note {
  margin-top: 34px;
  padding: 22px 26px;
  border-left: 3px solid var(--gold-500);
  background: var(--parchment-dim);
  font-size: .92rem;
  color: var(--muted);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.note strong { color: var(--on-surface); }

/* -------------------------------- faq ------------------------------- */

.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-700); }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: auto;
  margin-top: .42em;
  border-right: 1.8px solid var(--gold-600);
  border-bottom: 1.8px solid var(--gold-600);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .62em; }
.faq details p {
  padding-bottom: 26px;
  max-width: 68ch;
  color: var(--muted);
  font-size: .97rem;
}

/* -------------------------------- cta ------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: #EEF3FA;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 78% 8%, rgba(212, 162, 76, .2) 0%, transparent 62%),
    radial-gradient(60% 100% at 6% 96%, rgba(46, 81, 131, .42) 0%, transparent 64%);
}
.cta-inner { max-width: 47rem; text-align: center; margin-inline: auto; }
.cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.cta p { margin-top: 20px; color: rgba(233, 240, 249, .8); }

/* ---------------------------- contact form -------------------------- */

.contact-form {
  margin-top: 40px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }

.field label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(233, 240, 249, .62);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(238, 243, 250, .2);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .05);
  color: #EEF3FA;
  font: inherit;
  font-size: .96rem;
  transition: border-color .18s ease, background-color .18s ease;
}

.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(233, 240, 249, .38); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(238, 243, 250, .34); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, .08);
}

/* The native menu is painted by the OS, so its options need a readable
   background of their own — on dark UAs they would otherwise be white on white. */
.field select option { background: var(--ink-850); color: #EEF3FA; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 24px;
  font-size: .88rem;
  color: rgba(233, 240, 249, .72);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--gold-500);
  cursor: pointer;
}

.contact-form .btn { width: 100%; }

.form-note {
  margin-top: 14px;
  min-height: 1.3em;
  font-size: .88rem;
  text-align: center;
  color: rgba(233, 240, 249, .7);
}
.form-note.ok { color: #6EE7B7; }
.form-note.err { color: #FCA5A5; }

.form-alt {
  margin-top: 18px;
  font-size: .9rem;
  color: rgba(233, 240, 249, .58);
}
.form-alt a { color: var(--gold-400); text-decoration: none; }
.form-alt a:hover { text-decoration: underline; }

/* ------------------------------- footer ----------------------------- */

.site-footer {
  background: var(--ink-950);
  color: rgba(233, 240, 249, .62);
  padding-block: clamp(44px, 5vw, 68px) 34px;
  font-size: .87rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(238, 243, 250, .1);
}
.footer-brand .brand-mark { font-size: 1.9rem; color: #F4F7FC; }
.footer-brand p { margin-top: 12px; max-width: 30rem; }
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(233, 240, 249, .42);
  margin-bottom: 4px;
}
.footer-col a {
  text-decoration: none;
  transition: color .18s ease;
  cursor: pointer;
}
.footer-col a:hover { color: var(--gold-400); }
.site-footer .footer-bottom a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(233, 240, 249, .28); }
.site-footer .footer-bottom a:hover { color: var(--gold-400); border-bottom-color: var(--gold-400); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: .8rem;
  color: rgba(233, 240, 249, .42);
}

/* --------------------------- legal pages ---------------------------- */

/* Queste pagine non hanno l'hero scuro sotto l'header: la barra deve quindi
   essere opaca fin da subito, altrimenti il testo bianco finisce su pergamena. */
body.page-legal .site-header {
  background: rgba(11, 21, 36, .96);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
body.page-legal .site-header::after { opacity: 1; }

.legal { padding-top: clamp(120px, 14vw, 168px); }

.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.prose h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.prose h3 { font-size: 1.2rem; margin-top: 28px; }
.prose p, .prose ul { margin-top: 14px; color: var(--muted); font-size: .97rem; }
.prose ul { padding-left: 20px; }
.prose li { margin-top: 9px; }
.prose li strong, .prose p strong { color: var(--on-surface); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--parchment-dim);
  color: var(--ink-700);
}
.prose a { color: var(--ink-700); }
.prose .lead { font-size: 1.1rem; color: var(--on-surface); }
.prose .updated {
  margin-top: 10px;
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--muted);
}

/* ----------------------------- cookies ------------------------------ */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 150;
  width: min(920px, calc(100% - 24px));
  margin-bottom: 12px;
  padding: 22px 26px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-m);
  background: rgba(11, 21, 36, .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-l);
  color: #EEF3FA;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  /* Fuori schermo finché non serve, così non copre nulla al primo paint. */
  transform: translate(-50%, calc(100% + 24px));
  transition: transform .38s cubic-bezier(.2, .7, .3, 1);
}
.cookie-banner.is-open { transform: translate(-50%, 0); }

.cookie-banner__body { flex: 1 1 22rem; min-width: 0; }
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.cookie-banner__text { font-size: .9rem; color: var(--muted-dark); }
.cookie-banner__text a { color: var(--gold-400); }

.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn { min-height: 44px; padding: 10px 20px; font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* ------------------------------ reveal ------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--gold-500);
  color: var(--ink-950);
  font-weight: 600;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

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