:root {
  color-scheme: light;
  --blue: #005a9c;
  --gold: #d4a01d;
  --night: #111827;
  --footer: #1f2937;
  --paper: #ffffff;
  --soft: #f8f9fa;
  --ink: #374151;
  --muted: #9ca3af;
  --content-width: 1152px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 96px;
  align-items: center;
  gap: 24px;
  padding: 20px max(24px, calc((100vw - var(--content-width)) / 2));
  color: var(--paper);
}

.site-header.is-sticky {
  position: fixed;
  min-height: 80px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgb(17 24 39 / 90%);
  box-shadow: 0 4px 15px rgb(0 0 0 / 20%);
  backdrop-filter: blur(10px);
}

.site-brand {
  display: block;
  flex: 0 0 auto;
}

.site-brand img {
  display: block;
  width: auto;
  max-height: 50px;
}

.site-header.is-sticky .site-brand img {
  max-height: 40px;
}

.primary-nav,
.language-nav {
  display: flex;
  align-items: center;
}

.primary-nav {
  gap: 32px;
  margin-left: auto;
}

.primary-nav a {
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.primary-nav a:hover {
  color: var(--gold);
}

.primary-nav a:last-child {
  border-radius: 8px;
  padding: 10px 20px;
  background: var(--blue);
  box-shadow: 0 4px 20px rgb(0 90 156 / 25%);
}

.primary-nav a:last-child:hover {
  color: var(--paper);
  background: #064f84;
}

.language-nav {
  gap: 8px;
}

.language-nav a {
  display: flex;
  align-items: center;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 180ms ease, filter 180ms ease;
}

.language-nav a:hover,
.language-nav a[aria-current="page"] {
  opacity: 1;
  filter: grayscale(0);
}

.language-nav svg {
  display: block;
  width: 24px;
  height: 16px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 110px 24px 74px;
  background: var(--night);
  color: var(--paper);
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(17 24 39 / 92%), var(--night) 70%);
  content: "";
}

.hero > h1,
.hero > .hero-lead,
.hero > .hero-actions,
.hero > .scroll-cue {
  position: relative;
  z-index: 1;
}

.hero > h1 {
  max-width: 900px;
  margin: 0 0 24px;
  color: var(--paper);
  font-size: 64px;
}

.accent {
  color: var(--gold);
}

.hero-lead {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #e5e7eb;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
}

.button {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 14px 34px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  box-shadow: 0 4px 20px rgb(0 90 156 / 25%);
  color: var(--paper);
}

.button-primary:hover {
  background: #064f84;
}

.button-secondary {
  border-color: var(--paper);
  color: var(--paper);
}

.button-secondary:hover {
  background: var(--paper);
  color: var(--night);
}

.scroll-cue {
  position: absolute !important;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.scroll-cue a {
  display: block;
  color: var(--paper);
  font-size: 0;
  line-height: 1;
  text-decoration: none;
}

.scroll-cue a::after {
  content: "↓";
  font-size: 30px;
}

.features,
.benefits,
.not-for,
.testimonials,
.contact-form,
.pre-footer-cta {
  padding: 120px max(24px, calc((100vw - var(--content-width)) / 2));
}

.features,
.benefits,
.not-for,
.contact-form {
  background: var(--paper);
}

.features {
  text-align: center;
}

.features h2,
.benefits h2,
.not-for h2,
.testimonials h2,
.contact-form h2 {
  margin: 0 0 16px;
  font-size: 42px;
}

.features > p {
  max-width: 700px;
  margin: 0 auto 80px;
  font-size: 18px;
}

.features > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.features li h3,
.benefits li h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 24px;
}

.features li p,
.benefits li p {
  margin: 0;
}

#per-chi,
#metodo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px 80px;
  padding: 120px max(24px, calc((100vw - var(--content-width)) / 2));
  background: var(--night);
  color: #e5e7eb;
}

#per-chi h2,
#metodo h2 {
  align-self: end;
  margin: 0;
  color: var(--paper);
  font-size: 24px;
}

#per-chi img,
#metodo img {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 100%;
  aspect-ratio: 1.4;
  border-radius: 12px;
  object-fit: cover;
}

#per-chi h2,
#per-chi ul,
#metodo h2,
#metodo ul,
#metodo blockquote {
  grid-column: 2;
}

#per-chi ul,
#metodo ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#per-chi li,
#metodo li {
  position: relative;
  margin: 0 0 20px;
  padding-left: 40px;
  color: #e5e7eb;
  font-size: 18px;
}

#per-chi li::before,
#metodo li::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 24px;
  height: 24px;
  background: var(--gold);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#metodo blockquote {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding: 0 0 0 20px;
  color: #e5e7eb;
  font-size: 20px;
  font-style: italic;
}

.benefits {
  text-align: center;
}

.benefits > p {
  max-width: 700px;
  margin: 0 auto 80px;
  font-size: 18px;
}

.benefits > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.benefits li {
  border-radius: 8px;
  padding: 32px;
  background: var(--paper);
}

.benefits li h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefits li svg {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--blue);
}

.not-for {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 60px;
}

.not-for h2 {
  grid-column: 1;
  margin: 0;
  text-align: left;
}

.not-for > ul {
  grid-column: 1;
  grid-row: 2;
  
  #per-chi,
  #metodo {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #per-chi img,
  #metodo img {
    grid-column: 1;
    grid-row: 1;
  }

  #per-chi h2,
  #metodo h2 {
    grid-column: 1;
    grid-row: 2;
  }

  #per-chi ul,
  #metodo ul {
    grid-column: 1;
    grid-row: 3;
  }

  #metodo blockquote {
    grid-column: 1;
    grid-row: 4;
  }
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-for li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 40px;
  font-size: 18px;
}

.not-for li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 24px;
  height: 24px;
  background: #ef4444;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.not-for > p {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  border-radius: 8px;
  padding: 40px;
  background: var(--soft);
  color: #1f2937;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  background: var(--night);
  color: #e5e7eb;
}

.testimonials h2 {
  grid-column: 1 / -1;
  color: var(--paper);
  text-align: center;
}

.testimonials blockquote {
  margin: 0;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  padding: 32px;
  background: rgb(255 255 255 / 5%);
}

.testimonials blockquote p {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  color: #e5e7eb;
  font-size: 17px;
  font-style: italic;
}

.testimonials blockquote footer {
  margin-top: 24px;
  color: var(--paper);
  font-weight: 600;
}

.contact-form h2,
.contact-form > p {
  text-align: center;
}

.contact-form > p {
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 18px;
}

.form-panel {
  overflow: hidden;
  border: thin solid #e5e7eb;
  border-radius: 1.5em;
  padding: clamp(1em, 3vw, 3em);
  background: #f3f4f6;
  box-shadow: 0 1.25em 3em rgb(17 24 39 / 10%);
}

.contact-form iframe {
  display: block;
  width: 100%;
  border: 0;
}

.pre-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--blue);
}

.pre-footer-cta h2 {
  max-width: 60%;
  margin: 0;
  color: var(--paper);
  font-size: 32px;
}

.pre-footer-cta a {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 14px 34px;
  background: var(--paper);
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 24px;
  padding: 60px max(24px, calc((100vw - var(--content-width)) / 2)) 0;
  background: var(--footer);
  color: var(--muted);
}

.site-footer > img {
  grid-column: 1 / -1;
  display: block;
  width: auto;
  max-height: 50px;
  margin-bottom: 40px;
  filter: brightness(0) invert(1);
}

.site-footer > p {
  margin: 0;
  border-top: 1px solid #374151;
  padding: 20px 0;
  font-size: 14px;
}

.site-footer > p a {
  margin: 0 8px;
  color: var(--paper);
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #374151;
  padding: 20px 0;
}

.social-links a {
  display: block;
  color: var(--muted);
  line-height: 0;
  transition: color 180ms ease;
}

.social-links a:hover {
  color: var(--paper);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  #per-chi,
  #metodo {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #per-chi img,
  #metodo img {
    grid-column: 1;
    grid-row: 1;
  }

  #per-chi h2,
  #metodo h2 {
    grid-column: 1;
    grid-row: 2;
  }

  #per-chi ul,
  #metodo ul {
    grid-column: 1;
    grid-row: 3;
  }

  #metodo blockquote {
    grid-column: 1;
    grid-row: 4;
  }

  .not-for {
    grid-template-columns: 1fr;
  }

  .not-for h2,
  .not-for > ul,
  .not-for > p {
    grid-column: 1;
  }

  .not-for > ul {
    grid-row: 2;
  }

  .not-for > p {
    grid-row: 3;
  }
}

@media (max-width: 768px) {
  .site-header {
    min-height: 80px;
    padding: 16px 24px;
  }

  .primary-nav,
  .language-nav {
    display: none;
  }

  .hero > h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-actions a {
    min-width: 220px;
  }

  .features,
  .benefits,
  .not-for,
  .testimonials,
  .contact-form,
  .pre-footer-cta {
    padding: 80px 24px;
  }

  .features h2,
  .benefits h2,
  .not-for h2,
  .testimonials h2,
  .contact-form h2 {
    font-size: 36px;
  }

  .features > ul,
  .benefits > ul,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .features > p,
  .benefits > p {
    margin-bottom: 48px;
  }

  #per-chi,
  #metodo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 80px 24px;
  }

  #per-chi img,
  #metodo img {
    order: 0;
  }

  #per-chi h2,
  #metodo h2 {
    order: 1;
  }

  #per-chi ul,
  #metodo ul {
    order: 2;
  }

  #metodo blockquote {
    order: 3;
  }

  .testimonials h2 {
    grid-column: 1;
  }

  .pre-footer-cta {
    flex-direction: column;
    text-align: center;
  }

  .pre-footer-cta h2 {
    max-width: 100%;
    font-size: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 48px 24px 0;
    text-align: center;
  }

  .site-footer > img {
    margin-bottom: 24px;
  }

  .site-footer > p,
  .social-links {
    grid-column: 1;
  }

  .site-footer > p {
    padding: 20px 0 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}