/* ==========================================================================
   B&B Easy — Roma · Foglio di stile principale
   Struttura: 1) Token  2) Reset  3) Layout  4) Componenti  5) Sezioni
              6) Utility  7) Responsive  8) Motion / A11y
   ========================================================================== */

/* 1) TOKEN ---------------------------------------------------------------- */
:root {
  /* Colori — palette ufficiale B&B Easy */
  --ink:            #1D1D1D;   /* nero del logo */
  --ink-2:          #4A4A4A;
  --ink-3:          #7C7C7C;
  --cream:          #FFFFFF;
  --sand:           #EDEDED;   /* grigio sezioni */
  --sand-2:         #E0E0E0;
  --line:           #E3E3E3;
  --brick:          #AA2520;   /* rosso B&B Easy */
  --brick-dark:     #8B1D19;
  --brick-soft:     #FBEEED;
  --dark:           #333333;   /* footer */
  --olive:          #6B7355;
  --gold:           #E8B02E;
  --white:          #FFFFFF;

  /* Tipografia */
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Scala tipografica fluida */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --fs-lg:   clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
  --fs-xl:   clamp(1.75rem, 2vw + 1.2rem, 2.5rem);
  --fs-2xl:  clamp(2.25rem, 3.6vw + 1.2rem, 3.75rem);
  --fs-3xl:  clamp(2.75rem, 5.2vw + 1rem, 4.75rem);

  /* Spaziature */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* Forme */
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* Ombre */
  --sh-1: 0 1px 2px rgba(27,23,19,.06), 0 2px 8px rgba(27,23,19,.04);
  --sh-2: 0 2px 6px rgba(27,23,19,.07), 0 12px 28px rgba(27,23,19,.08);
  --sh-3: 0 8px 20px rgba(27,23,19,.10), 0 28px 60px rgba(27,23,19,.12);

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --header-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* 2) RESET ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1, h2 { font-weight: 500; }
.h-red { color: var(--brick); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { text-wrap: pretty; }

a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brick); color: var(--white); }

/* 3) LAYOUT --------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--dark); color: rgba(255,255,255,.78); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--white); }

/* 4) COMPONENTI ----------------------------------------------------------- */

/* --- Eyebrow / titoli di sezione --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brick);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--brick); opacity: .55;
}
.section--ink .eyebrow { color: var(--gold); }
.section--ink .eyebrow::before { background: var(--gold); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55;
}
.section-head p { font-size: var(--fs-md); margin-top: var(--sp-4); color: var(--ink-2); }
.section--ink .section-head p { color: rgba(255,255,255,.75); }

/* --- Bottoni --- */
.btn {
  --btn-bg: var(--brick); --btn-fg: var(--white); --btn-bd: var(--brick);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.9em 1.7em;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn--dark    { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--light   { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--lg { padding: 1.05em 2.1em; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; margin-right: auto; }
.brand__logo { width: auto; height: 46px; flex: none; }
.footer .brand__logo { height: 54px; }
@media (max-width: 620px) { .brand__logo { height: 38px; } }

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  position: relative;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 4px;
  height: 1.5px; background: var(--brick);
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px;
}
.lang a {
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; text-decoration: none; color: var(--ink-3);
}
.lang a[aria-current="true"] { background: var(--ink); color: var(--white); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 22px; height: 1.8px; background: var(--ink); border-radius: 2px;
  position: relative; transition: background .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.8px;
  background: var(--ink); border-radius: 2px; transition: transform .28s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,13,.62) 0%, rgba(20,16,13,.42) 42%, rgba(20,16,13,.80) 100%);
}
.hero__inner {
  min-height: clamp(560px, 82vh, 820px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(4rem, 9vw, 7rem);
  color: rgba(255,255,255,.9);
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero__lead { font-size: var(--fs-md); max-width: 52ch; margin-top: var(--sp-5); color: rgba(255,255,255,.86); }

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  align-self: flex-start;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs); font-weight: 500; color: #fff;
  margin-bottom: var(--sp-5);
}
.stars { color: var(--gold); letter-spacing: 1px; }

/* --- Barra prenotazione --- */
.booking {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: rgba(255,255,255,.97);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr)) auto;
  gap: var(--sp-4);
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font-size: var(--fs-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brick);
  box-shadow: 0 0 0 3px var(--brick-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }

/* --- Strip vantaggi --- */
.strip { background: var(--dark); color: rgba(255,255,255,.82); }
.strip__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6);
  padding-block: var(--sp-5); list-style: none; padding-inline: 0;
  font-size: var(--fs-sm);
}
.strip__list li { display: flex; align-items: center; gap: var(--sp-2); }
.strip__list svg { flex: none; color: var(--gold); }

/* --- Griglie --- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--media-right .split__media { order: 2; }

.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--sh-2); width: 100%; }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.split__media--stack img:first-child { margin-top: var(--sp-7); }

/* --- Card camera --- */
.room {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.room:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.room__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand-2); }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room:hover .room__media img { transform: scale(1.05); }
.room__tag {
  position: absolute; top: var(--sp-4); left: var(--sp-4);
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: var(--r-pill);
}
.room__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.room__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  list-style: none; padding: 0; margin: 0;
}
.room__meta li {
  font-size: var(--fs-xs); color: var(--ink-2);
  background: var(--sand); border-radius: var(--r-pill); padding: 4px 11px;
}
.room__foot {
  margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.price { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--ink); }
.price small { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }

/* --- Card servizio --- */
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.svc:hover { border-color: var(--brick); transform: translateY(-3px); box-shadow: var(--sh-1); }
.svc__icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--brick-soft); color: var(--brick);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.svc h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.svc p { font-size: var(--fs-sm); }

/* --- Statistiche --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; }
.stat__n {
  font-family: var(--font-display); font-size: var(--fs-xl); color: var(--white); line-height: 1;
}
.stat__l { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: var(--sp-2); }

/* --- Recensioni --- */
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4);
}
.quote blockquote { font-family: var(--font-display); font-size: var(--fs-md); color: var(--ink); line-height: 1.45; }
.quote figcaption { font-size: var(--fs-sm); color: var(--ink-3); margin-top: auto; }
.quote figcaption b { color: var(--ink); font-weight: 600; }

/* --- Galleria --- */
/* galleria: vedi sezione 11 */

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,12,10,.94);
  display: none; align-items: center; justify-content: center;
  padding: var(--sp-5);
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--r-md); object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1; transition: background .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__nav--prev { left: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: var(--sp-6); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: var(--fs-sm); }

/* --- Mappa / posizione --- */
.map-frame {
  border: 0; width: 100%; height: 100%; min-height: 380px;
  border-radius: var(--r-lg); box-shadow: var(--sh-1); filter: saturate(.9);
}
.poi { list-style: none; padding: 0; margin: 0; }
.poi li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-3) 0; border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
}
.poi li:last-child { border-bottom: 0; }
.poi b { color: var(--ink); font-weight: 500; }
.poi span { color: var(--brick); font-weight: 600; white-space: nowrap; }

/* --- FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--sp-5) var(--sp-8) var(--sp-5) 0; position: relative;
  font-family: var(--font-display); font-size: var(--fs-md); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: var(--sp-3); top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; color: var(--brick); font-weight: 300;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: var(--sp-5); max-width: 70ch; }

/* --- CTA finale --- */
.cta {
  background: var(--dark); color: rgba(255,255,255,.8);
  border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(180,85,45,.35), transparent 68%);
  pointer-events: none;
}
.cta h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 56ch; margin: var(--sp-4) auto 0; }
.cta .btn-row { justify-content: center; margin-top: var(--sp-6); }

/* --- Footer --- */
.footer { background: var(--dark); color: rgba(255,255,255,.62); padding-block: var(--sp-8) var(--sp-5); font-size: var(--fs-sm); }
.footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.footer h4 {
  color: var(--white); font-family: var(--font-body); font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--sp-4); font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer__about { max-width: 34ch; margin-top: var(--sp-4); }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: rgba(255,255,255,.45);
}
.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; color: rgba(255,255,255,.8);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.social a:hover { background: var(--brick); border-color: var(--brick); color: #fff; }

/* --- WhatsApp flottante --- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-2); transition: transform .2s var(--ease);
}
.wa:hover { transform: scale(1.08); color: #fff; }

/* --- Page header (pagine interne) --- */
.page-hero {
  position: relative; isolation: isolate; color: #fff;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 5.5rem);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,13,.68), rgba(20,16,13,.55));
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.82); font-size: var(--fs-md); max-width: 58ch; margin-top: var(--sp-4); }
.crumbs { font-size: var(--fs-xs); color: rgba(255,255,255,.62); margin-bottom: var(--sp-4); }
.crumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* --- Blocco info contatti --- */
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); display: grid; gap: var(--sp-5);
}
.info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-item svg { flex: none; color: var(--brick); margin-top: 3px; }
.info-item b { display: block; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.info-item a, .info-item span { font-size: var(--fs-sm); }

.note {
  background: var(--brick-soft); border-left: 3px solid var(--brick);
  border-radius: var(--r-sm); padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm); color: var(--ink-2);
}

/* --- Contenuto testuale (privacy, cookie) --- */
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p, .prose ul { margin-bottom: var(--sp-4); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: var(--sp-2); }

/* 6) UTILITY -------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.lead { font-size: var(--fs-md); }
.muted { color: var(--ink-3); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 7) RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .booking { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .booking .btn { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: var(--sp-4) 1.25rem var(--sp-6);
    box-shadow: var(--sh-2);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: var(--sp-4) var(--sp-2); font-size: var(--fs-md); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--wrap)); }
  .booking { grid-template-columns: 1fr; padding: var(--sp-4); }
  .booking .btn { grid-column: auto; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split__media--stack { grid-template-columns: 1fr; }
  .split__media--stack img:first-child { margin-top: 0; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.15rem; }
  .lang { display: none; }
}

/* 8) MOTION / A11Y -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .wa, .booking, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   9) COMPONENTI AGGIUNTIVI (brand B&B Easy)
   ========================================================================== */

/* Hero centrato, come il sito attuale */
.hero__inner { align-items: center; text-align: center; }
.hero h1 { max-width: none; font-weight: 600; letter-spacing: -.03em; }
.hero__lead { margin-inline: auto; }
.hero__actions { justify-content: center; margin-top: var(--sp-6); }

/* Valutazioni sui portali */
.ratings { background: var(--white); border-bottom: 1px solid var(--line); }
.ratings__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-4) clamp(1.5rem, 5vw, 4rem);
}
.ratings__list li {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding-right: clamp(1.5rem, 5vw, 4rem);
  border-right: 1px solid var(--line);
}
.ratings__list li:last-child { border-right: 0; padding-right: 0; }
.ratings__list b {
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2);
  letter-spacing: -.01em;
}
.ratings__list span { font-weight: 700; font-size: var(--fs-md); color: var(--brick); }
.ratings__list i { font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }

/* Striscia dei servizi in camera — loghi ufficiali su fondo chiaro,
   così ogni marchio resta nei propri colori originali */
.partners {
  background: var(--sand);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
}
.partners__label {
  text-align: center; font-size: var(--fs-xs); letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-5);
}
.partners__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-5) clamp(2rem, 6vw, 4.5rem);
}
.partners__list li { display: flex; align-items: center; }
.partners__list img {
  width: auto; display: block;
  transition: transform .25s var(--ease);
}
.partners__list li:hover img { transform: scale(1.06); }
.partners__text {
  font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; color: var(--ink);
}
@media (max-width: 620px) {
  .partners__list { gap: var(--sp-5) var(--sp-6); }
  .partners__list img { height: 26px !important; }
  .partners__text { font-size: 1.2rem; }
}

/* Card servizio grande */
.svc--lg { padding: var(--sp-6); }
.svc--lg .svc__icon { width: 54px; height: 54px; }
.svc--lg h3 { font-size: var(--fs-lg); }
.svc--lg p { font-size: var(--fs-base); }

/* Checkbox del form */
.checkbox {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--ink-2); line-height: 1.5;
}
.checkbox input { width: auto; margin-top: 3px; accent-color: var(--brick); flex: none; }

/* Il footer della card camera ora ospita un bottone a piena larghezza */
.room__foot { display: block; }

/* Titoli rossi centrati come nel sito attuale */
.section-head--center .h-red { margin-bottom: var(--sp-2); }

/* valutazioni su mobile: vedi sezione 11 */



/* ==========================================================================
   10) PRENOTA SEMPRE VISIBILE + SWITCH DI LINGUA
   ========================================================================== */

/* --- Il tasto Prenota non sparisce mai: header a ogni larghezza ---------- */
.btn--book { white-space: nowrap; }

/* --- Switch di lingua con bandiere --------------------------------------- */
.lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px; background: var(--white);
}
.lang__on, .lang__alt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .03em;
  text-decoration: none; line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang__on  { background: var(--ink); color: var(--white); cursor: default; }
.lang__alt { color: var(--ink-3); }
.lang__alt:hover { background: var(--sand); color: var(--ink); }
.lang svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.lang b { font-weight: 600; }

.nav__lang { display: none; }

/* --- Barra d'azione fissa (mobile): Prenota sempre a portata di pollice --- */
.actionbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(27,23,19,.08);
}
.actionbar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
}
.actionbar__wa {
  flex: 0 0 auto; padding-inline: var(--sp-5);
  background: #25D366; color: #fff;
}
.actionbar__wa:hover { color: #fff; }
.actionbar__book { flex: 1; background: var(--brick); color: #fff; }
.actionbar__book:hover { color: #fff; }

@media (max-width: 860px) {
  /* il bottone resta nell'header, il menu mostra lo switch lingua */
  .header__actions .lang { display: none; }
  .nav__lang { display: flex; justify-content: center; padding-top: var(--sp-5); }
  .nav__lang .lang { background: transparent; }

  .actionbar { display: flex; }
  .wa { display: none; }                    /* sostituito dalla barra */
  body { padding-bottom: 84px; }            /* spazio per la barra */
  .footer { padding-bottom: var(--sp-6); }
}

@media (max-width: 420px) {
  .btn--book { padding: 0.75em 1.05em; font-size: var(--fs-xs); }
  .header__inner { gap: var(--sp-3); }
  .brand__logo { height: 34px; }
  .actionbar__wa { padding-inline: var(--sp-4); }
  .actionbar__wa span { display: none; }
}

/* ==========================================================================
   11) GALLERIA A MOSAICO · VALUTAZIONI SCORREVOLI · HERO SU MOBILE
   ========================================================================== */

/* --- 11.1 Galleria: griglia regolare, calma e ordinata ----------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}

.gallery__item {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--sand-2);
  padding: 0; border: 0; width: 100%;
  cursor: zoom-in;
  isolation: isolate;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.gallery__item:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }

.gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

/* velo e didascalia solo al passaggio del mouse: a riposo si vedono le foto */
.gallery__item::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(20,16,13,.76) 0%, rgba(20,16,13,.12) 45%, transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }

.gallery__cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 1rem 0.9rem;
  text-align: left; color: #fff;
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

.gallery__zoom {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.85);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  box-shadow: 0 2px 10px rgba(27,23,19,.18);
}
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* su telefono niente didascalie fisse: la foto parla da sola,
     il testo compare nel lightbox quando si apre l'immagine */
  .gallery__cap, .gallery__zoom { display: none; }
  .gallery__item::after { display: none; }
  .gallery__item { border-radius: 11px; }
  .gallery__item:hover { transform: none; box-shadow: none; }
}

/* --- 11.2 Valutazioni: carosello orizzontale su mobile ------------------ */
@media (max-width: 760px) {
  .ratings .wrap { width: 100%; }
  .ratings__list {
    flex-direction: row; flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 2px 1.25rem;
    /* sfumatura ai bordi: si capisce che c'è altro di lato */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }
  .ratings__list::-webkit-scrollbar { display: none; }
  .ratings__list li {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-right: 1px solid var(--line);
    padding-right: 1.1rem; margin-right: 1.1rem;
    white-space: nowrap;
  }
  .ratings__list li:last-child {
    border-right: 0; margin-right: 0; padding-right: 1.25rem;
  }
}

/* --- 11.3 Hero su mobile: i due tasti struttura affiancati ------------- */
.hero__actions--book { margin-top: .85rem; }

@media (max-width: 680px) {
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
  .hero__actions .btn {
    width: 100%;
    padding: 0.95em 0.5em;
    font-size: .875rem;
    line-height: 1.15;
    white-space: normal;           /* "B&B Easy Apartment" può andare a capo */
    text-wrap: balance;
    min-height: 54px;
  }
  /* la riga del Prenota ora resta piena larghezza */
  .hero__actions--book { grid-template-columns: 1fr; }
  .hero__actions--book .btn { font-size: 1rem; min-height: 56px; }
}

@media (max-width: 380px) {
  .hero__actions .btn { font-size: .8rem; padding-inline: .35em; }
}
