/* =========================================================
   Albergo Ristorante Cascina Cantone
   Base "Monte": corten + crema, bottoni a pillola, nessuna ombra.
   Tocco rurale: foto della cascina, titoli in Coventry Garden
   (immagini SVG in img/titoli), testi in Jost.
   ========================================================= */

:root {
  --corten: #b84b30;
  --corten-dark: #8f3922;
  --cream: #f8f4e9;
  --paper: #fffdf7;
  --line: #e3d9c4;
  --line-soft: #efe7d6;
  --line-strong: #cdbfa6;
  --ink: #2b2420;
  --ink-2: #3d342e;
  --muted: #5c4d42;
  --earth: #3e2a22;

  --font-body: "Jost", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 14px;
  --pill: 9999px;

  /* altezza dei titoli-immagine (comprende lo svolazzo sotto le lettere) */
  --th: clamp(56px, 7.4vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--corten); }
a:hover { color: var(--corten-dark); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: var(--pill);
}
.skip-link:focus { top: 16px; }

/* ---------- Titoli-immagine ---------- */
.ttl {
  display: block;
  height: auto;
  width: min(100%, calc(var(--th) * var(--r, 4)));
}
.ttl-wrap { margin: 0; line-height: 0; }
.center .ttl { margin-inline: auto; }

/* ---------- Tipografia ---------- */
.eyebrow {
  margin: 0;
  font-size: 13px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--corten);
}
.eyebrow--light { color: var(--cream); font-weight: 500; }

.body-l { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.body-l--light { color: var(--cream); font-weight: 300; }
.body-m { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.measure { max-width: 720px; }

.mono { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: -.02em; color: var(--muted); }
.mono--light { color: var(--cream); opacity: .85; margin: 0; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin-inline: auto; }
.section { padding: var(--section) var(--gutter) 0; }
.section--last { padding-bottom: var(--section); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-xl { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.center { align-items: center; text-align: center; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.split > * { flex: 1 1 420px; min-width: 0; }
.split--reverse { flex-direction: row-reverse; }
.split--top { align-items: flex-start; }
.split__photo img { width: 100%; height: auto; }
.split--stretch { align-items: stretch; }
.split--stretch .split__photo img { height: 100%; min-height: 360px; object-fit: cover; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 1.5px solid currentColor; border-radius: var(--pill);
  background: transparent; color: var(--corten);
  font: 500 13.5px/1 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--corten); border-color: var(--corten); color: var(--cream); }
.btn--neutral { color: var(--ink-2); border-color: var(--line-strong); }
.btn--neutral:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--cream); }
.btn--light { color: var(--cream); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--corten); }
.btn--soft { border-color: rgba(248, 244, 233, .45); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / hero ---------- */
.hero { background: var(--corten); color: var(--cream); padding: 20px var(--gutter) 0; }

.nav {
  max-width: var(--max); margin: 0 auto; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__links { display: flex; gap: 30px; }
.nav__links a, .mobile-menu a:not(.btn) {
  color: var(--cream); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav__tools { display: flex; align-items: center; gap: 18px; }

.lang { display: flex; align-items: center; gap: 4px; color: rgba(248, 244, 233, .6); font-size: 13px; }
.lang__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 6px; text-decoration: none;
  border: 0; border-radius: var(--pill); background: transparent;
  color: rgba(248, 244, 233, .7);
  font: 500 13px var(--font-body); letter-spacing: .12em; cursor: pointer;
}
.lang__btn:hover { color: var(--cream); }
.lang__btn[aria-current="true"] { color: var(--cream); text-decoration: underline; text-underline-offset: 5px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--cream); border-radius: var(--pill); background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform .2s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 28px 0 24px; border-bottom: 1px solid rgba(248, 244, 233, .3);
}

.hero__grid {
  max-width: var(--max); margin: 0 auto;
  padding-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.hero__text { display: flex; flex-direction: column; gap: 26px; padding-bottom: clamp(40px, 6vw, 88px); }
.hero__text .ttl--kicker { --th: clamp(30px, 3.2vw, 40px); opacity: .9; }
.hero__title { margin: 0; line-height: 0; --th: clamp(84px, 12vw, 158px); }
.hero__lead { margin: 0; max-width: 520px; font-size: 19px; font-weight: 300; line-height: 1.6; }
.hero__meta { margin: 0; color: var(--cream); opacity: .8; text-transform: uppercase; }
.hero__photo img { width: 100%; height: clamp(420px, 52vw, 640px); object-fit: cover; object-position: 50% 45%; }

/* ---------- In primo piano ---------- */
.highlights { padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.highlights__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.highlight { padding: 26px 24px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.highlight:first-child { border-left: 0; padding-left: 0; }
.highlight p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.highlight__label { color: var(--corten); }
.highlight__phone { font: 400 24px var(--font-mono); letter-spacing: -.03em; text-decoration: none; }

/* ---------- Benvenuti ---------- */
.banner { margin-top: clamp(40px, 5vw, 64px); }
.banner img { width: 100%; height: auto; aspect-ratio: 16 / 3; object-fit: cover; }

/* ---------- Menu ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.tab {
  min-height: 44px; padding: 0 22px;
  border: 1.5px solid var(--corten); border-radius: var(--pill);
  background: transparent; color: var(--corten);
  font: 500 13.5px var(--font-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.tab:hover { background: rgba(184, 75, 48, .08); }
.tab[aria-selected="true"] { background: var(--corten); color: var(--cream); }

.tab-panel { padding-top: 36px; }
.menu-panels { margin-top: 0; }
.notice {
  max-width: 720px; margin: 36px auto 0; padding: 20px 24px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2);
}
.notice--light { margin: 0; background: transparent; border-color: rgba(248, 244, 233, .5); color: var(--cream); }
.menu-card {
  max-width: 980px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px);
}
.menu-card__title {
  margin: 0 0 8px; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--corten);
}
.dishes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px;
}
.dish {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.dish__text { display: flex; flex-direction: column; gap: 2px; }
.dish__name { font-size: 17.5px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.dish__desc { font-size: 15px; color: var(--muted); line-height: 1.45; }
.dish__price { white-space: nowrap; font-size: 15px; color: var(--ink); }

.feature {
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--corten); color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
}
.feature .stack { max-width: 640px; gap: 16px; }
.feature .ttl { --th: clamp(52px, 6vw, 76px); }

.docs {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.doc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.doc p { margin: 0; color: var(--ink-2); flex: 1; }
.ttl--card { --th: 46px; }
.doc__pending { flex: 0 !important; font-size: 13px; line-height: 1.5; }
.doc__pending a { color: var(--corten); }

/* ---------- Camere ---------- */
.rooms {
  margin-top: var(--section);
  background: var(--corten); color: var(--cream);
  padding: var(--section) var(--gutter);
}
.rooms__intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.rooms__services { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 12px; height: 6px; border-left: 1.5px solid var(--cream); border-bottom: 1.5px solid var(--cream);
  transform: rotate(-45deg);
}

.rooms__gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.rooms__gallery figure { grid-column: span 2; }
.rooms__gallery figure:nth-child(1), .rooms__gallery figure:nth-child(2) { grid-column: span 3; }
.rooms__gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.rooms__info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.room-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
  border-top: 1px solid rgba(248, 244, 233, .35);
}
.room {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 16px 0; border-bottom: 1px solid rgba(248, 244, 233, .35);
}
.room__name { font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.room__gloss { font-size: 14px; font-style: italic; opacity: .8; }
.room__type { flex-basis: 100%; font-size: 14.5px; font-weight: 300; opacity: .9; }

.prices {
  border: 1.5px solid rgba(248, 244, 233, .6); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
}
.prices__note { margin: 0; font-weight: 300; }
.prices__list { margin: 0; display: flex; flex-direction: column; }
.prices__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(248, 244, 233, .35);
}
.prices__row dt { font-size: 17px; }
.prices__row dd { margin: 0; color: var(--cream); font-size: 20px; white-space: nowrap; }
.prices__unit { font-size: 12px; opacity: .8; }
.prices__tax { margin: 0 0 8px; font-size: 14px; font-weight: 300; opacity: .9; }

/* ---------- Contatti ---------- */
.contacts { font-style: normal; display: flex; flex-direction: column; gap: 22px; }
.contacts__addr { margin: 0; font-size: 18px; line-height: 1.6; }
.contacts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; align-items: baseline; }
.contacts dt { color: var(--muted); }
.contacts dd { margin: 0; font-size: 17px; }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.contacts__logo { width: min(260px, 70%); margin-top: 12px; }

.map {
  position: relative; min-height: 520px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  align-self: stretch;
}
.map__consent { max-width: 360px; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--earth); color: #efe5d3; padding: 56px var(--gutter); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 4px; --th: 64px; }
.footer__brand .ttl--kicker { --th: 26px; opacity: .85; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer__nav a { color: #efe5d3; text-decoration: none; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__legal { flex-basis: 100%; margin: 0; font-size: 12px; color: #efe5d3; opacity: .75; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: min(92vw, 1100px); max-height: 92vh; background: var(--paper); border-radius: var(--radius); }
.lightbox::backdrop { background: rgba(43, 36, 32, .8); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; }
.lightbox__close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
  border: 1.5px solid var(--corten); border-radius: var(--pill); background: var(--paper);
  color: var(--corten); font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight:nth-child(3) { border-left: 0; padding-left: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid var(--line); }
  .docs { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: flex; }
  .nav__tools { gap: 10px; margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { padding-bottom: 0; }
  .hero__photo { margin-inline: calc(var(--gutter) * -1); }
  .hero__photo img { height: 420px; }
  .dishes { grid-template-columns: 1fr; }
  .rooms__intro, .rooms__info { grid-template-columns: 1fr; }
  .rooms__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms__gallery figure, .rooms__gallery figure:nth-child(1), .rooms__gallery figure:nth-child(2) { grid-column: span 1; }
  .rooms__gallery figure:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 600px) {
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight, .highlight:nth-child(3) { border-left: 0; padding: 20px 0; border-top: 1px solid var(--line); }
  .highlight:first-child { border-top: 0; }
  .room-list { grid-template-columns: 1fr; }
  .contacts dl { grid-template-columns: 1fr; gap: 2px; }
  .contacts dd { margin-bottom: 12px; }
  .map { min-height: 380px; }
  .banner img { aspect-ratio: 16 / 9; }
  .hero__photo img { height: 340px; }
  .split--reverse { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Pagine secondarie ---------- */
.hero--page { padding-bottom: 28px; }
.page-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.page-bar__brand { --th: 56px; display: block; }
