:root {
  color-scheme: dark;
  --canvas: #101612;
  --panel: #172019;
  --text: #f4f7ed;
  --muted: #b9c6b8;
  --green: #d3fa80;
  --edge: #344235;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
h1, h2, h3 { margin: 0 0 .55em; line-height: 1.05; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 4.75vw, 3.75rem); }
.about h1, .services h1, .contact-page h1 { font-size: clamp(2rem, 2.7vw, 2.15rem); }
p { margin: 0 0 1em; }
.wrap { width: min(76rem, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 9vw, 8rem); }
.skip-link { position: absolute; top: .75rem; left: 1.25rem; z-index: 5; padding: .6rem; background: var(--green); color: var(--canvas); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--edge); }
.header-menus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem clamp(1rem, 3vw, 2.5rem);
  margin-inline-start: auto;
}
.header-menus nav:first-child { justify-content: flex-end; font-size: 1.125rem; }
.language-menu { position: relative; }
.language-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding-inline: .7rem;
  list-style: none;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:is(:hover, :focus-visible),
.language-menu[open] summary { color: var(--green); }
.language-menu-icon {
  display: inline-block;
  width: 1rem;
  height: .75rem;
  border-block: 2px solid;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.header-inner .language-switcher {
  position: absolute;
  z-index: 5;
  inset: 100% 0 auto auto;
  display: grid;
  min-width: max-content;
  gap: 0;
  padding: .35rem;
  border: 1px solid var(--edge);
  border-radius: .6rem;
  background: var(--panel);
  box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / .35);
}
.language-switcher a {
  justify-content: flex-start;
  gap: .7rem;
  padding-inline: .65rem;
}
.language-flag {
  position: relative;
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--edge);
}
.flag-en {
  background:
    linear-gradient(0deg, transparent 40%, #c8102e 40% 60%, transparent 60%),
    linear-gradient(90deg, transparent 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 34%, white 34% 66%, transparent 66%),
    linear-gradient(90deg, transparent 39%, white 39% 61%, transparent 61%),
    linear-gradient(34deg, transparent 43%, white 43% 46%, #c8102e 46% 52%, white 52% 57%, transparent 57%),
    linear-gradient(-34deg, transparent 43%, white 43% 48%, #c8102e 48% 54%, white 54% 57%, transparent 57%),
    #012169;
}
.flag-el {
  background: repeating-linear-gradient(#0d5eaf 0 11.111%, white 11.111% 22.222%);
}
.flag-el::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 8.89px;
  height: 8.89px;
  background:
    linear-gradient(white, white) center / 2px 100% no-repeat,
    linear-gradient(white, white) center / 100% 2px no-repeat,
    #0d5eaf;
}
.flag-fr { background: linear-gradient(90deg, #0055a4 33.33%, white 33.33% 66.67%, #ef4135 66.67%); }
.flag-de { background: linear-gradient(black 33.33%, #dd0000 33.33% 66.67%, #ffce00 66.67%); }
.flag-it { background: linear-gradient(90deg, #009246 33.33%, white 33.33% 66.67%, #ce2b37 66.67%); }
.flag-es { background: linear-gradient(#aa151b 25%, #f1bf00 25% 75%, #aa151b 75%); }
.language-switcher a[aria-current="page"] .language-flag {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--edge);
  border-radius: .75rem;
  background: var(--panel);
}
.brand-symbol { position: relative; width: 44px; height: 37px; overflow: hidden; }
.brand-symbol img {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 64px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}
.brand-wordmark { display: grid; gap: .22rem; white-space: nowrap; }
.brand-tagline { text-align: center; color: var(--green); font-size: .7rem; font-weight: 700; letter-spacing: .055em; line-height: 1.1; }
.brand-name { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.brand:hover .brand-name { color: var(--green); }
@media (max-width: 24rem) {
  .header-inner { column-gap: .6rem; }
  .header-inner nav { font-size: .875rem; gap: .6rem; }
  .brand { gap: .45rem; }
}
nav { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 3vw, 2rem); font-weight: 650; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--green); }

@media (max-width: 42rem) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100% - .5rem);
    gap: 0 .25rem;
  }
  .header-menus { display: contents; }
  .header-inner .brand { gap: .35rem; }
  .header-inner .brand-mark { width: 38px; height: 40px; }
  .header-inner .brand-symbol { width: 34px; height: 32px; }
  .header-inner .brand-symbol img { width: 50px; top: 0; clip-path: inset(0 0 42%); }
  .header-inner .brand-name { font-size: clamp(1.0625rem, 4.7vw, 1.5rem); }
  .header-inner .brand-tagline { font-size: .56rem; }
  .header-menus nav:first-child {
    flex-wrap: nowrap;
    gap: clamp(.2rem, 1.3vw, .75rem);
    font-size: clamp(.65625rem, 3.25vw, 1rem);
    white-space: nowrap;
  }
  .header-menus nav:first-child a { min-height: 36px; }
  .language-menu { grid-column: 1 / -1; justify-self: end; font-size: .85rem; }
}

.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(33rem, 75svh, 53rem); background: var(--panel); }
.hero-images, .hero-images img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-images { z-index: -2; }
.hero-images img { object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero-images img.active { opacity: 1; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, rgb(10 18 12 / .87), rgb(10 18 12 / .24)), linear-gradient(0deg, rgb(10 18 12 / .78), transparent 65%); }
.hero-copy { padding-block: 4rem 6.25rem; }
.hero-copy h1 { max-width: 24ch; text-wrap: balance; margin-bottom: .6em; font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.045em; line-height: 1.1; }
.hero-copy h1 span, .hero-copy p { color: var(--green); }
.hero-copy p { font-size: clamp(.86rem, 2vw, 1rem); font-weight: 700; }
.button { display: inline-flex; align-items: center; gap: .8rem; padding: .75rem 1.2rem; border-radius: 999px; background: var(--green); color: #172011; text-decoration: none; font-weight: 750; }
.button:hover { background: #e7ffac; }
.slideshow-toggle { position: absolute; right: max(1.25rem, calc((100% - 76rem) / 2)); bottom: 1.2rem; background: #141d16; color: var(--text); border: 1px solid #82927f; border-radius: 50%; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.slideshow-toggle:not([hidden]) { display: grid; place-items: center; }
.slideshow-toggle:hover { background: var(--green); color: var(--canvas); }
.slideshow-pause, .slideshow-toggle.is-playing .slideshow-play { display: none; }
.slideshow-toggle.is-playing .slideshow-pause { display: block; }

.about, .contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1rem, 6vw, 5rem); }
.about p, .contact a { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.about p { margin: 0; }
.services { background: var(--panel); border-block: 1px solid var(--edge); padding-block-start: clamp(2.5rem, 5vw, 4.5rem); }
.service-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 2rem; }
.service-grid article { padding: clamp(1.35rem, 3vw, 2rem); background: var(--canvas); border: 1px solid var(--edge); border-radius: 1rem; }
.service-grid h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.service-grid p { color: var(--muted); margin: 0; }
.cta { background: #d3fa80; color: #172011; text-align: center; }
.cta p { font-size: 1.15rem; }
.cta .button { background: #172011; color: var(--text); }
.cta .button:hover { background: #30402a; }
.cta .button:focus-visible { outline-color: #172011; }
.contact { align-items: center; }
.contact a { overflow-wrap: anywhere; text-underline-offset: .25em; }
.contact a:hover { color: var(--green); }
.contact img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 1rem; }
.site-footer { border-top: 1px solid var(--edge); color: var(--muted); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: clamp(1rem, 4vw, 3rem);
  padding-block: 1.4rem;
}
.site-footer nav { gap: clamp(.75rem, 2vw, 1.5rem); font-size: .875rem; }
@media (max-width: 42rem) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-footer nav { grid-column: 1; grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 1 / span 2; }
}
.footer-copyright { font-size: .875rem; }
.back-to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  flex: none;
  background: var(--panel);
  color: var(--green);
  text-decoration: none;
}
.back-to-top:hover { background: var(--green); color: var(--canvas); }

@media (min-width: 64rem) {
  .hero { min-height: clamp(25rem, 51svh, 36rem); }
  .hero-copy { padding-block: 3rem 4rem; }
  .hero-copy h1 { max-width: 27ch; font-size: clamp(2.5rem, 3vw, 3.4rem); }
}

@media (max-width: 42rem) {
  .hero { align-items: start; min-height: clamp(21rem, 52svh, 27rem); }
  .hero-copy { padding-block: clamp(3.5rem, 9svh, 5rem) 4.5rem; }
  .about, .contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-images img { transition: none; }
}

.contact-main { padding-top: clamp(1.25rem, 3vw, 2.75rem); }
.contact-page { align-items: start; }
.contact-page img {
  width: min(100%, 26rem);
  margin-top: 1.25rem;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.12) sepia(.45) hue-rotate(32deg);
  mask-image: radial-gradient(ellipse at center, #000 52%, transparent 76%);
}
.contact-form { display: grid; gap: .65rem; padding: clamp(1rem, 4vw, 2rem); background: var(--panel); border: 1px solid var(--edge); border-radius: 1rem; }
.contact-form label { font-weight: 650; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .75rem;
  background: var(--canvas);
  color: var(--text);
  border: 1px solid #798779;
  border-radius: .5rem;
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form :is(input, textarea):focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.contact-form p { color: var(--muted); font-size: .9rem; margin: .4rem 0; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
nav a[aria-current="page"] { color: var(--green); }

.contact-form button:disabled { cursor: not-allowed; opacity: .6; }

.contact-email button {
  font: inherit;
  font-weight: 750;
  border: 0;
  cursor: pointer;
}
.contact-email button[hidden] { display: none; }
