@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #101c24;
  color: #f0e7d7;
  --quiet: #d1c6b7;
  --accent: #e0b889;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: var(--sans);
  background-image:
    linear-gradient(0deg, rgb(10 19 25 / 92%), transparent 15%, transparent 92%, rgb(10 19 25 / 48%)),
    radial-gradient(ellipse at center, rgb(12 23 30 / 88%) 13%, rgb(12 23 30 / 62%) 32%, transparent 72%),
    url("assets/sera-veneziana.webp");
  background-position: center;
  background-size: cover;
}
a { color: inherit; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
img { display: block; height: auto; max-width: 100%; }
h1, p { margin: 0; }

.utility {
  display: flex;
  justify-content: flex-end;
  min-height: 3.75rem;
  padding: .9rem clamp(1rem, 4vw, 3.25rem) 0;
}
.language, .navigation a {
  font-size: .75rem;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
}
.language {
  padding: .55rem .25rem .5rem;
  align-self: start;
  color: var(--quiet);
}
.language:hover, .footer a:hover { color: #fff8ed; }

.presentation {
  width: min(100% - 2.5rem, 35rem);
  margin: auto;
  padding-block: 1rem;
  text-align: center;
}
.brand { width: min(100%, 24rem); margin-inline: auto; }
.brand img { width: 100%; }
.navigation {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: clamp(1rem, 3.6svh, 2.25rem);
}
.navigation a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: 0 .25rem;
  color: var(--quiet);
}
.navigation a[aria-current], .navigation a:hover {
  color: #f0e7d7;
  text-decoration: underline;
  text-underline-offset: .45em;
  text-decoration-color: var(--accent);
}
.panels { margin-top: .55rem; }
.enhanced .panels { display: grid; }
.panel {
  outline: none;
  padding: .5rem 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
}
.panel > p { max-width: 44ch; margin-inline: auto; }
#agenzia p { text-wrap: balance; }
.enhanced .panel { grid-area: 1 / 1; }
.enhanced .panel[inert] { visibility: hidden; }
.email {
  display: inline-block;
  margin-top: .45rem;
  color: #f0e7d7;
  text-underline-offset: .21em;
  overflow-wrap: anywhere;
}
.legal {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--quiet);
}
.legal p { max-width: none; }
.legal strong { color: #f0e7d7; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35rem 1.2rem;
  padding: .35rem 1rem clamp(.7rem, 2.3svh, 1.5rem);
  font-size: .72rem;
  color: var(--quiet);
}
.footer a { padding: .4rem 0; text-underline-offset: .25em; }
.footer a[aria-current] { color: #f0e7d7; }
@media (max-width: 640px) {
  body {
    background-image:
      linear-gradient(0deg, rgb(10 19 25 / 96%), transparent 20%, rgb(10 19 25 / 62%) 35%, rgb(10 19 25 / 85%) 58%),
      radial-gradient(ellipse at center, rgb(12 23 30 / 85%), transparent 70%),
      url("assets/sera-veneziana.webp");
    background-position: center, center, 66% bottom;
    background-repeat: no-repeat;
    background-size: cover, cover, auto max(100%, 35rem);
  }
}
@media (max-height: 540px) {
  .utility { min-height: 2.6rem; padding-top: .25rem; }
  .presentation { padding-block: .35rem; }
  .brand { width: min(100%, 18rem); }
  .navigation { margin-top: .65rem; }
  .footer { padding-bottom: .25rem; }
}
