:root {
  --blue: #245080;
  --blue-deep: #1a3d62;
  --blue-ink: #142c46;
  --green: #609060;
  --green-deep: #3f7044;
  --gray: #68686c;
  --gray-soft: #8d9096;
  --ink: #243040;
  --muted: #5c6570;
  --bg: #f5f7f8;
  --paper: #ffffff;
  --line: #e2e6ea;
  --shadow: 0 16px 40px rgba(20, 44, 70, 0.08);
  --header-h: 84px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--blue-ink);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.section-eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 44, 70, 0.06);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 52px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue);
}

.brand-tagline {
  margin-top: 0.22rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.site-nav ul {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 560;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: rgba(36, 80, 128, 0.08);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-ink);
  position: relative;
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn-solid {
  background: var(--blue);
  color: #fff;
}

.btn-solid:hover { background: var(--blue-deep); color: #fff; }

.btn-primary {
  background: transparent;
  color: var(--blue);
  border-color: rgba(36, 80, 128, 0.35);
}

.btn-primary:hover { background: rgba(36, 80, 128, 0.06); color: var(--blue-deep); }

.btn-ghost {
  background: #fff;
  color: var(--blue-ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--gray-soft); color: var(--blue-ink); }

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  background: var(--blue-ink);
  color: #fff;
  overflow: hidden;
}

.hero-stage,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  will-change: transform, opacity;
}

.hero-slide.is-active,
.hero-slide.is-leaving {
  visibility: visible;
}

.hero-slide.is-active { z-index: 2; opacity: 1; }
.hero-slide.is-leaving { z-index: 1; }

.hero-slide-media {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  will-change: transform;
}

.hero-shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 28, 46, 0.82) 0%, rgba(12, 28, 46, 0.28) 46%, rgba(12, 28, 46, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 28, 46, 0.62) 0%, rgba(12, 28, 46, 0.08) 30%, rgba(12, 28, 46, 0.16) 62%, rgba(12, 28, 46, 0.78) 100%),
    radial-gradient(130% 90% at 50% 42%, rgba(12, 28, 46, 0.05) 0%, rgba(12, 28, 46, 0.42) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8vh 0 7.5rem;
}

.hero-slogans {
  position: relative;
  width: 80%;
  margin-left: 8%;
  min-height: 8.5rem;
}

.hero-slogan {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
}

.hero-kicker,
.hero-line {
  display: block;
  will-change: transform, opacity;
}

.hero-slogan:not(.is-active) .hero-kicker,
.hero-slogan:not(.is-active) .hero-line {
  opacity: 0;
}

.hero-slogan.is-leaving .hero-kicker,
.hero-slogan.is-leaving .hero-line {
  opacity: 1;
}

.hero-kicker {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7ebc9;
}

.hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 620;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.hero-lead {
  width: min(38rem, 72%);
  margin: 1.1rem 0 0 8%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
}

.hero-newsletter {
  margin: 1.35rem 0 0 8%;
  will-change: transform, opacity;
}

.hero-newsletter .newsletter-open {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.hero-newsletter .newsletter-open:hover,
.hero-newsletter .newsletter-open:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 8%;
  bottom: 2rem;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 2.6rem;
  height: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active { background: #fff; }

.band {
  padding: 4.5rem 0;
}

.band-paper { background: var(--paper); }
.band-muted { background: #eef2f4; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fact {
  padding: 1.2rem 1.25rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fact strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue);
}

.fact span { color: var(--muted); font-size: 0.98rem; }

.fact:nth-child(2) strong { color: var(--green-deep); }
.fact:nth-child(3) strong { color: var(--gray); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.3rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 80, 128, 0.28);
  color: inherit;
}

.card-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.card h3 { margin: 0.45rem 0 0.55rem; }
.card p { margin-bottom: 0; color: var(--muted); }
.card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 650;
  color: var(--blue);
}

.card:nth-child(1) { border-top: 4px solid var(--blue); }
.card:nth-child(2) { border-top: 4px solid var(--green); }
.card:nth-child(3) { border-top: 4px solid var(--gray); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-no {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
}

.steps article:nth-child(2) .step-no { color: var(--green-deep); }
.steps article:nth-child(3) .step-no { color: var(--gray); }

.cta-band {
  background:
    linear-gradient(120deg, rgba(20, 44, 70, 0.92), rgba(36, 80, 128, 0.88)),
    url("/assets/slide-vita.jpg") center/cover;
  color: #fff;
}

.cta-band h2,
.cta-band .section-eyebrow { color: #fff; }
.cta-band .section-eyebrow { color: #d7ebc9; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.cta-band .btn-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.cta-band .btn-primary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.page-hero {
  background:
    linear-gradient(100deg, rgba(16, 36, 56, 0.9), rgba(36, 80, 128, 0.72)),
    url("/assets/slide-casa.jpg") center/cover;
  color: #fff;
  padding: 4.2rem 0 3.4rem;
}

.page-hero h1,
.page-hero .section-eyebrow { color: #fff; }
.page-hero .section-eyebrow { color: #d7ebc9; }
.page-hero .lede { color: rgba(255, 255, 255, 0.9); }

.prose {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.prose-main p:last-child { margin-bottom: 0; }

.prose-photo {
  margin: 0.35rem 0 0;
  max-width: 26rem;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.prose-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li + li { margin-top: 0.35rem; }

.info-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.info-card {
  padding: 1.3rem 1.25rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card--wide { grid-row: span 2; }
.info-card--full { grid-column: 1 / -1; }

.complaint-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.complaint-links a { font-weight: 600; }

.info-card h3 { margin: 0.2rem 0 0.7rem; }

.info-card p { margin: 0 0 0.9rem; color: var(--muted); }

.info-card p:last-child { margin-bottom: 0; }

.info-dl {
  margin: 0;
}

.info-dl div + div { margin-top: 0.75rem; }

.info-dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.info-dl dd {
  margin: 0.15rem 0 0;
}

.iban-value {
  font-family: "Consolas", "Segoe UI", monospace;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--blue-ink);
}

.doc-list {
  display: grid;
  gap: 0.8rem;
}

.doc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.4rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc-item h3 { margin: 0.25rem 0 0.35rem; }

.doc-item p { margin: 0; color: var(--muted); }

.doc-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.file-type {
  display: inline-flex;
  width: 2.15rem;
  height: 1.05rem;
  flex: none;
  color: #c62828;
  letter-spacing: 0;
  text-transform: none;
}

.file-type svg { width: 100%; height: 100%; display: block; }

.faq-list { display: grid; gap: 0.7rem; }

.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  translate: 0 -0.12rem;
}

.faq[open] summary::after {
  transform: rotate(225deg);
  translate: 0 0.12rem;
}

.faq summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 12px;
}

.faq-body {
  padding: 0 1.15rem 1.05rem;
  color: var(--muted);
}

.faq-body p:last-child { margin-bottom: 0; }

.service-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.service-block h2 { margin-bottom: 0.4rem; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li + li { margin-top: 0.85rem; }
.contact-list span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.optional {
  font-weight: 500;
  color: var(--gray);
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d5dbe1;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.form textarea { min-height: 140px; resize: vertical; }

.form input:focus,
.form textarea:focus {
  outline: 3px solid rgba(36, 80, 128, 0.22);
  border-color: var(--blue);
}

.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500 !important;
}

.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; }

.form-status {
  display: none;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
}

.form-status.is-visible { display: block; }
.form-status.is-success { background: #e8f4e6; color: #24532a; }
.form-status.is-error { background: #fdecea; color: #8a2a22; }

#turnstile-widget { min-height: 65px; }
#turnstile-error { color: #8a2a22; font-size: 0.92rem; }

.map-wrap { margin-top: 1.5rem; }

.map-embed {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e7eef3;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.map-fallback {
  padding: 2rem 1.3rem;
  max-width: 36rem;
}

.legal h2 { margin-top: 2rem; font-size: 1.7rem; }
.legal h3 { margin-top: 1.3rem; }
.legal ul { padding-left: 1.15rem; }

.prefs-grid {
  display: grid;
  gap: 0.8rem;
}

.pref-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pref-row p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.96rem; }

.switch {
  width: 1.2rem;
  height: 1.2rem;
}

.site-footer {
  background: var(--blue-ink);
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 1.3rem;
}

.site-footer a { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 1.5rem;
}

.site-footer .brand-text { color: #fff; }
.site-footer .brand-tagline { color: rgba(255, 255, 255, 0.72); }
.footer-logo { height: 92px; width: auto; background: #fff; border-radius: 12px; padding: 0.35rem 0.45rem; }

.footer-brand-note { margin: 0.8rem 0 0; color: rgba(255, 255, 255, 0.78); }
.footer-brand-note .company-name { display: block; color: #fff; font-weight: 650; }
.footer-bottom .company-name { font-weight: 650; color: #fff; }

.site-footer h3 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.35rem; }

.site-footer .footer-sub {
  margin: 0.28rem 0 0.1rem;
  padding-left: 0.85rem;
}

.site-footer .footer-sub a { color: rgba(255, 255, 255, 0.78); }

#reclami,
#whistleblowing { scroll-margin-top: calc(var(--header-h) + 0.75rem); }

.socials { display: flex; gap: 0.55rem; margin-top: 1rem; }
.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
}
.socials a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.powered-by:hover { color: #fff; }

.powered-by__mark {
  width: 1.55rem;
  height: 1.08rem;
  flex: none;
  background: #76c8af;
  -webkit-mask: url("/assets/icon-vigitech.svg") center / contain no-repeat;
  mask: url("/assets/icon-vigitech.svg") center / contain no-repeat;
}

.cookie-banner {
  display: none;
  position: fixed;
  z-index: 70;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(20, 44, 70, 0.18);
}

.cookie-banner h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.cookie-banner p { margin: 0; color: var(--muted); max-width: 46rem; }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.cookie-manage { font-weight: 650; white-space: nowrap; }

.error-page { padding: 4.5rem 0 5rem; }
.error-page__code {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.85;
  color: rgba(36, 80, 128, 0.16);
}
.error-page__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

.newsletter-launch { margin: 0.9rem 0 0; }

.site-footer .newsletter-open {
  width: 100%;
  background: #fff;
  color: var(--blue-ink);
  border-color: #fff;
  white-space: normal;
  text-align: center;
}

.site-footer .newsletter-open:hover,
.site-footer .newsletter-open:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.newsletter-dialog {
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.newsletter-dialog::backdrop {
  background: rgba(16, 36, 56, 0.66);
}

.newsletter-dialog .newsletter-form {
  margin: 0;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.newsletter-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.newsletter-dialog__head h2 { margin: 0; }

.newsletter-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.newsletter-close:hover { border-color: var(--blue); color: var(--blue); }

.newsletter-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.newsletter-form .newsletter-done { display: none; }

.newsletter-form.is-done .newsletter-submit,
.newsletter-form.is-done .newsletter-cancel { display: none; }

.newsletter-form.is-done .newsletter-done { display: inline-flex; }

.newsletter-form .check span { font-weight: 500; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .facts,
  .card-grid,
  .steps,
  .prose,
  .split,
  .footer-grid,
  .info-grid,
  .doc-item {
    grid-template-columns: 1fr;
  }

  .info-card--wide { grid-row: auto; }

  .prose-photo {
    max-width: 32rem;
    justify-self: start;
  }

  .section-head { align-items: flex-start; flex-direction: column; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 6px);
    left: 0.8rem;
    right: 0.8rem;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { border-radius: 10px; }

  .hero-slogans { width: 88%; margin-left: 6%; }
  .hero-lead { margin-left: 6%; width: min(36rem, 88%); }
  .hero-newsletter { margin-left: 6%; }
  .hero-dots { left: 6%; }
  .hero-line { white-space: normal; }

  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  a.card:hover { transform: none; }
}
