/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ============================================================
   Albergo Altamira — design system v1.0.0
   Tutti i valori di design sono centralizzati qui: nessun valore
   hard-coded nei componenti.
   ============================================================ */

:root {
  /* palette */
  --ink: #0F1E24;
  --ink-2: #4A5C63;
  --surface: #FFFFFF;
  --surface-2: #F1F5F5;
  --surface-3: #E7EDED;
  --primary: #0E7C86;
  --primary-hover: #0A616A;
  --primary-soft: #E3F1F2;
  --accent: #C8A24A;
  --border: #DCE4E5;
  --border-strong: #B9C9CB;
  --on-primary: #FFFFFF;
  --focus: #0E7C86;
  --focus-light: #FFD98A;
  --danger: #A32B1E;
  --danger-soft: #FBEDEA;
  --ok: #1C6B3E;
  --ok-soft: #E8F3EC;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-21: 1.3125rem;
  --fs-27: 1.6875rem;
  --fs-34: 2.125rem;
  --fs-44: 2.75rem;
  --fs-56: 3.5rem;
  --lh-tight: 1.15;
  --lh-body: 1.6;
  --measure: 68ch;

  /* spacing */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* shape */
  --r-sm: 2px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(15, 30, 36, .06);
  --sh-md: 0 8px 24px rgba(15, 30, 36, .10);
  --sh-lg: 0 18px 48px rgba(15, 30, 36, .18);

  /* motion */
  --t-fast: 160ms;
  --t-base: 220ms;
  --t-slow: 320ms;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* layout */
  --wrap: 1200px;
  --gutter: 20px;
  --head-h: 72px;
  --od-gap: 12px;
}

@media (min-width: 768px) { :root { --gutter: 32px; --head-h: 84px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-18);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, var(--fs-44)); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, var(--fs-34)); }
h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, var(--fs-27)); }
h4 { font-size: var(--fs-21); }

p { margin: 0 0 var(--s4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

ul, ol { margin: 0 0 var(--s4); padding-left: 1.15em; max-width: var(--measure); }
li { margin-bottom: var(--s2); }

strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s7) 0; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible, .lightbox :focus-visible { outline-color: var(--focus-light); }

.skip {
  position: absolute;
  left: var(--s4);
  top: -80px;
  z-index: 60;
  background: var(--ink);
  color: var(--surface);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip:focus { top: var(--s3); color: var(--surface); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); color: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: var(--s4) var(--s6); font-size: var(--fs-18); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  will-change: transform;
}
.head-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: var(--head-h);
}
.brand {
  display: flex;
  flex: 0 1 170px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { max-height: 132px; max-width: 100%; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: var(--s2) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-md);
  padding: var(--s4) var(--gutter) var(--s6);
  max-height: calc(100vh - var(--head-h));
  overflow-y: auto;
}
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.nav-list li { margin: 0; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--s2) 0;
  color: var(--ink);
  font-size: var(--fs-18);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-list a:hover { color: var(--primary); }
.nav-list a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.nav-list a[aria-current="page"]::after {
  content: ""; width: 6px; height: 6px; margin-left: var(--s2);
  border-radius: 50%; background: var(--primary);
}
.nav-cta { display: none; width: auto; }
.btn-preventivo-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7EC8E3;
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: var(--s2) var(--s4);
  font-weight: 700;
  font-size: var(--fs-14);
  min-height: 36px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: var(--s2);
}
.btn-preventivo-mobile:hover {
  background: #5BA3C4;
  color: var(--ink);
}
@media (max-width: 479px) {
  .nav-toggle { padding: var(--s2) var(--s3); }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .btn-preventivo-mobile { font-size: var(--fs-12); padding: var(--s2) var(--s3); min-height: 34px; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .btn-preventivo-mobile { display: none; }
  .site-nav {
    display: flex !important;
    position: static;
    align-items: center;
    gap: var(--s6);
    background: none; border: 0; box-shadow: none; padding: 0;
    max-height: none; overflow: visible;
  }
  .nav-list { display: flex; align-items: center; gap: var(--s6); margin: 0; }
  .nav-list li { margin: 0; }
  .nav-list a {
    min-height: 44px; padding: 0; font-size: var(--fs-16);
    border-bottom: 0; position: relative; white-space: nowrap;
  }
  .nav-list a[aria-current="page"]::after {
    position: absolute; left: 0; right: 0; bottom: 2px;
    width: auto; height: 2px; margin: 0; border-radius: 2px;
  }
  .nav-cta { width: auto; padding-inline: var(--s5); }
  .nav-list a.btn-preventivo {
    background: #7EC8E3;
    color: var(--ink);
    border: none;
    border-radius: var(--r-pill);
    padding: var(--s2) var(--s4);
    font-weight: 700;
    font-size: var(--fs-14);
    min-height: 36px;
    white-space: nowrap;
  }
  .nav-list a.btn-preventivo:hover {
    background: #5BA3C4;
    color: var(--ink);
  }
}
@media (min-width: 1024px) {
  .head-inner {
    justify-content: space-between;
    padding-left: var(--s7);
    padding-right: var(--s7);
    gap: 0;
  }
  .brand { flex: 0 1 auto; }
  .nav-cta { margin-left: auto; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .head-inner {
    padding-left: var(--s6);
    padding-right: var(--s6);
  }
  .brand img { max-height: 104px; }
  .nav-list { gap: var(--s4); }
}
@media (max-width: 1023px) {
  .nav-list a.btn-preventivo {
    background: #7EC8E3;
    color: var(--ink);
    border-radius: var(--r-pill);
    padding: var(--s2) var(--s4);
    font-weight: 700;
    font-size: var(--fs-16);
    min-height: 48px;
    white-space: nowrap;
    border-bottom: 0;
  }
  .nav-list a.btn-preventivo:hover {
    background: #5BA3C4;
    color: var(--ink);
  }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); }
.hero-media { position: relative; }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 22, 27, .82) 0%, rgba(9, 22, 27, .45) 45%, rgba(9, 22, 27, .15) 100%);
}
.hero-inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
}
.hero-copy { color: var(--surface); padding: var(--s7) 0; max-width: 760px; }
.hero-copy h1 { color: var(--surface); margin-bottom: var(--s3); }
.hero-copy p { color: rgba(255, 255, 255, .92); font-size: var(--fs-18); margin-bottom: var(--s5); }
.eyebrow {
  display: block;
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.hero-copy .btn-secondary { color: var(--surface); border-color: rgba(255, 255, 255, .7); }
.hero-copy .btn-secondary:hover { background: rgba(255, 255, 255, .14); color: var(--surface); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

@media (min-width: 768px) {
  .hero-inner { padding-bottom: var(--s8); }
}

/* ---------- hero slideshow ---------- */
.hero-slideshow { background: var(--ink); }
.hero-slides {
  position: relative;
  height: clamp(400px, 56vh, 660px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms var(--ease), visibility 0s linear 800ms;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 800ms var(--ease), visibility 0s;
}
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.15) saturate(1.06);
}
.hero-slide .hero-scrim { position: absolute; inset: 0; }
.hero-slide .hero-inner { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hero-slide .hero-copy {
  padding: var(--s7) 0 var(--s6);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease) 180ms, transform 700ms var(--ease) 180ms;
}
.hero-slide.is-active .hero-copy { opacity: 1; transform: none; }
.hero-slide h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, var(--fs-44));
  color: var(--surface);
  margin-bottom: var(--s3);
}

.hero-foot { background: var(--ink); }
.hero-foot .btn-secondary { color: var(--surface); border-color: rgba(255, 255, 255, .7); }
.hero-foot .btn-secondary:hover { background: rgba(255, 255, 255, .14); color: var(--surface); }
.hero-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
  padding-top: var(--s5);
  padding-bottom: var(--s5);
}
.hero-dots { display: flex; gap: var(--s1); }
.hero-dot {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  padding: 0; background: none; border: 0; cursor: pointer;
}
.hero-dot::before {
  content: "";
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: 1px solid rgba(255, 255, 255, .65);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.hero-dot:hover::before { background: rgba(255, 255, 255, .6); }
.hero-dot.is-active::before { background: var(--surface); transform: scale(1.2); }

@media (min-width: 768px) {
  .hero-foot {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    background: none;
  }
  .hero-foot-inner { padding-top: 0; padding-bottom: var(--s5); }
  .hero-with-foot .hero-slide .hero-copy { padding-bottom: 130px; }
}

/* ---------- photo rotator (slideshow gallery) ---------- */
.photo-rotator {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink);
  box-shadow: var(--sh-md);
}
.photo-frame { position: relative; height: clamp(300px, 52vw, 620px); }
.photo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms var(--ease), visibility 0s linear 800ms;
}
.photo-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 800ms var(--ease), visibility 0s;
}
.photo-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-slide[data-lightbox-item] { cursor: zoom-in; }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  margin: 0; padding: var(--s8) var(--s5) var(--s5);
  color: #fff; font-size: var(--fs-16); font-weight: 700;
  background: linear-gradient(to top, rgba(9, 22, 27, .8), rgba(9, 22, 27, 0));
  pointer-events: none;
}
.photo-dots {
  position: absolute; bottom: var(--s4); right: var(--s4); z-index: 2;
  display: flex; gap: var(--s1);
  padding: var(--s1);
  background: rgba(9, 22, 27, .45);
  border-radius: var(--r-pill);
}

/* page header compact (crumbs only, hero carries the title) */
.page-head-compact .page-head-inner { padding-bottom: var(--s5); }
.page-head-compact .crumbs { margin-bottom: 0; }

/* page header for inner pages */
.page-head { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.page-head-inner { padding: var(--s6) 0 var(--s7); max-width: 780px; }
.page-head h1 { margin-bottom: var(--s3); }
.page-head p { color: var(--ink-2); font-size: var(--fs-18); margin: 0; }
.crumbs { font-size: var(--fs-14); color: var(--ink-2); margin-bottom: var(--s4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; max-width: none; }
.crumbs li { margin: 0; display: flex; gap: var(--s2); align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--border-strong); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: var(--s7) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: var(--s6); }
.section-head p { color: var(--ink-2); margin: 0; }
.lede { font-size: var(--fs-21); line-height: 1.5; color: var(--ink); }

.cols { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
.cols > * { min-width: 0; }
@media (min-width: 768px) { .cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .cols-2 { gap: var(--s8); }
  .split-media { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s8); align-items: center; }
  .split-media.is-flipped { grid-template-columns: 1fr 1.1fr; }
  .split-media.is-flipped > :first-child { order: 2; }
}

/* ---------- cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.card-body { display: grid; gap: var(--s3); padding: var(--s5); align-content: start; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: var(--fs-16); }
.card-media { background: var(--surface-3); }
.card-link {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 700; color: var(--primary); text-decoration: none;
}
.card-link svg { transition: transform var(--t-fast) var(--ease); }
.card:hover { box-shadow: var(--sh-md); }
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); }
  .card:hover .card-link svg { transform: translateX(3px); }
}

.grid-cards { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-cards-square .card-media img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- facts strip ---------- */
.facts {
  display: grid; gap: var(--s5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--s6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.facts .od-stat { --od-gap: 4px; }
.facts .od-stat b { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, var(--fs-27)); color: var(--primary); line-height: 1.1; }
.facts .od-stat span { font-size: var(--fs-14); color: var(--ink-2); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- brand band (colored highlights) ---------- */
.brand-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .brand-band { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand-band > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  text-align: center;
  min-height: 128px;
  padding: var(--s5) var(--s4);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, var(--fs-18));
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.35;
}
.brand-band svg { width: 36px; height: 36px; flex: none; }
.brand-band .bb-hotel { background: #3D7EA6; color: var(--surface); }
.brand-band .bb-camere { background: #7EC8E3; color: var(--ink); }
.brand-band .bb-ristorante { background: var(--surface-3); color: var(--ink); }
.brand-band .bb-lido { background: var(--primary); color: var(--surface); }

/* ---------- feature band (colored highlight with tiles) ---------- */
.feature-band { background: var(--primary-soft); }
.feature-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.feature-tile {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding: var(--s5);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.feature-tile svg { width: 30px; height: 30px; color: var(--primary); }
.feature-tile h3 { font-size: var(--fs-21); margin: 0; }
.feature-tile p { margin: 0; font-size: var(--fs-16); color: var(--ink-2); max-width: none; }
.feature-band .section-head p { color: var(--ink-2); }
.feature-note {
  margin: var(--s5) 0 0;
  text-align: center;
  font-size: var(--fs-14);
  color: var(--ink-2);
  max-width: none;
}

/* ---------- lists with icons ---------- */
.ico-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.ico-list li { display: flex; gap: var(--s3); margin: 0 0 var(--s3); align-items: flex-start; }
.ico-list svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.ico-list span { display: block; }

/* ---------- horizontal icon list + promo spot ---------- */
.ico-list-h {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
}
.ico-list-h li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.ico-list-h svg { flex: none; width: 24px; height: 24px; color: var(--primary); }
.promo-spot {
  margin-top: var(--s6);
  padding: var(--s5) var(--s6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
@media (max-width: 479px) {
  .ico-list-h { flex-direction: column; gap: var(--s3); }
  .promo-spot { padding: var(--s5); }
}

/* ---------- gallery ---------- */
.gallery { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
.gallery-item { margin: 0; position: relative; }
.gallery-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; border-radius: var(--r-md); overflow: hidden;
}
.gallery-btn img { display: block; width: 100%; height: auto; }
.gallery-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gallery-item figcaption {
  font-size: var(--fs-14); color: var(--ink-2); margin-top: var(--s2);
}

/* masonry gallery — hotel / camere */
.gallery-masonry {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 140px;
  grid-auto-flow: dense;
}
@media (min-width: 768px) {
  .gallery-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; gap: var(--s4); }
}
.gallery-masonry .gallery-item {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md);
  background: var(--surface-3);
}
.gallery-masonry .gallery-btn { width: 100%; height: 100%; border-radius: 0; }
.gallery-masonry .gallery-btn img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.gallery-masonry .is-tall { grid-row: span 2; }
.gallery-masonry .is-wide { grid-column: span 2; }
.gallery-masonry .gallery-item:hover .gallery-btn img,
.gallery-masonry .gallery-item:focus-within .gallery-btn img { transform: scale(1.06); }
.gallery-masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  margin: 0; padding: var(--s6) var(--s4) var(--s3);
  color: #fff; font-size: var(--fs-14); font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(to top, rgba(9, 22, 27, .78), rgba(9, 22, 27, 0));
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
@media (hover: hover) {
  .gallery-masonry figcaption { opacity: 0; transform: translateY(8px); }
  .gallery-masonry .gallery-item:hover figcaption,
  .gallery-masonry .gallery-item:focus-within figcaption { opacity: 1; transform: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: var(--s4);
  background: rgba(9, 22, 27, .92);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; }
.lightbox-figure img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--r-md); }
.lightbox-figure figcaption { color: rgba(255, 255, 255, .85); font-size: var(--fs-14); margin-top: var(--s3); text-align: center; }
.lightbox-count { color: rgba(255, 255, 255, .6); font-size: var(--fs-12); text-align: center; margin: var(--s1) 0 0; }
.lightbox-close {
  position: absolute; top: var(--s4); right: var(--s4);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .24); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox-prev { left: var(--s4); }
.lightbox-next { right: var(--s4); }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 599px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: var(--s2); }
  .lightbox-next { right: var(--s2); }
}

/* ---------- tags / badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: 4px var(--s3); border-radius: var(--r-pill);
  background: var(--primary-soft); color: var(--primary-hover);
  font-size: var(--fs-14); font-weight: 700; white-space: nowrap;
}
.tag-warn { background: #FBF2DC; color: #7A5A0B; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- price table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.price-table { min-width: 560px; font-size: var(--fs-16); }
.price-table caption { text-align: left; padding: var(--s4) var(--s4) 0; color: var(--ink-2); font-size: var(--fs-14); }
.price-table th, .price-table td { padding: var(--s3) var(--s4); text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th { background: var(--surface-2); font-size: var(--fs-14); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td.num, .price-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tbody th { font-weight: 700; }

. inclusions { list-style: none; padding: 0; margin: 0; max-width: none; }
.inclusions li { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s3); }
.inclusions svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 3px; }
.inclusions b { display: block; }

/* ---------- offer cards ---------- */
.offer { display: flex; flex-direction: column; gap: var(--s4); }
.offer-head { display: grid; gap: var(--s2); }
.offer-price { font-family: var(--font-display); font-size: var(--fs-34); color: var(--primary); line-height: 1; }
.offer-price small { font-size: var(--fs-14); font-family: var(--font-body); color: var(--ink-2); }
.notice {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); border-radius: var(--r-md);
  background: #FBF2DC; border: 1px solid #E8D9A8; color: #5C4708;
  font-size: var(--fs-16);
}
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-row { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s4); }
.contact-row svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.contact-row .od-field { --od-gap: 2px; }
.contact-row b { display: block; font-size: var(--fs-14); color: var(--ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.contact-row a { color: var(--ink); text-decoration: none; }
.contact-row a:hover { color: var(--primary); text-decoration: underline; }
.contact-actions { display: grid; gap: var(--s5); margin-top: var(--s6); }
@media (min-width: 768px) {
  .contact-actions { grid-template-columns: 1fr 1fr; }
  .contact-actions .is-wa { order: -1; }
}

/* ---------- form ---------- */
.form-shell { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .form-shell { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); align-items: start; } }

.stepper { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s6); padding: 0; list-style: none; }
.stepper li {
  display: flex; align-items: center; gap: var(--s2);
  margin: 0; font-size: var(--fs-14); color: var(--ink-2);
}
.stepper li + li::before { content: ""; width: 20px; height: 1px; background: var(--border-strong); }
.stepper button {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin: 0; padding: var(--s1) 0; min-height: 44px;
  background: none; border: 0; font: inherit; font-size: var(--fs-14);
  color: inherit; cursor: pointer; text-align: left;
}
.stepper button[aria-disabled="true"] { cursor: default; opacity: .6; }
.stepper b {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--surface-3); color: var(--ink-2);
  font-size: var(--fs-14);
}
.stepper [aria-current="step"] { color: var(--ink); font-weight: 700; }
.stepper [aria-current="step"] b { background: var(--primary); color: var(--on-primary); }
.stepper .is-done b { background: var(--ok-soft); color: var(--ok); }

.form-step { display: none; }
.form-step.is-active { display: block; }
.field-grid { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .field-grid-2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: var(--s2); }
.field > label { font-size: var(--fs-16); font-weight: 700; }
.field .req { color: var(--danger); }
.field .helper { font-size: var(--fs-14); color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: var(--s3);
  font: inherit; font-size: var(--fs-16); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
input::placeholder, textarea::placeholder { color: #7C8C92; }
.field-error { display: none; font-size: var(--fs-14); color: var(--danger); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: var(--danger-soft); }
.field.has-error .field-error { display: block; }

.radio-cards { display: grid; gap: var(--s3); }
@media (min-width: 560px) { .radio-cards { grid-template-columns: 1fr 1fr; } }
.radio-card {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); cursor: pointer; background: var(--surface);
}
.radio-card:hover { background: var(--surface-2); }
.radio-card input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.radio-card b { display: block; }
.radio-card small { color: var(--ink-2); font-size: var(--fs-14); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

.form-nav { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.form-nav .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .form-nav .btn { flex: 0 0 auto; } }

.error-summary {
  display: none; margin-bottom: var(--s5); padding: var(--s4) var(--s5);
  border: 1px solid var(--danger); border-left-width: 4px;
  border-radius: var(--r-md); background: var(--danger-soft);
}
.error-summary.is-visible { display: block; }
.error-summary h2 { font-size: var(--fs-21); color: var(--danger); margin-bottom: var(--s2); }
.error-summary ul { margin: 0; padding-left: 1.1em; }
.error-summary a { color: var(--danger); font-weight: 700; }

.summary-card {
  padding: var(--s5); border: 1px solid var(--border);
  border-radius: var(--r-lg); background: var(--surface-2);
}
.summary-card h3 { font-size: var(--fs-21); margin-bottom: var(--s4); }
.summary-line { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-16); }
.summary-line:last-of-type { border-bottom: 0; }
.summary-line dt { color: var(--ink-2); }
.summary-line dd { margin: 0; font-weight: 700; text-align: right; }
.total {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s4); margin-top: var(--s4); padding-top: var(--s4);
  border-top: 2px solid var(--ink);
}
.total b { font-family: var(--font-display); font-size: var(--fs-27); color: var(--primary); white-space: nowrap; }

.form-status { display: none; padding: var(--s5); border-radius: var(--r-md); margin-top: var(--s5); }
.form-status.is-visible { display: block; }
.form-status h3 { margin-bottom: var(--s2); }
.form-status-ok { background: var(--ok-soft); border: 1px solid #B7D9C4; color: #14522E; }
.form-status-ok h3 { color: var(--ok); }
.form-status-ko { background: var(--danger-soft); border: 1px solid #E6B8B1; color: #7C2118; }
.form-status-ko h3 { color: var(--danger); }

.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--surface); }
.cta-band h2 { color: var(--surface); }
.cta-band p { color: rgba(255, 255, 255, .88); }
.cta-inner { display: grid; gap: var(--s5); padding: var(--s7) 0; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: var(--s8); } }
.cta-band-light { background: var(--primary-soft); }
.cta-band-light h2 { color: var(--ink); }
.cta-band-light p { color: var(--ink-2); }
.cta-band-light .btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--surface);
  box-shadow: var(--sh-sm);
}
.cta-band-light .btn-secondary:hover { background: #fff; color: var(--primary-hover); border-color: #fff; }

/* ---------- footer ---------- */
.site-foot { background: var(--surface-2); border-top: 1px solid var(--border); padding: var(--s7) 0 var(--s6); margin-top: auto; }
.foot-grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-grid h2 { font-size: var(--fs-16); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: var(--s3); }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: var(--s2); }
.foot-list a { color: var(--ink); text-decoration: none; }
.foot-list a:hover { color: var(--primary); text-decoration: underline; }
.foot-list li.foot-data { margin-top: var(--s5); }
.foot-contact p { max-width: none; margin: 0 0 var(--s3); }
.foot-contact a { color: var(--ink); text-decoration: none; }
.foot-contact a:hover { color: var(--primary); text-decoration: underline; }
.foot-map { margin-top: var(--s6); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); }
.foot-map iframe { display: block; width: 100%; height: clamp(240px, 34vh, 360px); border: 0; }
.foot-route { margin: var(--s4) 0 0; max-width: none; }
.foot-legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--border); font-size: var(--fs-14); color: var(--ink-2); }
.foot-legal p { max-width: none; }

/* ---------- misc ---------- */
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-14); }
.rounded-img { border-radius: var(--r-lg); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: var(--s5);
  bottom: var(--s5);
  z-index: 60;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--sh-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), background-color var(--t-fast) var(--ease), visibility 0s linear var(--t-base);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), background-color var(--t-fast) var(--ease), visibility 0s;
}
.to-top:hover { background: var(--primary-hover); }
@media (max-width: 599px) {
  .to-top { right: var(--s4); bottom: var(--s4); width: 46px; height: 46px; }
}
.center { text-align: center; }
.center > h1, .center > h2, .center > h3, .center > p, .center > ul { margin-inline: auto; }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mb-0 { margin-bottom: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

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

@media print {
  .site-head, .site-foot, .cta-band, .form-nav, .gallery-btn { display: none; }
  body { display: block; }
}
