/* ==========================================================================
   Opera et Love — foglio di stile
   Scritto mobile-first: le regole base valgono per il telefono, i @media
   aggiungono ciò che serve su schermi più larghi.
   ========================================================================== */

/* --- 1. Variabili di progetto -------------------------------------------- */
:root {
  /* Colori: il bordeaux del sipario, l'oro delle cornici, la carta dei libretti */
  --wine:        #7a1f2b;
  --wine-dark:   #5c1620;
  --wine-soft:   #a4444f;
  --gold:        #c0982f;
  --gold-light:  #e3cd91;
  --cream:       #faf7f2;
  --sand:        #f4ede3;
  --ink:         #2a2320;
  --ink-soft:    #4d423c;
  --muted:       #7d7169;
  --line:        #e6dcd0;
  --white:       #fff;
  --ok:          #2f6b45;
  --err:         #b3261e;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(42,35,32,.05), 0 8px 24px rgba(42,35,32,.07);
  --shadow-lg: 0 4px 12px rgba(42,35,32,.08), 0 24px 60px rgba(42,35,32,.14);

  --wrap:      1180px;
  --header-h:  68px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* --- 2. Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Compensa l'header fisso quando si salta a un'ancora */
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  /* Spazio per la barra azioni fissa su mobile */
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--wine); text-decoration-color: color-mix(in srgb, var(--wine) 35%, transparent);
    text-underline-offset: .18em; transition: color .18s var(--ease); }
a:hover { color: var(--wine-dark); }

ul, ol { padding-left: 1.15em; }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; translate: -50% -150%;
  z-index: 200; background: var(--wine); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: translate .2s var(--ease);
}
.skip-link:focus { translate: -50% 0; color: #fff; }

/* Campo trappola per i bot: invisibile ma non "display:none",
   che alcuni bot riconoscono e saltano. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 3. Elementi comuni --------------------------------------------------- */
.btn {
  --btn-bg: var(--wine); --btn-fg: #fff; --btn-bd: var(--wine);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 500;
  letter-spacing: .01em; line-height: 1;
  padding: .95em 1.6em;
  border: 1.5px solid var(--btn-bd); border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(122,31,43,.22); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--gold  { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #2a2320; }
.btn--gold:hover { box-shadow: 0 8px 22px rgba(192,152,47,.32); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--wine); --btn-bd: currentColor; }
.btn--ghost:hover { --btn-bg: var(--wine); --btn-fg: #fff; }
.btn--light { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.65); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--wine); }
.btn--block { width: 100%; }
.btn--lg { font-size: 1.02rem; padding: 1.05em 2em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ''; width: 2rem; height: 1px; background: currentColor; opacity: .7;
}
.eyebrow--center::after {
  content: ''; width: 2rem; height: 1px; background: currentColor; opacity: .7;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--dark  { background: var(--wine-dark); color: #f3e6d8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--gold-light); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.section--dark .section-head p { color: #ddc9b8; }
/* .lead ha un colore scuro pensato per il fondo chiaro: sul bordeaux
   risulterebbe illeggibile, quindi va riportato su una tinta chiara. */
.section--dark .lead,
.section--dark p { color: #ead9c9; }
.section--dark .form-note { color: #cdb7a5; }

.lead { font-size: clamp(1.06rem, 2.2vw, 1.22rem); color: var(--ink-soft); }

/* --- 4. Barra contatti + header ------------------------------------------ */
.topbar {
  background: var(--wine-dark);
  color: #eddcc6;
  font-size: .82rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); text-decoration: underline; }
.topbar__contacts, .topbar__social { margin: 0; display: flex; align-items: center; gap: .55rem; }
.topbar .sep { opacity: .45; }
.topbar__social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.topbar__social a:hover { background: rgba(255,255,255,.1); }
.topbar__social svg { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .topbar__contacts { font-size: .78rem; }
  .topbar__contacts a:nth-child(3) { display: none; } /* l'email resta nel footer */
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(42,35,32,.09); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: var(--wine); color: var(--gold-light);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font-family: var(--font-display); font-size: 1.42rem; font-weight: 600;
  color: var(--wine); letter-spacing: .01em;
}
.brand__tag {
  font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 400px) { .brand__tag { display: none; } }

.burger {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); cursor: pointer;
}
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__line, .burger__box::before, .burger__box::after {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger__box::before { content: ''; top: 0; }
.burger__line { top: 6px; }
.burger__box::after { content: ''; bottom: 0; }
.burger[aria-expanded="true"] .burger__box::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line { opacity: 0; }
.burger[aria-expanded="true"] .burger__box::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu: pannello a scomparsa su mobile, riga orizzontale da 900px */
.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
  overflow: hidden;
}
.nav.is-open { grid-template-rows: 1fr; }
.nav__list {
  list-style: none; margin: 0; padding: 0; min-height: 0;
  overflow: hidden;
}
.nav.is-open .nav__list { padding: .5rem 0 1.1rem; }
.nav__link {
  display: block; padding: .85rem clamp(1.2rem, 5vw, 2rem);
  font-size: 1.02rem; text-decoration: none; color: var(--ink);
  border-left: 3px solid transparent;
}
.nav__link:hover { background: var(--cream); }
.nav__link.is-active { border-left-color: var(--gold); color: var(--wine); font-weight: 500; }
.nav__cta-wrap { padding: .7rem clamp(1.2rem, 5vw, 2rem) 0; }
.nav__cta { width: 100%; }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav {
    position: static; display: block; background: none; border: 0; box-shadow: none;
    overflow: visible;
  }
  .nav__list { display: flex; align-items: center; gap: .3rem; padding: 0 !important; overflow: visible; }
  .nav__link {
    padding: .5rem .85rem; border-left: 0; border-radius: 8px;
    font-size: .95rem; position: relative;
  }
  .nav__link.is-active { background: none; }
  .nav__link.is-active::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .1rem;
    height: 2px; background: var(--gold); border-radius: 2px;
  }
  .nav__cta-wrap { padding: 0 0 0 .8rem; }
  .nav__cta { width: auto; padding: .72em 1.4em; }
}

/* --- 5. Messaggi flash ---------------------------------------------------- */
.flash { padding: .95rem 0; font-size: .95rem; }
.flash--success { background: #e8f3ec; color: #235238; border-bottom: 1px solid #cfe6d9; }
.flash--error   { background: #fdeceb; color: #8a1d16; border-bottom: 1px solid #f6d5d2; }

/* --- 6. Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88svh, 760px);
  display: grid; align-items: end;
  color: #fff;
  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(to top, rgba(30,12,15,.92) 0%, rgba(30,12,15,.55) 38%, rgba(30,12,15,.22) 70%, rgba(30,12,15,.45) 100%);
}
.hero__inner { padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero__eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; margin-bottom: .35em; max-width: 15ch; }
.hero__sub {
  font-size: clamp(1.02rem, 2.4vw, 1.28rem); color: #f0e2d4;
  max-width: 46ch; margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 2rem 0 0;
  padding: 0; list-style: none;
  font-size: .88rem; color: #e9d9c9;
}
.hero__badges li { display: flex; align-items: center; gap: .5rem; }
.hero__badges svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }

/* --- 7. Barra di ricerca disponibilità ------------------------------------ */
.bookbar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
  display: grid; gap: .9rem;
}
.bookbar--float { position: relative; z-index: 5; margin-top: -3.2rem; }
.bookbar__title {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0;
}
.bookbar__fields { display: grid; gap: .9rem; }
@media (min-width: 720px) {
  .bookbar { padding: 1.4rem 1.6rem; }
  .bookbar__fields { grid-template-columns: 1fr 1fr auto auto; align-items: end; gap: 1.1rem; }
}

/* --- 8. Moduli ------------------------------------------------------------ */
.field { display: grid; gap: .4rem; }
.field > label, .form-label {
  font-size: .82rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .01em;
}
.field .req { color: var(--wine); }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], input[type=password], select, textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; padding: .78rem .9rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  /* 16px minimo: sotto questa misura iOS zooma automaticamente sul focus */
  min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d7169' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px;
  padding-right: 2.4rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}
input::placeholder, textarea::placeholder { color: #a99e95; }

.field--error input, .field--error select, .field--error textarea { border-color: var(--err); }
.field__error { font-size: .82rem; color: var(--err); }

.checkbox {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .9rem; color: var(--ink-soft); line-height: 1.5;
}
.checkbox input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: .12rem; accent-color: var(--wine); }

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 680px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }

fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
legend {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  color: var(--wine); padding: 0; margin-bottom: .9rem;
}

.form-note { font-size: .85rem; color: var(--muted); }

/* --- 9. Camere ------------------------------------------------------------ */
.rooms-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); }
@media (min-width: 780px)  { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }

.room-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.room-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.room-card:hover .room-card__media img { scale: 1.05; }
.room-card__accent {
  position: absolute; inset: auto 0 0 0; height: 4px;
  background: var(--accent, var(--gold));
}
.room-card__tag {
  position: absolute; top: .9rem; left: .9rem;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .7rem; border-radius: 100px;
}
.room-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.room-card__opera { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 .35rem; }
.room-card h3 { margin-bottom: .3rem; }
.room-card h3 a { text-decoration: none; color: inherit; }
.room-card h3 a:hover { color: var(--wine); }
.room-card__tagline { font-family: var(--font-display); font-size: 1.15rem; color: var(--wine-soft); margin: 0 0 .8rem; font-style: italic; }
.room-card__text { color: var(--muted); font-size: .96rem; margin-bottom: 1.1rem; }
.room-card__meta {
  display: flex; flex-wrap: wrap; gap: .5rem .95rem; margin: 0 0 1.3rem;
  padding: 0; list-style: none; font-size: .86rem; color: var(--ink-soft);
}
.room-card__meta li { display: flex; align-items: center; gap: .38rem; }
.room-card__meta svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.room-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }

.room-card--busy { opacity: .62; }
.room-card__busy {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(250,247,242,.72); backdrop-filter: blur(1px);
  font-weight: 600; color: var(--wine-dark);
}

/* --- 10. Pagina camera ---------------------------------------------------- */
.room-hero { position: relative; color: #fff; isolation: isolate; }
.room-hero__media { position: absolute; inset: 0; z-index: -2; }
.room-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.room-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(30,12,15,.9), rgba(30,12,15,.35) 60%, rgba(30,12,15,.5));
}
.room-hero__inner { padding: clamp(4rem, 12vw, 8rem) 0 clamp(2rem, 5vw, 3rem); }
.room-hero h1 { color: #fff; margin-bottom: .2em; }
.room-hero__tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem,3vw,1.7rem); color: var(--gold-light); }

.room-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 940px) {
  .room-layout { grid-template-columns: minmax(0,1.6fr) minmax(300px,.9fr); align-items: start; }
}
.room-body p { font-size: 1.05rem; color: var(--ink-soft); }

.room-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0 0 2rem;
  padding: 0; list-style: none;
}
.room-facts li { background: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .7rem; }
.room-facts svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.room-facts b { display: block; font-size: .95rem; font-weight: 600; }
.room-facts span { font-size: .8rem; color: var(--muted); }

.romantic-box {
  background: linear-gradient(135deg, #fdf6ee, #f9ece0);
  border: 1px solid var(--gold-light); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem); margin: 2rem 0;
  position: relative;
}
.romantic-box h3 { display: flex; align-items: center; gap: .6rem; color: var(--wine); margin-bottom: .5rem; }
.romantic-box h3 svg { width: 24px; height: 24px; color: var(--wine-soft); }
.romantic-box p { margin-bottom: 0; color: var(--ink-soft); }

.amenity-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem 1.2rem; padding: 0; margin: 0; list-style: none;
}
.amenity-list li { display: flex; align-items: center; gap: .55rem; font-size: .93rem; color: var(--ink-soft); }
.amenity-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.sticky-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
@media (min-width: 940px) { .sticky-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.sticky-card h3 { margin-bottom: .3rem; }
.sticky-card__price { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.sticky-card .btn { margin-bottom: .6rem; }
.sticky-card__contact { font-size: .88rem; color: var(--muted); margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.sticky-card__contact a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }

/* --- 11. Galleria e lightbox ---------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font: inherit; font-size: .88rem; padding: .5rem 1.05rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: 100px;
  color: var(--ink-soft); cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }

.gallery-grid {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .9rem; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative; display: block; padding: 0; border: 0; background: var(--sand);
  aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.gallery-item:hover img { scale: 1.07; }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,12,15,.5), transparent 45%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item__cap {
  position: absolute; left: .7rem; right: .7rem; bottom: .6rem; z-index: 1;
  color: #fff; font-size: .78rem; text-align: left;
  opacity: 0; translate: 0 6px; transition: all .25s var(--ease);
}
.gallery-item:hover .gallery-item__cap { opacity: 1; translate: 0; }
.gallery-item.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(20,10,12,.96);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; color: #e8d9c9; font-size: .85rem; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 .6rem; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__cap { padding: .9rem 1.2rem; color: #d9c8b8; font-size: .9rem; text-align: center; }
.lb-btn {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  transition: background-color .18s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn svg { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; display: flex; }
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }

/* --- 12. Verona / posizione ----------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

.distances { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .1rem; }
.distances li {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.distances li:last-child { border-bottom: 0; }
.distances__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sand); color: var(--wine); flex: none; }
.section--dark .distances__icon { background: rgba(255,255,255,.12); color: var(--gold-light); }
.section--dark .distances li { border-color: rgba(255,255,255,.15); }
.distances b { display: block; font-weight: 500; }
.distances span { font-size: .87rem; color: var(--muted); }
.section--dark .distances span { color: #cbb6a5; }

.place-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.place-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.place-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.place-card p { padding: 1rem 1.1rem; margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* Mappa caricata su richiesta: nessuna connessione a terzi senza consenso */
.map-consent {
  display: grid; place-items: center; gap: 1rem; text-align: center;
  min-height: 300px; padding: 2rem;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23e0d4c4' stroke-width='1'/%3E%3C/svg%3E");
  border-radius: var(--radius); border: 1px solid var(--line);
}
.map-consent p { max-width: 34ch; margin: 0; color: var(--muted); font-size: .92rem; }
.map-frame { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius); }

/* --- 13. Servizi ---------------------------------------------------------- */
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; text-align: center;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: var(--gold); }
.feature__icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--sand); color: var(--wine);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature b { display: block; font-size: .98rem; }

/* --- 14. Call to action --------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.8rem; }

/* --- 15. Riepilogo prenotazione ------------------------------------------- */
.summary {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; margin: 0; }
.summary dt { color: var(--muted); font-size: .88rem; }
.summary dd { margin: 0; font-weight: 500; text-align: right; }

.code-badge {
  display: inline-block; font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 1.15rem; letter-spacing: .08em;
  background: var(--wine); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}

/* --- 16. Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--wine-dark); color: #e6d5c4;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  margin-bottom: 64px;  /* spazio per la barra azioni mobile */
}
@media (min-width: 700px) { .site-footer { margin-bottom: 0; } }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 620px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }

.site-footer a { color: #f0e2d4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-brand { font-family: var(--font-display); font-size: 1.7rem; color: #fff; margin: 0 0 .15rem; }
.footer-tag { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: .5rem; margin: 0; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); }
.footer-social a:hover { background: var(--gold); color: var(--wine-dark); }
.footer-social svg { width: 17px; height: 17px; }
.footer-title { font-family: var(--font-ui); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .93rem; }
.site-footer address { font-style: normal; font-size: .93rem; line-height: 1.8; }
.footer-checkin { font-size: .84rem; color: #c9b3a2; margin: 1rem 0 0; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .78rem; color: #bda695;
}
.footer-legal p { margin: 0; }

/* --- 17. Barra azioni mobile ---------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 700px) { .mobile-bar { display: none; } }
.mobile-bar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  padding: .6rem .3rem; min-height: 60px;
  font-size: .72rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.mobile-bar__item svg { width: 21px; height: 21px; }
.mobile-bar__item--cta { background: var(--wine); color: #fff; }
.mobile-bar__item:active { background: var(--sand); }
.mobile-bar__item--cta:active { background: var(--wine-dark); }

/* --- 18. Pagine di testo -------------------------------------------------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; font-family: var(--font-ui); font-weight: 600; }
.prose li { margin-bottom: .4rem; }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: var(--cream); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 52ch; margin-bottom: 0; }

/* --- 19. Animazione d'ingresso -------------------------------------------- */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.reveal.is-visible { opacity: 1; translate: 0; }

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

/* --- 20. Stampa ----------------------------------------------------------- */
@media print {
  .topbar, .site-header, .mobile-bar, .hero__actions, .site-footer, .bookbar { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* --- 21. Scelta della camera nel modulo di prenotazione ------------------- */
.room-choice { display: grid; gap: .7rem; }
@media (min-width: 620px) { .room-choice { grid-template-columns: 1fr 1fr; } }

.room-option {
  display: grid; grid-template-columns: 78px 1fr; gap: .9rem; align-items: center;
  padding: .7rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  position: relative;
}
.room-option:hover { border-color: var(--gold); }
/* Il radio resta accessibile da tastiera ma non è mostrato: la scheda intera
   funziona da pulsante, molto più comodo da toccare sul telefono. */
.room-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.room-option:has(input:checked) {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine) 16%, transparent);
}
.room-option:has(input:focus-visible) { outline: 2.5px solid var(--gold); outline-offset: 2px; }

.room-option__img { display: block; border-radius: 7px; overflow: hidden; background: var(--sand); }
.room-option__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.room-option__img--all { display: grid; place-items: center; aspect-ratio: 4/3; color: var(--wine); }
.room-option__img--all svg { width: 28px; height: 28px; }

.room-option__text { display: grid; gap: .12rem; font-size: .9rem; line-height: 1.45; }
.room-option__text b { font-size: 1rem; }
.room-option__text > span { color: var(--muted); }
.room-option__meta { font-size: .8rem; }
.room-option__busy { color: var(--err); font-weight: 500; font-size: .82rem; }

.room-option.is-busy { opacity: .55; cursor: not-allowed; background: var(--cream); }
.room-option.is-busy:hover { border-color: var(--line); }

[data-availability-status] { font-weight: 500; color: var(--ok); }
[data-availability-status].is-empty { color: var(--err); }

.checkbox.field--error { color: var(--err); }
.checkbox.field--error input { outline: 2px solid var(--err); outline-offset: 2px; }
