/* ============================================================
   Marinella Guest House — style.css
   Design moderno, responsive, animazioni leggere
   ============================================================ */

:root {
  --c-ink: #123040;
  --c-text: #3d5566;
  --c-muted: #6c8496;
  --c-sky: #29a3dc;
  --c-sky-dark: #1e86b8;
  --c-amber: #f5a81c;
  --c-leaf: #8bc34a;
  --c-sun: #ffd54a;
  --c-bg: #f6fafc;
  --c-surface: #ffffff;
  --c-line: #e2edf3;
  --shadow-sm: 0 2px 10px rgba(18, 48, 64, .06);
  --shadow-md: 0 14px 40px rgba(18, 48, 64, .12);
  --shadow-lg: 0 30px 80px rgba(18, 48, 64, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--c-sky-dark); text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
iframe { border: 0; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.22em; flex: none; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--c-ink); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--c-text); }
.muted { color: var(--c-muted); }
.accent { color: var(--c-sun); font-style: italic; }

.eyebrow {
  display: inline-block;
  position: relative;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-sky-dark);
  margin-bottom: 1.3rem;
  padding-bottom: .55rem;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-sky), var(--c-amber), var(--c-leaf));
  border-radius: 2px;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(120deg, var(--c-sky), var(--c-sky-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(41, 163, 220, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(41, 163, 220, .45); }
.btn-outline { border: 1.5px solid var(--c-sky); color: var(--c-sky-dark); background: rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--c-sky); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-secondary { background: var(--c-ink); color: #fff; box-shadow: 0 10px 24px rgba(18, 48, 64, .3); }
.btn-secondary:hover { background: #1b4356; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(18, 48, 64, .38); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; }
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .site-nav ul a { text-shadow: 0 1px 10px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .45); }
.brand img { border-radius: 50%; width: 52px; height: 52px; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }
.brand-text em { display: block; font-size: .72rem; font-style: normal; font-family: var(--font-body); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav .btn { padding: .8rem 1.4rem; font-size: .9rem; }
.nav-cta-2 { display: none; }
@media (min-width: 1200px) { .nav-cta-2 { display: inline-flex; } }
.site-nav ul { display: flex; gap: 1.3rem; }
.site-nav ul a { color: #fff; font-size: .93rem; font-weight: 500; position: relative; padding: .3rem 0; }
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--c-sun);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav ul a:hover::after { transform: scaleX(1); }
.site-nav ul a.active { color: var(--c-sun); }
.site-header.scrolled .site-nav ul a.active { color: var(--c-sky-dark); }
.site-nav ul a.active::after { transform: scaleX(1); background: currentColor; }

.site-header.scrolled {
  height: 64px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled .brand { color: var(--c-ink); }
.site-header.scrolled .site-nav > ul a { color: var(--c-ink); }
.site-header.scrolled .nav-cta { box-shadow: 0 6px 18px rgba(41,163,220,.3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: .6rem;
  position: relative;
  z-index: 130;
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
}
.site-header.scrolled .nav-toggle,
.nav-open .nav-toggle { background: transparent; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.site-header.scrolled .nav-toggle span { background: var(--c-ink); }
.nav-open .nav-toggle span { background: var(--c-ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-slides { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 26, 36, .68) 0%, rgba(8, 26, 36, .4) 42%, rgba(8, 26, 36, .78) 100%),
    linear-gradient(90deg, rgba(8, 26, 36, .7) 0%, rgba(8, 26, 36, .3) 55%, rgba(8, 26, 36, .12) 100%),
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(8,26,36,.35) 100%);
}
.hero-content { padding-top: var(--header-h); }
.hero h1 { color: #fff; font-weight: 700; }
.hero h1, .hero-tagline, .hero-lead, .hero .eyebrow { text-shadow: -1px -1px 0 rgba(0, 0, 0, .5), 1px -1px 0 rgba(0, 0, 0, .5), -1px 1px 0 rgba(0, 0, 0, .5), 1px 1px 0 rgba(0, 0, 0, .5), 0 2px 14px rgba(0, 0, 0, .45); }
.hero .eyebrow { color: var(--c-sun); }
.hero .eyebrow::after { background: var(--c-sun); }
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: rgba(255,255,255,.92);
  margin-top: .4rem;
}
.hero-lead { max-width: 46ch; margin-top: 1.1rem; color: rgba(255,255,255,.88); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #fff;
  animation: bob 2.6s ease-in-out infinite;
  transition: background .3s;
}
.scroll-cue:hover { background: rgba(255,255,255,.18); }
.scroll-cue .icon { width: 1.1em; height: 1.1em; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(4.2rem, 9vw, 7rem) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, #fff 0%, #f0f7fb 100%); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.section-head .lead { margin-top: .8rem; }
.section-cta { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); }
#benvenuti .lead strong, #posizione strong { color: var(--c-ink); }
.section [id], section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Feature strip ---------- */
.feature-strip {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.feature-strip li {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 1.1rem .9rem;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-ink);
  display: grid;
  gap: .45rem;
  justify-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-strip li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-strip .icon { width: 1.7rem; height: 1.7rem; color: var(--c-sky); }

/* ---------- Camere ---------- */
.rooms { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }
.room-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.room-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.room-card:nth-child(even) .room-media { order: 2; }
.room-media { position: relative; overflow: hidden; min-height: 300px; }
.room-media > a { display: block; height: 100%; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.room-card:hover .room-media img { transform: scale(1.06); }
.room-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,.92);
  color: var(--c-ink);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.room-body { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1rem; }
.room-body p { color: var(--c-text); }
.room-features { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font-size: .87rem; font-weight: 600; color: var(--c-ink); }
.room-features li { display: inline-flex; align-items: center; gap: .45rem; }
.room-features .icon { width: 1.15em; height: 1.15em; color: var(--c-sky); }
.room-thumbs { display: flex; gap: .7rem; margin-top: auto; padding-top: .6rem; }
.room-thumbs .thumb { width: 92px; height: 68px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.room-thumbs .thumb:hover { transform: translateY(-3px) scale(1.04); }
.room-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.price-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; background: #f6fafc; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.price-table th, .price-table td { padding: .5rem .7rem; border-bottom: 1px dashed var(--c-line); }
.price-table thead th { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-sky-dark); text-align: center; }
.price-table tbody th { text-align: left; font-weight: 600; color: var(--c-text); }
.price-table td { text-align: right; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }

.breakfast-card {
  max-width: 780px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.breakfast-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(120deg, rgba(41,163,220,.10), rgba(139,195,74,.12));
  border-bottom: 1px solid var(--c-line);
}
.breakfast-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c-sky), var(--c-leaf));
  color: #fff;
  box-shadow: 0 8px 20px rgba(41, 163, 220, .35);
}
.breakfast-icon .icon { width: 1.7rem; height: 1.7rem; }
.breakfast-titles { flex: 1 1 auto; }
.breakfast-titles h3 { margin: 0 0 .15rem; font-size: 1.35rem; }
.breakfast-titles p { margin: 0; font-size: .92rem; color: var(--c-muted); }
.breakfast-badge {
  flex: 0 0 auto;
  background: var(--c-ink);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem .85rem;
  border-radius: 999px;
}
.breakfast-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1.4rem;
  padding: 1.3rem 1.5rem 1.5rem;
}
.breakfast-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .93rem; }
.breakfast-list .icon { width: 1.35rem; height: 1.35rem; color: var(--c-sky); margin-top: .12rem; }
.breakfast-list strong { color: var(--c-ink); }
@media (max-width: 640px) {
  .breakfast-head { flex-wrap: wrap; }
  .breakfast-badge { order: 3; }
  .breakfast-list { grid-template-columns: 1fr; }
}

/* ---------- Servizi ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.service, .contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service:hover, .contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(41,163,220,.35); }
.service h3, .contact-card h3 { margin: .9rem 0 .4rem; }
.service p, .contact-card p { font-size: .93rem; }
.service-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(41,163,220,.14), rgba(139,195,74,.16));
  color: var(--c-sky-dark);
}
.service-icon .icon { width: 1.6rem; height: 1.6rem; }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.g-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  display: block;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.g-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,30,42,.45));
  opacity: 0;
  transition: opacity .35s;
}
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }

/* ---------- Posizione ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.split-text { display: grid; gap: 1.1rem; justify-items: start; }
.check-list { display: grid; gap: .7rem; margin-top: .3rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; }
.check-list .icon { width: 1.3em; height: 1.3em; color: var(--c-leaf); margin-top: .18em; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
  aspect-ratio: 4 / 3;
  background: #dfeaf0;
}
.map-frame iframe { width: 100%; height: 100%; filter: saturate(.95); }

/* ---------- Contatti ---------- */
.contact-cards { text-align: center; }
.contact-card { display: grid; justify-items: center; gap: .2rem; }
.contact-card h3 { margin-top: 1rem; }
.contact-card p { font-weight: 600; color: var(--c-ink); font-size: 1rem; }

/* ---------- Tariffe ---------- */
.rate-box {
  max-width: 780px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.rate-box h3 { margin-bottom: 1.1rem; }
.rate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; text-align: left; }
.rate-card { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 1rem 1.15rem; background: #f7fbfd; }
.rate-card h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-sky-dark); margin: 0 0 .5rem; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .95rem; padding: .38rem 0; border-bottom: 1px dashed var(--c-line); }
.price-row:last-child { border-bottom: 0; }
.price-row b { color: var(--c-ink); font-size: 1.02rem; }
.rate-box .note { margin-top: 1rem; font-size: .86rem; color: var(--c-muted); }
@media (max-width: 720px) { .rate-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.82);
  padding: clamp(2.6rem, 6vw, 4rem) 0 6.5rem;
  font-size: .92rem;
}
.footer-inner { display: grid; gap: 1.8rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { border-radius: 50%; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.footer-brand p { margin-top: .2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: rgba(255,255,255,.82); transition: color .25s; }
.footer-nav a:hover { color: var(--c-sun); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.4rem; display: grid; gap: .3rem; }
.footer-legal .muted { color: rgba(255,255,255,.55); }

.footer-pay { display: grid; gap: .65rem; }
.footer-pay-title { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.pay-icons { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-icons li { line-height: 0; }
.pay-icons svg { height: 30px; width: auto; display: block; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand pay" "nav pay" "legal pay"; align-items: start; }
  .footer-brand { grid-area: brand; }
  .footer-nav { grid-area: nav; }
  .footer-legal { grid-area: legal; }
  .footer-pay { grid-area: pay; justify-self: end; text-align: right; }
  .pay-icons { justify-content: flex-end; }
}


/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(8, 22, 30, .94);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lb-figure { text-align: center; max-height: 100%; }
.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: scale(.96);
  transition: transform .35s var(--ease);
}
.lightbox-overlay.open .lb-figure img { transform: scale(1); }
.lb-figure figcaption { color: rgba(255,255,255,.85); margin-top: .9rem; font-size: .92rem; }
.lb-close, .lb-prev, .lb-next {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.1);
  transition: background .25s, transform .25s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); transform: scale(1.06); }
.lb-close { position: absolute; top: 1.1rem; right: 1.1rem; }
.lb-prev, .lb-next { position: relative; z-index: 2; }
.lb-close .icon, .lb-prev .icon, .lb-next .icon { width: 1.4rem; height: 1.4rem; }

/* ---------- To top + barra mobile ---------- */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 5.6rem;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .3s, color .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--c-sky); color: #fff; }

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  gap: .7rem;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 30px rgba(18,48,64,.12);
}
.mobile-bar .btn { flex: 1; justify-content: center; padding: .8rem 1rem; font-size: .9rem; }

/* ---------- Animazioni reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .room-card { grid-template-columns: 1fr; }
  .room-card:nth-child(even) .room-media { order: 0; }
  .room-media { min-height: 0; aspect-ratio: 16 / 10; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 120;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.4rem;
    padding: calc(var(--header-h) + 1.4rem) 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    overflow-y: auto;
  }
  .site-nav ul { flex-direction: column; align-items: center; gap: 1.3rem; margin-top: auto; margin-bottom: .8rem; }
  .site-nav ul a { color: var(--c-ink); font-size: 1.35rem; font-family: var(--font-display); text-shadow: none; }
  .site-nav ul a:hover, .site-nav ul a:active, .site-nav ul a.active { color: var(--c-sky-dark); }
  .site-nav .btn { min-width: min(78vw, 320px); justify-content: center; }
  .nav-open .site-nav { transform: none; }
  .nav-open .brand { color: var(--c-ink); }
  .nav-toggle { display: flex; }
  .nav-cta-2 { display: inline-flex; }
  .site-nav > .btn:last-child { margin-bottom: auto; }
  .nav-open { overflow: hidden; }
  .site-header.scrolled .site-nav ul a { color: var(--c-ink); }

  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .to-top { bottom: 6.4rem; }
  .hero { min-height: 92svh; }
  .lb-prev, .lb-next { width: 42px; height: 42px; }
}

/* ---------- Accessibilità / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide.is-active { animation: none; }
  .scroll-cue { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 3px; border-radius: 6px; }


/* ---------- Schermi molto stretti ---------- */
@media (max-width: 400px) {
  .brand-text { font-size: 1.12rem; }
  .brand-text em { font-size: .58rem; letter-spacing: .18em; }
  .brand img { width: 44px; height: 44px; }
}


/* ---------- Header desktop compatto (GH) ---------- */
@media (min-width: 1200px) and (max-width: 1400px) {
  .site-nav ul { gap: 1.05rem; }
  .site-nav .btn { padding: .75rem 1.15rem; font-size: .87rem; }
}
