:root {
  --navy: #0d2a4a;
  --navy-deep: #081c33;
  --heading: #0a2744;
  --emerald: #0c6b58;
  --emerald-dark: #095445;
  --emerald-soft: #e6f4f0;
  --bg: #eef1f4;
  --white: #ffffff;
  --text: #243244;
  --muted: #5c6b7c;
  --line: #d5dee6;
  --shadow: 0 12px 32px rgba(13, 42, 74, 0.07);
  --max: 1120px;
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--emerald-dark); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.9rem; }
ul, ol { margin: 0 0 0.9rem; padding-left: 1.15rem; }
li + li { margin-top: 0.35rem; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: var(--navy-deep);
  color: #d5e2ee;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 7px 0;
}
.topbar a { color: #e8f3ef; text-decoration: none; }
.topbar a:hover { color: white; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0 62%, var(--emerald) 62% 100%);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--heading);
  line-height: 1.05;
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.brand span { color: var(--emerald); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--heading);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.bars {
  width: 16px;
  height: 11px;
  display: inline-block;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 100% 2px,
    linear-gradient(var(--navy), var(--navy)) 0 50% / 100% 2px,
    linear-gradient(var(--navy), var(--navy)) 0 100% / 100% 2px;
  background-repeat: no-repeat;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--heading);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover { background: var(--emerald-soft); color: var(--emerald-dark); }
.nav a[aria-current="page"] {
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  font-weight: 650;
}

.block { padding: 64px 0; }
.block + .block { padding-top: 0; }
.block-tight { padding-top: 28px; }
.kicker {
  color: var(--emerald);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.ingressi { font-size: 1.12rem; color: #314256; max-width: 68ch; }
.muted { color: var(--muted); }
.narrow { max-width: 74ch; }

.hero-grid, .split, .grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack { display: grid; gap: 14px; }

.card, .panel, .qa details, .form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.card { padding: 22px 20px 20px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 650;
  text-decoration: none;
}
.card-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 14px;
}

.shot {
  margin: 0;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; max-height: 460px; }
.shot figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: 0.85rem; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.steps b {
  display: block;
  color: var(--emerald);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.band {
  background: var(--navy);
  color: #e6eef6;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.band h2, .band p { color: white; }
.band p { margin: 0; color: #d5e2ee; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.btn-main { background: var(--emerald); color: white; }
.btn-main:hover { background: var(--emerald-dark); color: white; }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: white; }
.btn-line { background: var(--white); color: var(--heading); border-color: var(--line); }
.btn-line:hover { border-color: var(--emerald); color: var(--emerald-dark); }

.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--emerald-dark); }

.qa { display: grid; gap: 10px; }
.qa details { padding: 14px 16px; }
.qa summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.qa details p { margin: 10px 0 0; }

.list-check { list-style: none; padding: 0; }
.list-check li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--emerald);
  border-radius: 12px;
  padding: 12px 14px;
}

.form-card { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 650; color: var(--heading); font-size: 0.92rem; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}
.field-error { color: #8d2d2d; font-size: 0.85rem; min-height: 1.1em; }
.notice {
  background: var(--emerald-soft);
  border: 1px solid #b7ddd3;
  color: var(--navy);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.site-footer {
  background: var(--navy-deep);
  color: #d5e0ea;
  padding: 42px 0 22px;
  margin-top: 20px;
}
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 24px; }
.site-footer h2 { color: white; font-size: 1.05rem; }
.site-footer a { color: #d7efe8; text-decoration: none; }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 22px;
  padding-top: 14px;
  font-size: 0.85rem;
  color: #a9b9c9;
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
}
.cookie.is-on { display: block; }
.cookie-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(8, 28, 51, 0.18);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cookie p { margin: 0; font-size: 0.95rem; }
.cookie .actions .btn-line { color: var(--heading); }

@media (max-width: 980px) {
  .grid-4, .steps, .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 14px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; }
  .band, .cookie-inner { flex-direction: column; align-items: stretch; }
  .form-grid, .grid-4, .steps, .foot-grid { grid-template-columns: 1fr; }
  .block { padding: 42px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
