:root {
  color-scheme: light;
  --color-ink: #383431;
  --color-muted: #746d68;
  --color-paper: #fff;
  --color-section: #efebe9;
  --font-body: "Open Sans", Arial, sans-serif;
  --font-heading: "Lora", Georgia, serif;
  --font-claim: "Allura", cursive;
  --page-width: 95rem;
  --text-width: 62.5rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:active,
button:active {
  opacity: 0.72;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.page-width {
  width: min(var(--page-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow-width {
  width: min(var(--text-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

.contact-bar {
  min-height: 40px;
  border-bottom: 1px solid rgb(56 52 49 / 10%);
  background: var(--color-paper);
}

.contact-bar-inner {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  font-size: 0.75rem;
}

.contact-bar a,
.contact-value a {
  text-decoration: none;
}

.navigation-wrap {
  position: relative;
  z-index: 2;
  background: var(--color-paper);
}

.navigation-inner {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
}

.brand {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.menu-toggle {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 0;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 12px;
  place-items: center;
  border: 0;
  color: var(--color-ink);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.menu-toggle-lines::before {
  transform: translateY(-6px);
}

.menu-toggle-lines::after {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  transform: rotate(-45deg);
}

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

.site-nav {
  position: absolute;
  z-index: 3;
  top: calc(100% - 1px);
  right: max(1.25rem, calc((100% - var(--page-width)) / 2));
  display: none;
  min-width: 220px;
  padding: 12px 20px;
  background: var(--color-paper);
  box-shadow: 0 8px 18px rgb(0 0 0 / 10%);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 0;
  color: var(--color-ink);
  font-size: 0.8125rem;
  text-decoration: none;
}

.hero {
  display: grid;
  min-height: max(40vh, 360px);
  padding: 48px 24px;
  place-items: center;
  overflow: hidden;
  color: var(--color-paper);
  text-align: center;
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C240 30 480 110 720 70 C960 30 1200 110 1440 70 V120 H0 Z' fill='%23ffffff'/%3E%3Cpath d='M0 90 C240 60 480 120 720 92 C960 64 1200 120 1440 92 V120 H0 Z' fill='%23ffffff' fill-opacity='.35'/%3E%3C/svg%3E") bottom / 100% 90px no-repeat,
    linear-gradient(180deg, rgb(10 34 48 / 38%), rgb(10 34 48 / 52%)),
    url("/img/hero-lungomare-celle-ligure.jpg") center 40% / cover no-repeat,
    #2c6a86;
}

.hero h1 {
  position: relative;
  text-shadow: 0 2px 18px rgb(8 36 52 / 45%);
}

.hero h1 {
  max-width: 1050px;
  margin: 0;
  font-family: var(--font-claim);
  font-size: clamp(2.875rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

.section-pad {
  padding: clamp(56px, 7vw, 96px) 0;
}

h2 {
  margin: 0 0 28px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.story {
  background: var(--color-paper);
  text-align: center;
}

.story p,
.beach p,
.restaurant p {
  margin: 0 0 1.15rem;
}

.story p:last-child,
.beach p:last-child,
.restaurant p:last-child {
  margin-bottom: 0;
}

.beach,
.restaurant {
  background: var(--color-paper);
  text-align: center;
}

.beach {
  background: var(--color-section);
}

.restaurant a:hover,
.contact-bar a:hover,
.contact-value a:hover {
  text-decoration: underline;
}

.beach a {
  font-weight: 600;
  text-decoration: underline;
}

.gallery {
  background: var(--color-section);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-details {
  background: var(--color-paper);
  text-align: center;
}

.contact-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.contact-columns > * {
  min-width: 0;
}

.contact-columns h3 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
}

.contact-value {
  margin: 0;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid rgb(56 52 49 / 10%);
  background: var(--color-paper);
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.footer-inner p {
  margin: 0;
}

.error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.error-content {
  display: grid;
  flex: 1;
  align-content: center;
  justify-items: center;
  padding: 80px 24px;
  text-align: center;
}

.error-content h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
}

.button-link {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 24px;
  color: var(--color-paper);
  background: var(--color-ink);
  text-decoration: none;
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-width,
  .narrow-width {
    width: calc(100% - 2rem);
  }

  .navigation-inner {
    min-height: 86px;
  }

  .brand {
    max-width: calc(100% - 64px);
    font-size: 1.2rem;
  }

  .contact-bar-inner {
    justify-content: center;
    gap: 1rem;
    font-size: 0.7rem;
  }

  .hero {
    min-height: max(40vh, 320px);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .contact-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
