@font-face {
  font-family: 'Vetrino';
  src: url('Vetrino.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gotham';
  src: url('Gotham.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --color-bg: #ffffff;
  --color-text: #121212;
  --color-muted: #6d6d6d;
  --color-subtle: #a8a8a8;
  --color-surface: #d9d9d9;
  --color-accent: #003f4c;
  --color-border: rgba(0, 63, 76, 0.16);

  --font-primary: 'Gotham', sans-serif;
  --font-secondary: 'Vetrino', Georgia, serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: clamp(1.125rem, 1.45vw, 1.45rem);
  --text-xl: clamp(1.35rem, 2vw, 1.8rem);

  --display-sm: clamp(2rem, 4vw, 4rem);
  --display-md: clamp(2.8rem, 6vw, 6rem);
  --display-lg: clamp(5rem, 15vw, 13rem);
  --display-hero: clamp(0px, 27vw, 348px);

  --leading-body: 1.65;
  --leading-heading: 1.4;
  --leading-tight: 0.9;
  --leading-display: 0.8;
  --leading-solid: 1;

  --space-xs: 0.75rem;
  --space-sm: 1.5rem;
  --space-md: 2.5rem;
  --space-lg: 5rem;

  --container-max: 1180px;
  --container-wide: 1280px;
  --header-height: 50px;
  --hero-text-max: 62.5rem;
  --about-title-max: 62rem;
  --about-text-max: 54rem;
  --card-title-max: 24rem;
  --card-text-max: 30rem;
  --card-carousel-width: clamp(16.5rem, 26vw, 24rem);
  --card-carousel-height: clamp(21rem, 32vw, 29rem);
  --certificate-card-max: 22rem;
  --menu-description-max: 34rem;
  --section-min-height: clamp(34rem, 72vh, 48rem);
  --section-padding-y: var(--space-lg);
  --section-padding-x: var(--space-md);
  --section-padding: var(--section-padding-y) var(--section-padding-x);
  --section-padding-mobile: var(--space-md) var(--space-sm);
  --section-gap: clamp(var(--space-md), 5vw, var(--space-lg));
  --text-max: 45rem;
  --map-height: clamp(18rem, 32vw, 24rem);
  --plate-size: clamp(26rem, 46vw, 44rem);
  --plate-size-mobile: 22rem;
  --media-radius: calc(var(--card-radius) * 0.35);
  --button-height: 2.6rem;
  --button-padding: 0.55rem 1.15rem 0.42rem;
  --button-radius: 999px;
  --card-padding: var(--space-sm);
  --card-radius: 16px;
  --box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-primary);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}
/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  max-width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  color: #ffffff;
  mix-blend-mode: difference;
  z-index: 20;
  overflow: clip;
}

.mobile-nav-arrow {
  position: absolute;
  top: calc(var(--header-height) / 2);
  z-index: 22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.88);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.site-header.has-nav-overflow .mobile-nav-arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.mobile-nav-arrow--prev {
  left: var(--space-md);
}

.mobile-nav-arrow--next {
  right: var(--space-md);
}

.main-nav {
  width: min(100%, var(--container-max));
  max-width: calc(100% - var(--space-md) * 2);
  min-width: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  overflow: hidden;
}

.site-header.has-nav-overflow .main-nav {
  max-width: min(calc(100% - 8rem), var(--container-max));
}

.nav-list {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0 max(var(--space-xs), 1.25vw);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  margin: 0;
  flex: 0 0 auto;
}

.nav-link {
  font-size: var(--text-md);
  font-weight: 700;
  color: currentColor;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.4px currentColor;
  text-stroke: 0.4px currentColor;
}

.page-main {
  padding-top: calc(var(--space-xs) + 56px);
}

/* HERO */
.hero {
  display: grid;
  align-items: center;
  justify-content: center;
  grid-template-columns: minmax(0, min(100%, var(--container-wide)));
  position: relative;

  min-height: 100vh;
  padding: var(--header-height) var(--space-md) 0;

  overflow: hidden;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: var(--hero-bg, url('../media/hero.webp')) center top / cover no-repeat;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;

  position: relative;
  margin: 0 auto;

  width: 100%;
  max-width: var(--container-wide);
  min-width: 0;
  justify-self: center;
  height: calc(100vh - var(--header-height));

  color: #ffffff;
}

.hero-copy {
  display: grid;
  justify-items: start;
  position: relative;
  width: 100%;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--display-hero);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: .6;
}

.hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero p {
  position: relative;
  z-index: 3;
  font-family: var(--font-secondary);
  align-self: flex-start;
  margin-top: var(--space-sm);
  font-size: var(--display-sm);
  max-width: var(--hero-text-max);
  line-height: var(--leading-solid);
  text-align: left;
}

.hero-footer {
  position: absolute;
  left: 50%;
  bottom: var(--header-height);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: var(--text-md);
  width: max-content;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  :root {
    --header-height: 54px;
    --mobile-menu-actions-space: calc(var(--button-height) + var(--space-xs) * 2);
  }

  .site-header {
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 var(--space-xs);
    background: transparent;
    color: #ffffff;
    mix-blend-mode: difference;
    pointer-events: auto;
    transition: background 0.22s ease, min-height 0.28s ease, padding 0.28s ease;
  }

  .site-header.is-menu-active {
    min-height: calc(var(--header-height) + var(--mobile-menu-actions-space));
    padding-bottom: var(--mobile-menu-actions-space);
    background: #121212;
    color: #ffffff;
    mix-blend-mode: normal;
  }

  .mobile-nav-arrow {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    font-size: 1.35rem;
    line-height: var(--leading-solid);
  }

  .mobile-nav-arrow--prev {
    left: var(--space-xs);
  }

  .mobile-nav-arrow--next {
    right: var(--space-xs);
  }

  .main-nav {
    position: static;
    z-index: 21;
    width: calc(100% - 5rem);
    max-width: calc(100% - 5rem);
    padding: 0;
    overflow: hidden;
    background: transparent;
    color: currentColor;
  }

  .site-header.has-nav-overflow .main-nav {
    max-width: calc(100% - 5rem);
  }

  .nav-list {
    gap: var(--space-sm);
    scroll-snap-type: x proximity;
    justify-content: flex-start;
    padding-inline: 0;
  }

  .nav-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .nav-link {
    font-size: var(--text-sm);
    white-space: nowrap;
  }

  .hero {
    padding-inline: var(--space-sm);
  }

  .hero-content {
    width: 100%;
    max-width: var(--container-wide);
    min-width: 0;
  }

  .hero h1 {
    max-width: 100%;
    line-height: 0.68;
  }

  .hero p {
    max-width: min(100%, 28rem);
    font-size: clamp(1.6rem, 10vw, 3.2rem);
  }

}

.hero-arrow {
  display: inline-block;
  line-height: var(--leading-solid);
}

.section {
  padding: var(--section-padding);
}

.container {
  width: min(100%, var(--container-max));
  margin: 0 auto;
}

h1 {
  font-size: var(--display-sm);
  line-height: var(--leading-solid);
  font-weight: 400;
}

h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-solid);
  font-weight: 400;
}

p {
  margin: 0;
}

.site-footer {
  padding: var(--space-sm) var(--section-padding-x);
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem 1.5rem;
  width: min(100%, var(--container-wide));
  margin: 0 auto;
  font-size: var(--text-xs);
  line-height: var(--leading-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__legal {
  justify-self: start;
}

.site-footer__inner > .site-footer__link:not(.site-footer__link--dev) {
  justify-self: end;
  text-align: right;
}

.site-footer__link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.site-footer__link--dev {
  justify-self: center;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

@media (max-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__legal,
  .site-footer__inner > .site-footer__link:not(.site-footer__link--dev) {
    justify-self: center;
    text-align: center;
  }
}

.cookie-notice {
  position: fixed;
  left: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 1.5rem), 46rem);
  margin: 0 auto;
  padding: 0.8rem 0.9rem 0.8rem 1rem;
  border: 1px solid rgba(0, 63, 76, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice--editor {
  position: static;
  width: min(100%, var(--container-wide));
  margin: var(--space-sm) auto;
}

.cookie-notice__text {
  font-size: var(--text-xs);
  line-height: 1.25;
  color: rgba(18, 18, 18, 0.72);
}

.cookie-notice__text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

.cookie-notice__button {
  flex: 0 0 auto;
  min-height: 2.2rem;
  padding: 0.45rem 0.9rem 0.38rem;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: var(--text-xs);
  line-height: var(--leading-solid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
