/* =====================================================================
   Locanda Gaia — stylesheet
   Palette costiera: teal Adriatico, sabbia calda, ottone, salvia.
   ===================================================================== */

:root {
  --sea-deep: #1a2e61;   /* navy del logo B&B Gaia */
  --sea: #2a3f7d;
  --sea-bright: #3b56a6;
  --sage: #9fb0d0;
  --sage-soft: #e1e7f5;
  --sand: #f7f3e9;       /* crema del logo */
  --cream: #fffdf9;
  --gold: #c19a4e;
  --gold-soft: #e6d3a8;
  --ink: #1f2740;
  --ink-soft: #49506b;
  --muted: #7b819b;
  --line: #e6e0d2;
  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(18, 28, 66, 0.07);
  --shadow: 0 12px 34px rgba(18, 28, 66, 0.13);
  --shadow-lg: 0 26px 60px rgba(18, 28, 66, 0.20);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--sea-deep);
  letter-spacing: 0.2px;
}

::selection { background: var(--gold-soft); color: var(--sea-deep); }

/* ---- Layout helpers ------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--gold); display: inline-block; }
.eyebrow.is-center::after { content: ""; width: 28px; height: 1.5px; background: var(--gold); display: inline-block; }

.section-title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.section-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; }
.center .section-lead { margin-inline: auto; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  --b: var(--sea-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 50px; border: 1.5px solid var(--b);
  background: var(--b); color: #fff; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(-1px); }
.btn--gold { --b: var(--gold); background: var(--gold); border-color: var(--gold); }
.btn--ghost { background: transparent; color: var(--sea-deep); }
.btn--ghost:hover { background: var(--sea-deep); color: #fff; }
.btn--light { background: #fff; color: var(--sea-deep); border-color: #fff; }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--lg { padding: 17px 38px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--wa { --b: #25d366; background: #25d366; border-color: #25d366; color: #073b1e; }
.btn--wa:hover { background: #1fb855; border-color: #1fb855; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* =====================================================================
   Navbar
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s, height 0.4s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color 0.4s; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  border: 1.5px solid currentColor; font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; line-height: 1;
}
.brand__logo {
  width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain;
  border-radius: 0;
  transition: height 0.4s, width 0.4s;
}
.nav.is-solid .brand__logo { width: 44px; height: 44px; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.8; margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { color: #fff; font-weight: 600; font-size: 0.95rem; position: relative; transition: color 0.3s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__links .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18, 28, 66, 0.20); }

/* scrolled state */
.nav.is-solid { background: var(--cream); box-shadow: var(--shadow-sm); height: 68px; }
.nav.is-solid .brand,
.nav.is-solid .nav__links a:not(.btn) { color: var(--sea-deep); }
.nav.is-solid .nav__toggle span { background: var(--sea-deep); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 2.5px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 9.5px; }
.nav__toggle span:nth-child(3) { top: 19px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18) translateY(-2%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 100% at 0% 50%, rgba(10,18,45,0.62) 0%, rgba(10,18,45,0.30) 45%, rgba(10,18,45,0) 75%),
    linear-gradient(180deg, rgba(10,18,45,0.55) 0%, rgba(10,18,45,0.34) 40%, rgba(10,18,45,0.82) 100%);
}
.hero__content { max-width: 760px; padding-top: var(--nav-h); }
.hero__eyebrow { color: var(--gold-soft); border: 0; }
.hero__title { color: #fff; font-size: clamp(3rem, 8vw, 6rem); line-height: 0.98; margin-bottom: 22px; text-shadow: 0 2px 8px rgba(8,14,34,0.45), 0 6px 34px rgba(8,14,34,0.55); }
.hero__title em { font-style: italic; color: var(--gold-soft); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 50ch; color: rgba(255,255,255,0.92); margin-bottom: 36px; font-weight: 400; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- Stat / quick info bar ----------------------------------------- */
.quickbar { background: var(--sea-deep); color: #fff; }
.quickbar__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 26px 0; }
.quickbar__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 10px; position: relative; }
.quickbar__item:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,0.14); }
.quickbar__item svg { width: 26px; height: 26px; stroke: var(--gold-soft); }
.quickbar__item b { font-size: 1rem; font-weight: 700; }
.quickbar__item span { font-size: 0.82rem; color: rgba(255,255,255,0.72); }

/* =====================================================================
   Intro / Benvenuti
   ===================================================================== */
.intro__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.intro__badge {
  position: absolute; bottom: -28px; right: -22px; background: var(--cream);
  border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow); text-align: center;
  border: 1px solid var(--line);
}
.intro__badge b { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 1; display: block; }
.intro__badge span { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.05em; }
.intro__stars { color: var(--gold); letter-spacing: 2px; }
.lead-para { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 18px; }
.intro p { margin-bottom: 16px; color: var(--ink-soft); }
.sign { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--sea); margin-top: 8px; }

/* =====================================================================
   Rooms
   ===================================================================== */
.rooms__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.room-card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.room-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.room-card:hover .room-card__media img { transform: scale(1.08); }
.room-card__price {
  position: absolute; top: 14px; right: 14px; background: rgba(255,253,248,0.95);
  border-radius: 50px; padding: 7px 15px; font-weight: 700; color: var(--sea-deep); font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.room-card__price small { font-weight: 500; color: var(--muted); font-size: 0.72rem; }
.room-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.room-card__name { font-size: 1.55rem; margin-bottom: 6px; }
.room-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.room-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.room-card__desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.room-card__foot { display: flex; gap: 10px; }
.room-card__foot .btn { flex: 1; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  font-size: 0.76rem; color: var(--sea); background: var(--sage-soft);
  padding: 5px 12px; border-radius: 50px; font-weight: 600;
}

/* =====================================================================
   Gallery + Lightbox
   ===================================================================== */
/* Galleria "giustificata" (stile Google Foto): righe di altezza uniforme che
   riempiono tutta la larghezza. Le dimensioni di ogni figure sono calcolate
   via JS (layoutJustified in main.js): nessun ritaglio, orientamenti
   preservati (verticali verticali, orizzontali orizzontali), bordi dritti. */
.gallery {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.gallery figure { flex: 0 0 auto; height: 240px; margin: 0; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; position: relative; background: var(--sage-soft) center/cover no-repeat; }
.gallery figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s, opacity 0.7s var(--ease); }
/* blur-up: l'immagine entra in dissolvenza sopra il placeholder sfocato */
.gallery figure img.lqip { opacity: 0; }
.gallery figure img.loaded { opacity: 1; }
.gallery figure::after {
  content: "⤢"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.6rem; background: rgba(18,28,66,0.0); opacity: 0; transition: 0.4s;
}
.gallery figure:hover img { transform: scale(1.08); }
.gallery figure:hover::after { background: rgba(18,28,66,0.40); opacity: 1; }
/* foto extra: fuori dalla griglia, raggiungibili solo nel lightbox con le frecce */
.gallery figure.gallery__more { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,14,36,0.93);
  display: none; align-items: center; justify-content: center; padding: 30px;
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.12); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; display: grid; place-items: center;
  transition: background 0.3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 24px; }
.lightbox__nav.next { right: 24px; }
.lightbox__caption { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); max-width: 80vw; text-align: center; color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.lightbox__count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.65); font-size: 0.82rem; letter-spacing: 0.12em; }

/* =====================================================================
   Location / Il posto
   ===================================================================== */
.place { background: var(--cream); }
.place__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.place-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: var(--sand); }
.place-card__img { aspect-ratio: 16/10; overflow: hidden; }
.place-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.place-card:hover .place-card__img img { transform: scale(1.06); }
.place-card__body { padding: 22px 24px 26px; }
.place-card__body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.place-card__body p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 12px; }
.place-card__dist { font-size: 0.82rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }

.map-wrap { margin-top: 50px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(1.05); }

/* =====================================================================
   Amenities
   ===================================================================== */
.amen__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 46px; }
.amen-item {
  flex: 0 1 calc((100% - 3 * 18px) / 4); /* 4 per riga; l'ultima riga incompleta resta centrata */
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.amen-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.amen-item svg { width: 34px; height: 34px; stroke: var(--sea); color: var(--sea); margin-bottom: 14px; }
.amen-item b { display: block; font-size: 1.02rem; color: var(--sea-deep); margin-bottom: 4px; }
.amen-item span { font-size: 0.85rem; color: var(--muted); }

/* =====================================================================
   Reviews
   ===================================================================== */
.reviews { background: var(--sea-deep); color: #fff; }
.reviews .section-title, .reviews .eyebrow { color: #fff; }
.reviews .eyebrow { color: var(--gold-soft); }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 46px; }
.reviews__score { text-align: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 18px 30px; }
.reviews__score b { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--gold-soft); }
.reviews__score .stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.reviews__score span { font-size: 0.82rem; color: rgba(255,255,255,0.7); display: block; margin-top: 4px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 30px 28px; }
.review-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.review-card p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.45; color: rgba(255,255,255,0.95); margin-bottom: 18px; }
.review-card cite { font-style: normal; font-weight: 700; font-size: 0.92rem; }
.review-card cite span { display: block; font-weight: 400; font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* =====================================================================
   CTA band
   ===================================================================== */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,18,45,0.80), rgba(10,18,45,0.62)); }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.cta-band p { max-width: 52ch; margin: 0 auto 32px; color: rgba(255,255,255,0.9); font-size: 1.1rem; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: #101d40; color: rgba(255,255,255,0.78); padding: 70px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer p { font-size: 0.92rem; line-height: 1.7; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 0.94rem; transition: color 0.3s, padding 0.3s; }
.footer__links a:hover { color: var(--gold-soft); padding-left: 4px; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.94rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; stroke: var(--gold-soft); flex: 0 0 auto; margin-top: 3px; }
.footer__contact a:hover { color: var(--gold-soft); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* =====================================================================
   Scroll reveal
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
}

/* Animazioni più leggere e veloci su mobile (lo scroll è più rapido) */
@media (max-width: 768px) {
  .reveal { transform: translateY(18px); transition-duration: 0.5s; }
  .reveal[data-d="1"], .reveal[data-d="2"], .reveal[data-d="3"] { transition-delay: 0s; }
  .hero__bg img { animation-duration: 30s; } /* Ken Burns più lento e delicato su mobile */
}

/* Su dispositivi touch: niente effetti hover "appiccicati" dopo il tap */
@media (hover: none) {
  .btn:hover, .nav__links .btn:hover { transform: none; box-shadow: none; }
  .room-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .room-card:hover .room-card__media img { transform: none; }
  .rroom:hover { transform: none; box-shadow: none; }
  .gallery figure:hover img { transform: none; }
  .gallery figure:hover::after { opacity: 0; background: rgba(18,28,66,0); }
  .amen-item:hover { transform: none; box-shadow: none; border-color: var(--line); }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 0 40px;
    background: var(--cream); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform 0.45s var(--ease); z-index: 99;
  }
  body.menu-open .nav__links { transform: translateX(0); }
  .nav__links a:not(.btn) { color: var(--sea-deep) !important; font-size: 1.2rem; }
  .nav__links .btn { width: 100%; }
  .nav__toggle { display: block; z-index: 101; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { max-width: 460px; margin: 0 auto; }
  .intro__media img { aspect-ratio: 16/12; }
  .place__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .reviews__grid { grid-template-columns: 1fr; }
  .amen-item { flex-basis: calc((100% - 18px) / 2); }
  .quickbar__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .quickbar__item:nth-child(3)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery figure { height: 200px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .quickbar__grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .quickbar__item::after { display: none !important; }
  .quickbar__item:last-child:nth-child(odd) { grid-column: 1 / -1; } /* centra l'eventuale voce orfana */
  .amen-item { flex-basis: calc((100% - 18px) / 2); }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__cta .btn { flex: 1; }
  .intro__badge { right: 0; }

  /* Hero: contenuto allineato in alto, così non sborda sotto la navbar su schermi bassi */
  .hero { align-items: flex-start; }
  .hero__content { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 44px; }

  /* Galleria più compatta su smartphone */
  #galleria { padding-top: 46px; padding-bottom: 46px; }
  #galleria .center { margin-bottom: 4px; }
  .gallery { gap: 8px; margin-top: 28px !important; }
  .gallery figure { height: 150px; }

  /* Recensioni più compatte su smartphone */
  .reviews { padding-top: 50px; padding-bottom: 50px; }
  .reviews__head { margin-bottom: 26px; gap: 16px; }
  .reviews__score { padding: 14px 22px; }
  .reviews__score b { font-size: 2.4rem; }
  .reviews__grid { gap: 14px; }
  .review-card { padding: 22px 22px; }
  .review-card p { font-size: 1.08rem; line-height: 1.4; margin-bottom: 12px; }
  .review-card .stars { margin-bottom: 10px; }
}
