/* ==========================================================================
   Reset + tipografia di base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg, picture { max-width: 100%; display: block; }
img, video { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--gold-500); text-underline-offset: 3px; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong, b { font-weight: 600; color: var(--text-strong); }

/* Su fondo scuro il colore qui sopra (--text-strong = --ink-900) coincide col
   fondo e il grassetto sparisce. Finora ogni sezione se lo aggirava per conto
   suo (.hero__lead strong, .vcard__caption strong, .cp-partner-list strong):
   una regola sola copre anche i blocchi futuri. */
.hero strong,
.section--dark strong,
.factbar-solo strong,
.site-footer strong { color: #fff; }

/* Il riquadro del form è bianco pur stando in una sezione scura: lì il
   grassetto deve tornare scuro, o si ripete il problema al contrario. */
.section--dark .booking strong { color: var(--text-strong); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold-200); color: var(--ink-900); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink-900);
  color: #fff;
  font-size: var(--step--1);
}
.skip-link:focus { left: 0; }

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