:root {
  --red: #b8171f;
  --red-dark: #8f1117;
  --ink: #261f1b;
  --muted: #6b625b;
  --paper: #fbf8f3;
  --tint: #f1ece3;
  --line: #ddd5c8;
  --taupe: #8c8272;
  --serif:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    serif;
  --sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.btn--sm {
  min-height: 44px;
  padding: 0 18px;
}
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost-dark:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.top__brand img {
  width: 52px;
  height: auto;
}
.top__nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.top__nav a {
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.top__nav a:hover {
  border-color: var(--red);
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: #1d1714;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(20, 14, 11, 0.82) 0%,
      rgba(20, 14, 11, 0.5) 48%,
      rgba(20, 14, 11, 0.05) 100%
    ),
    linear-gradient(180deg, rgba(20, 14, 11, 0) 60%, rgba(20, 14, 11, 0.6) 100%);
}
.hero__in {
  padding-block: 56px 44px;
  min-height: min(70svh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
  opacity: 0.92;
}
.hero h1 {
  font-size: clamp(2.25rem, 8.5vw, 4.25rem);
  max-width: 14ch;
}
@media (min-width: 900px) {
  .hero h1 {
    max-width: 22em;
    font-size: clamp(3rem, 5vw, 4.25rem);
  }
}
.lead {
  font-size: 1.125rem;
  max-width: 36ch;
  margin: 18px 0 26px;
  opacity: 0.95;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.openstate {
  margin: 22px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.openstate::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa0a6;
}
.openstate.is-open::before {
  background: #4cc46a;
  box-shadow: 0 0 0 4px rgba(76, 196, 106, 0.25);
}
.openstate.is-closed::before {
  background: #e0a23a;
}

/* Sections */
.sec {
  padding-block: 40px;
}
.sec--tint {
  background: var(--tint);
}
.sec__head {
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.sec h2 {
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  margin-bottom: 20px;
}
.sec__head h2 {
  margin-bottom: 0;
}

.sec h2.eyebrow {
  font: 700 0.8125rem/1.6 var(--sans);
  margin-bottom: 0;
}

/* Cards */
.cards {
  display: grid;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card__body {
  padding: 22px 22px 26px;
}
.card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card--text {
  justify-content: center;
}

/* About */
.about {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about__text p {
  max-width: 56ch;
}
.about__text .btn {
  margin-top: 8px;
}
.gallery {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

/* Hours + contacts */
.two {
  display: grid;
  gap: 48px;
}
.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.hours th,
.hours td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.hours th {
  font-weight: 600;
  padding-left: 0;
}
.hours tr.closed th,
.hours tr.closed td {
  color: var(--red);
}

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.contact__k {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.contact a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact a:hover {
  color: var(--red);
}
.contact__n {
  color: var(--muted);
  font-size: 0.9375rem;
}
.contact address {
  font-style: normal;
  font-size: 1.125rem;
}

/* Map */
.map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e7e0d4;
  min-height: 320px;
}
.map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
/* Footer */
.foot {
  background: #1d1714;
  color: #e9e2d8;
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.foot__in {
  display: grid;
  gap: 20px;
  align-items: center;
}
.foot p {
  margin: 0 0 4px;
}
.foot__c {
  color: #a79e92;
}
.foot img {
  width: 92px;
  height: auto;
  box-sizing: border-box;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
}

/* Mobile: foto sopra, testo sotto */
@media (max-width: 759px) {
  .hero__bg {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 1 / 1;
  }
  .hero::after {
    display: none;
  }
  .hero__bg img {
    object-position: 82% 38%;
  }
  .hero__in {
    min-height: 0;
    padding-block: 32px 48px;
  }
  .gallery li:nth-child(1) {
    grid-column: span 2;
  }
  .gallery li:nth-child(1) img {
    aspect-ratio: 4 / 3;
  }
}

/* Desktop */
@media (min-width: 760px) {
  :root {
    --gutter: 28px;
  }
  .top__nav {
    display: flex;
  }
  .hero__in {
    padding-block: 88px 56px;
  }
  .hero__cta {
    flex-direction: row;
    align-items: center;
  }
  .sec {
    padding-block: 56px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
  .about {
    grid-template-columns: 5fr 6fr;
    gap: 48px;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .two {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .foot__in {
    grid-template-columns: auto 1fr auto;
    gap: 28px;
  }
}
@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* FAQ */
.faq > * {
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  position: relative;
  min-height: 48px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 60ch;
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.contact__area {
  font-size: 1.0625rem;
}

.hours td {
  white-space: nowrap;
  padding-inline: 4px;
  font-size: 0.9375rem;
}
.hours th {
  padding-right: 8px;
}

.map__link {
  margin: 20px 0 0;
}
.map__link .btn {
  width: 100%;
}
.contact a.contact__map {
  display: inline-block;
  margin-top: 6px;
  font: 600 1rem/1.4 var(--sans);
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 0;
}
@media (min-width: 760px) {
  .map__link .btn {
    width: auto;
  }
}

.sec--rule {
  border-top: 1px solid var(--line);
}

/* Titolare: ritaglio senza sfondo */
.owner {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.owner__in {
  display: grid;
  gap: 8px;
  align-items: end;
  justify-items: center;
  text-align: center;
}
.owner__img {
  width: min(100%, 320px);
  height: auto;
}
.owner__text {
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.owner__text h2 {
  margin-bottom: 12px;
}
.owner__text p:not(.eyebrow) {
  max-width: 40ch;
}
@media (min-width: 760px) {
  .owner__in {
    grid-template-columns: auto 1fr;
    gap: 48px;
    justify-items: start;
    text-align: left;
  }
  .owner__img {
    width: 380px;
  }
  .owner__text {
    align-items: flex-start;
    padding-bottom: 40px;
  }
}
.about__media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 14px;
}

/* Mappa: segnaposto con consenso prima del caricamento */
.map__consent {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 20px;
  text-align: center;
  color: var(--ink);
}
.map__consent p {
  margin: 0;
}
.map__name {
  font: 700 1.375rem/1.2 var(--serif);
}
.map__consent .map__note {
  max-width: 56ch;
  margin-top: 8px;
  font-size: 0.9375rem;
}
.map__note a {
  text-underline-offset: 3px;
}
.map__consent .btn {
  margin-top: 16px;
}

/* Informativa privacy */
.privacy {
  max-width: 760px;
}
.privacy p {
  max-width: 70ch;
  font-size: 0.9375rem;
  color: var(--muted);
}
.privacy a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.foot a {
  text-underline-offset: 3px;
}
