/* MAT – Viterbo. Warm night palette taken from the venue's own photographs:
   lamp-lit stone, the brass of the bulbs, the orange of the curtain and the planters. */

:root {
  --ink: #14110E;
  --notte: #0B0908;
  --pietra: #201A15;
  --pietra-alta: #2C241D;
  --carta: #F1E7D4;
  --carta-tenue: #C9BCA6;
  --muto: #9B8C77;
  --ottone: #C99A4E;
  --ottone-chiaro: #E0B66E;
  --brace: #A8471F;
  --linea: rgba(201, 154, 78, 0.26);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 72rem;
  --gutter: clamp(1.15rem, 5vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--carta);
  font: 400 1.0625rem/1.72 var(--sans);
  letter-spacing: 0.004em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ottone-chiaro); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.002em;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.05em; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ottone);
  color: var(--notte);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  z-index: 50;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--linea);
  background: var(--notte);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

.mark {
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  display: block;
}

.mark__word {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--carta);
  line-height: 1;
}

.mark__sub {
  display: block;
  margin-top: 0.42rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muto);
}

.nav { display: none; }

.nav a {
  color: var(--carta-tenue);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--carta); border-bottom-color: var(--ottone); }

.btn {
  display: inline-block;
  text-decoration: none;
  font: 500 0.9rem/1 var(--sans);
  letter-spacing: 0.06em;
  padding: 0.92rem 1.35rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--brass {
  background: var(--ottone);
  color: #17120A;
  font-weight: 600;
}
.btn--brass:hover { background: var(--ottone-chiaro); }

.btn--linea {
  border-color: var(--linea);
  color: var(--carta);
}
.btn--linea:hover { border-color: var(--ottone); color: var(--ottone-chiaro); }

.topbar__cta { padding: 0.62rem 1rem; }

/* ---------- hero ---------- */

.hero {
  background: var(--notte);
  padding-bottom: 3.2rem;
}

.hero__shot img { width: 100%; }

.hero__text {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 2.6rem var(--gutter) 2.4rem;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ottone);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 7.4vw, 3.5rem);
  max-width: 15ch;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.06rem;
  color: var(--carta-tenue);
  max-width: 44ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.7rem 0 1.9rem;
}

.score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linea);
  max-width: 22rem;
}

.score__n {
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1;
  color: var(--ottone-chiaro);
}

.score__t {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muto);
  line-height: 1.5;
}
.score__t span { color: var(--carta-tenue); }

/* ---------- shared section furniture ---------- */

section { padding-block: clamp(3.4rem, 9vw, 6rem); }

.h-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(1.55rem, 4.6vw, 2.15rem);
  margin-bottom: 1.2rem;
}

.h-rule span { flex: none; }

.h-rule::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--linea);
}

.lead {
  font-size: 1.09rem;
  color: var(--carta);
}

.lead--largo { max-width: 58ch; }

.nota {
  font-size: 0.9rem;
  color: var(--muto);
  border-left: 2px solid var(--linea);
  padding-left: 0.9rem;
  margin-bottom: 0;
}

.segni {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  border-top: 1px solid var(--linea);
}

.segni li {
  padding: 0.72rem 0 0.72rem 1.35rem;
  border-bottom: 1px solid var(--linea);
  position: relative;
  color: var(--carta-tenue);
}

.segni li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.42rem;
  width: 0.42rem;
  height: 1px;
  background: var(--ottone);
}

/* ---------- il vicolo ---------- */

.vicolo { background: var(--pietra); }

.vicolo__foto { margin-top: 2.2rem; }
.vicolo__foto figure { margin: 0; }

.vicolo__lavagna {
  margin-top: 1rem;
  max-width: 20rem;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.83rem;
  color: var(--muto);
}

/* ---------- le sale ---------- */

.galleria {
  margin-top: 2.3rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
}

.galleria figure { margin: 0; }
.galleria__grande { grid-column: 1 / -1; }

/* ---------- in cucina ---------- */

.cucina { background: var(--pietra); }

.cucina__foto {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2.2rem;
}

.cucina__foto2 { align-self: end; }

/* ---------- la sera ---------- */

.sera__foto {
  margin: 2.2rem 0 0;
  max-width: 18rem;
}

.sera__orari {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--linea);
  color: var(--carta-tenue);
  letter-spacing: 0.03em;
}
.sera__orari strong { color: var(--carta); }

/* ---------- le voci ---------- */

.voci { background: var(--pietra); }

.voci__griglia {
  margin-top: 2rem;
  display: grid;
  gap: 1.6rem;
}

.voci blockquote {
  margin: 0;
  padding-left: 1.15rem;
  border-left: 2px solid var(--ottone);
}

.voci blockquote p {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.42;
  color: var(--carta);
  margin-bottom: 0.6rem;
}

.voci cite {
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muto);
}

.voci__fonte {
  margin: 2rem 0 0;
  font-size: 0.83rem;
  color: var(--muto);
}

/* ---------- dove siamo ---------- */

.scheda {
  margin: 1.8rem 0;
  display: grid;
  gap: 1.1rem 2rem;
  /* one column until there is room for the e-mail address to sit on one line */
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.scheda dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ottone);
  margin-bottom: 0.35rem;
}

.scheda dd {
  margin: 0;
  color: var(--carta-tenue);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.scheda a { color: var(--carta); text-decoration-color: var(--linea); }
.scheda a:hover { color: var(--ottone-chiaro); }

.dove__foto { margin: 2.4rem 0 0; }

/* ---------- footer ---------- */

.piede {
  background: var(--notte);
  border-top: 1px solid var(--linea);
  padding-block: 3rem;
}

.piede__in { display: grid; gap: 2rem; }

.piede__marchio {
  max-width: 11rem;
  filter: sepia(0.15);
}

.piede__nome {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--carta);
  margin-bottom: 0.5rem;
}

.piede__testo p { color: var(--carta-tenue); margin-bottom: 0.7rem; }
.piede__testo a { color: var(--carta); }
.piede__testo a:hover { color: var(--ottone-chiaro); }

.piede__social { display: flex; gap: 1.3rem; }
.piede__social a {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--carta-tenue);
  text-decoration: none;
  border-bottom: 1px solid var(--linea);
  padding-bottom: 0.2rem;
}
.piede__social a:hover { color: var(--ottone-chiaro); border-bottom-color: var(--ottone); }

.piede__nota {
  font-size: 0.83rem;
  color: var(--muto);
  margin-bottom: 0;
}

/* ---------- 404 ---------- */

.perso {
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 4rem;
}

.perso h1 { font-size: clamp(2rem, 7vw, 3rem); max-width: 18ch; }
.perso p { color: var(--carta-tenue); max-width: 46ch; }

/* ---------- wider screens ---------- */

@media (min-width: 46rem) {
  .voci__griglia { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.6rem; }

  .vicolo__foto {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.2rem;
    align-items: end;
  }
  .vicolo__lavagna { margin-top: 0; max-width: none; }

  .galleria { grid-template-columns: repeat(2, 1fr); }

  .cucina__foto { margin-bottom: 0; }

  .piede__in {
    grid-template-columns: auto 1fr;
    gap: 2.6rem;
    align-items: center;
  }
}

@media (min-width: 62rem) {
  .nav { display: flex; gap: 1.5rem; }

  .hero {
    display: grid;
    grid-template-columns: 1fr 46%;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0;
  }

  .hero__text {
    margin: 0;
    padding: 4.6rem var(--gutter) 4.6rem
             max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
    align-self: center;
  }

  .hero__shot { height: 100%; }
  .hero__shot picture, .hero__shot img { height: 100%; object-fit: cover; }

  .vicolo__in, .cucina__in, .sera__in, .dove__in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }

  .vicolo__in {
    align-items: start;
    grid-template-columns: 0.92fr 1.08fr;
  }
  .vicolo__foto { margin-top: 0; }

  /* the two plates stack in one column, the second stepped in from the right */
  .cucina__foto { grid-template-columns: 1fr; gap: 1.3rem; }
  .cucina__foto2 {
    width: 68%;
    margin-left: auto;
    margin-top: -2.6rem;
  }

  /* one row of three: the vaulted room wide on the left, the two portraits beside it, all
     to a common height so the row reads as a single band rather than three loose crops */
  .galleria {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.1rem;
  }
  .galleria__grande { grid-column: auto; }
  .galleria figure img { width: 100%; height: 24rem; object-fit: cover; }

  .sera__foto { margin-top: 0; justify-self: end; max-width: 22rem; }
  .dove__foto { margin-top: 0; justify-self: end; max-width: 24rem; }

  .voci__griglia { grid-template-columns: repeat(2, 1fr); }
}

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