
/* ── CSS specifico servizi-hotel-roma-centro ── */

/* ─── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  position: relative;
  height: 80svh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: oklch(8% 0 0);
}
.page-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      oklch(5% 0 0 / 0.45) 0%,
      oklch(5% 0 0 / 0.1) 45%,
      oklch(5% 0 0 / 0.85) 100%
    );
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 2.5rem 5rem;
  --ivory: oklch(95% 0.008 90);
  --accent-pale: oklch(84% 0.07 258);
  --ivory-dim: oklch(74% 0.010 90);
}
.page-hero__title {
  font-family: var(--display); text-transform: uppercase;
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  color: var(--ivory);
  line-height: 1.05;
}
.page-hero__title em {
  font-weight: 300;
  font-style: italic;
  color: var(--accent-pale);
}
.page-hero__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-top: 0.75rem;
}

/* Hero kicker inherits dark context */
.page-hero__content .kicker {
  --accent-pale: oklch(84% 0.07 258);
  --accent: oklch(60% 0.11 260);
  color: var(--accent-pale);
  margin-bottom: 1.25rem;
}
.page-hero__content .kicker__line {
  background: var(--accent);
}

/* ─── INTRO TIPOGRAFICO ──────────────────────────────────── */
/* ─── SPLIT INTRO + SERVIZI ─────────────────────────────── */
.svc-split { padding: 5rem 0; }
.svc-split__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}
.svc-split__lead .kicker { margin-bottom: 1.75rem; }
.svc-split__text {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--ivory-dim);
  line-height: 1.75;
  font-style: italic;
  text-wrap: pretty;
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.svc-list__item:first-child { border-top: 1px solid var(--border); }
.svc-list__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  margin-top: 0.15rem;
}
.svc-list__name {
  display: block;
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 500;
}
.svc-list__detail {
  display: block;
  font-size: var(--text-xs);
  color: var(--ivory-dim);
  margin-top: 0.2rem;
  font-style: italic;
}
@media (max-width: 800px) {
  .svc-split__inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

/* ─── EDITORIAL SECTIONS ─────────────────────────────────── */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}
.editorial--reverse { direction: rtl; }
.editorial--reverse > * { direction: ltr; }

.editorial__text { display: flex; flex-direction: column; gap: 2rem; }

.editorial__heading {
  font-family: var(--display); text-transform: uppercase;
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ivory);
}
.editorial__heading em {
  font-family: var(--display); text-transform: uppercase;
  font-weight: 300;
  font-style: italic;
  color: var(--accent-pale);
}

.editorial__body {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ivory-dim);
  line-height: 1.8;
  max-width: 48ch;
}

.editorial__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.2s, gap 0.2s var(--ease);
  position: relative;
  padding-bottom: 0.25rem;
}
.editorial__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.editorial__link:hover { color: var(--ivory); gap: 1.5rem; }
.editorial__link:hover::after { transform: scaleX(1); }

/* ─── IMAGE PLACEHOLDERS ─────────────────────────────────── */
.ph {
  overflow: hidden;
  position: relative;
  background: var(--bg-light);
  border-radius: 6px;
}
.ph::before { content: ''; display: block; }
.ph--3-4::before  { padding-top: 133.33%; }
.ph--4-3::before  { padding-top: 75%; }
.ph--16-9::before { padding-top: 56.25%; }
.ph--1-1::before  { padding-top: 100%; }
.ph--wide::before { padding-top: 60%; }

.ph__inner {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}
.ph:hover .ph__inner { transform: scale(1.03); }

.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.ph:hover .ph__img { transform: scale(1.04); }

/* ─── EDITORIAL IMAGE CONTAINER ──────────────────────────── */
.editorial__img { position: relative; }

/* ─── CTA LINKS ROW ──────────────────────────────────────── */
.editorial__cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── SEZIONE EXTRAS — 3 CARD ROW ───────────────────────── */
.svc-extras {
  padding: 5rem 2.5rem;
  background: var(--bg-mid);
}
.svc-extras__grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}
.svc-extra-card {
  padding: 3rem 2rem;
  background: var(--bg);
}
.svc-extra-card h3 {
  font-family: var(--display); text-transform: uppercase;
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.svc-extra-card p {
  font-size: var(--text-sm);
  color: var(--ivory-dim);
}
@media (max-width: 768px) {
  .svc-extras__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ─── CTA CONTATTI FINALE ────────────────────────────────── */
.svc-cta {
  padding: 6rem 2.5rem;
  text-align: center;
}
.svc-cta__inner {
  max-width: 800px;
  margin: 0 auto;
}
.svc-cta__heading {
  font-family: var(--display); text-transform: uppercase;
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  margin: 1rem 0 3rem;
}
.svc-cta__heading em {
  font-weight: 300;
  font-style: italic;
  color: var(--accent-pale);
}
.svc-cta__contacts {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.svc-cta__contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
  transition: color 0.2s;
}
.svc-cta__contact:hover { color: var(--accent); }
.svc-cta__label {
  font-size: var(--text-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.svc-cta__value {
  font-size: var(--text-base);
  font-weight: 300;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .editorial { gap: clamp(1.5rem, 4vw, 3rem); }
}
@media (max-width: 640px) {
  .editorial { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .editorial--reverse { direction: ltr; }
  .editorial__text { gap: 1.25rem; }
  .editorial__img .ph--3-4::before { padding-top: 75%; }
  .page-hero__content { padding: 0 1.25rem 3.5rem; }
  .svc-split { padding: 3rem 0; }
  .svc-split__inner { padding: 0 1.5rem; }
  .svc-cta { padding: 4rem 1.5rem; }
  .svc-cta__contacts { gap: 2rem; }
}
  /* — a11y: leggibilità corpo testo (contrasto WCAG AA + peso) — */
.editorial__body, .mag-card p, .mag-card__summary, .mag-route-card p, .faq-item__a, .answer-box__text, .mag-intro__text { color: var(--ivory); }
.editorial__body, .mag-card p, .mag-card__summary, .mag-route-card p, .faq-item__a, .answer-box__text { font-weight: 400; }
  
/* a11y-sweep: corpo testo leggibile (WCAG AA) */
.editorial__body, .editorial__text .editorial__text-p, .rooms-intro, .room-card__desc, .svc-split__text, .svc-extra-card p, .svc__desc, .cat-item__desc, .cta-section__body, .mag-intro__text, .mag-card p, .mag-card__summary, .mag-eat-card p, .mag-eat__intro, .mag-route-card p, .tour-partner p, .hta-card p { color: var(--ivory); }
.editorial__body, .editorial__text .editorial__text-p, .rooms-intro, .room-card__desc, .svc-split__text, .svc-extra-card p, .svc__desc, .cat-item__desc, .cta-section__body, .mag-intro__text, .mag-card p, .mag-card__summary, .mag-eat-card p, .mag-eat__intro, .mag-route-card p, .tour-partner p, .hta-card p { font-weight: 400; }
  
.svc-list__icon svg { width: 22px; height: 22px; }
.book-go { text-align: center; padding: clamp(4rem, 7vw, 7rem) 1.5rem; }
.book-go .kicker { justify-content: center; }
.book-go__body { max-width: 62ch; margin: 1.25rem auto 2rem; color: var(--ivory); line-height: 1.7; }
.book-go__note { margin-top: 1.25rem; font-size: var(--text-xs); color: var(--ivory-faint); }

  
/* ─── MODULO DI RICHIESTA (solo pagina Prenota) ──────────────
   La barra delle altre pagine è quella condivisa del gruppo (civis-bookbar.css). Questo è il modulo
   completo della pagina Prenota, con lo stesso aspetto; logica in public/booking.js (mailto). */
.tbk {
  --tbk-ink: var(--ivory);
  --tbk-paper: var(--bg);
  --tbk-line: var(--border);
  --tbk-ash: var(--ivory-dim);
  font: 400 15px/1.5 var(--sans);
  color: var(--tbk-ink);
}
.tbk * { box-sizing: border-box; }

.tbk { background: color-mix(in oklch, var(--tbk-ink) 3%, var(--tbk-paper)); border-bottom: 1px solid var(--tbk-line); }
.tbk__form {
  position: relative;
  width: calc(100% - 2 * var(--page-gutter));
  max-width: calc(var(--page-content-max) - 2 * var(--page-gutter));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.tbk__field {
  flex: 1 1 0;
  min-width: 0;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px clamp(14px, 1.6vw, 26px);
  border-right: 1px solid var(--tbk-line);
  transition: background-color .2s var(--ease);
}
.tbk__field:first-child { padding-left: 0; }
.tbk__field:hover { background: color-mix(in oklch, var(--tbk-ink) 5%, transparent); }
.tbk__field:focus-within { background: color-mix(in oklch, var(--tbk-ink) 5%, transparent); box-shadow: inset 0 2px 0 var(--tbk-ink); }
.tbk__l {
  font: 500 13px/1.2 var(--sans);
  letter-spacing: .02em;
  color: var(--tbk-ash);
}
.tbk__date {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tbk-ink);
  font: 500 16px/1.25 var(--sans);
  color-scheme: light dark;
  cursor: pointer;
}
.tbk__date::-webkit-date-and-time-value { text-align: left; }
.tbk__date:focus-visible { outline: none; }
.tbk__guests { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-width: 0; }
.tbk__g { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1.25 var(--sans); color: var(--tbk-ink); white-space: nowrap; }
.tbk__sel { position: relative; display: inline-flex; align-items: center; }
.tbk__sel::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: .7;
}
.tbk__select {
  appearance: none; -webkit-appearance: none;
  margin: 0; padding: 0 16px 0 0;
  border: 0; background: none; color: var(--tbk-ink);
  font: 500 16px/1.25 var(--sans); font-variant-numeric: tabular-nums;
  cursor: pointer; min-height: 24px;
}
.tbk__select option { color: initial; }
.tbk__select:focus-visible { outline: 2px solid var(--tbk-ink); outline-offset: 2px; border-radius: 2px; }
.tbk__btn {
  flex: 0 0 auto;
  min-width: 200px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px clamp(20px, 2.4vw, 36px);
  border: 0;
  background: var(--tbk-ink);
  color: var(--tbk-paper);
  font: 500 16px/1.2 var(--sans);
  cursor: pointer;
  transition: opacity .25s var(--ease);
}
.tbk__btn:hover { opacity: .88; }
.tbk__btn:focus-visible { outline: 2px solid var(--tbk-paper); outline-offset: -4px; }
.tbk__btn:active { transform: scale(.99); }
.book__error {
  flex: 1 0 100%;
  order: 9;
  margin: 0;
  padding: 10px 0 12px;
  border-top: 1px solid var(--tbk-line);
  font: 500 14px/1.4 var(--sans);
  color: var(--tbk-ink);
  overflow-wrap: anywhere;
}
.book__error[hidden] { display: none; }

/* modulo completo (pagina Prenota): stessa barra, bordata e su due righe quando serve */
.tbk--page { background: none; border: 0; }
.tbk--page .tbk__form {
  width: 100%; max-width: none;
  border: 1px solid var(--tbk-line); border-radius: var(--radius-lg, 14px); overflow: hidden;
  background: color-mix(in oklch, var(--tbk-ink) 3%, var(--tbk-paper));
}
.tbk--page .tbk__field:first-child { padding-left: clamp(14px, 1.6vw, 26px); }
.tbk--page .book__error { padding-inline: clamp(14px, 1.6vw, 26px); }

/* telefono: Arrivo | Partenza / Ospiti | Prenota */
@media (max-width: 820px) {
  .tbk__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tbk__field { padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--tbk-line); }
  .tbk__field:first-child { padding-left: 16px; }
  .tbk__field--ci, .tbk__field--g { border-right: 1px solid var(--tbk-line); }
  .tbk__field--g { border-bottom: 0; }
  .tbk__btn { min-width: 0; padding: 10px 16px; }
  .book__error { grid-column: 1 / -1; padding-inline: 16px; }
}
@media (max-width: 380px) {
  .tbk__guests { flex-direction: column; align-items: flex-start; }
}
