:root {
  --ink: #17231f;
  --muted: #60706b;
  --paper: #fffdf8;
  --mist: #f2f5f1;
  --sea: #0c6470;
  --sea-deep: #17283a;
  --coral: #d7744f;
  --sand: #d6c6a8;
  --line: rgba(23, 35, 31, .12);
  --shadow: 0 22px 60px rgba(15, 42, 46, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 108px;
  padding: 12px clamp(16px, 4vw, 52px) 34px;
  color: #fff;
  background: linear-gradient(180deg, rgba(23, 40, 58, .96), rgba(23, 40, 58, .82));
  box-shadow: 0 12px 36px rgba(23, 40, 58, .18);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  place-items: center;
  width: 150px;
  min-width: 150px;
  height: 70px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  position: absolute;
  top: calc(100% - 10px);
  right: clamp(16px, 4vw, 52px);
  left: clamp(16px, 4vw, 52px);
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: auto;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  background: #17283a;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height .24s ease, opacity .2s ease, transform .2s ease;
}

.main-nav a {
  padding: 14px 16px;
  color: rgba(255, 255, 255, .9);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0;
}

.main-nav a:last-child {
  border-bottom: 0;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .12);
}

.menu-toggle {
  position: absolute;
  top: 24px;
  right: clamp(16px, 4vw, 52px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translate(-50%, -9px);
}

.menu-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
  transform: translate(-50%, 7px);
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-open .site-header {
  background: #17283a;
}

.menu-open .main-nav {
  max-height: 360px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header .quick-actions {
  display: none;
}

.quick-actions,
.contact-buttons,
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-content: stretch;
  width: min(100%, 420px);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  font-size: 0;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
}

.button[href^="tel:"]::before,
.button[href*="wa.me"]::before {
  margin-right: 6px;
  font-weight: 900;
}

.button[href^="tel:"]::before {
  content: "☎";
}

.button[href*="wa.me"]::before {
  content: "◉";
}

.icon-link svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: 0 0 auto;
}

.icon-link.whatsapp svg {
  width: 27px;
  height: 27px;
}

.icon-link.whatsapp,
.button.whatsapp-solid {
  background: #1f9d63;
  border-color: #1f9d63;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  max-width: 100vw;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 40, 58, .74), rgba(23, 40, 58, .26) 54%, rgba(23, 40, 58, .08)),
    linear-gradient(0deg, rgba(23, 40, 58, .7), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  padding: 150px clamp(18px, 5vw, 70px) 92px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--coral);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.contact-strip .eyebrow {
  color: #f1b18f;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(3.1rem, 9vw, 8.6rem);
}

.hero-copy {
  max-width: 650px;
  margin: 1.35rem 0 1.8rem;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.button.primary {
  background: var(--coral);
}

.button.ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
}

.contact-link {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
}

.contact-link::before {
  content: "";
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3 1.3.4 2.6.6 4 .6.7 0 1.2.5 1.2 1.2v3.5c0 .7-.5 1.2-1.2 1.2C10.3 21.9 2.1 13.7 2.1 3.4c0-.7.5-1.2 1.2-1.2h3.5c.7 0 1.2.5 1.2 1.2 0 1.4.2 2.7.6 4 .1.4 0 .9-.3 1.2l-1.7 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3 1.3.4 2.6.6 4 .6.7 0 1.2.5 1.2 1.2v3.5c0 .7-.5 1.2-1.2 1.2C10.3 21.9 2.1 13.7 2.1 3.4c0-.7.5-1.2 1.2-1.2h3.5c.7 0 1.2.5 1.2 1.2 0 1.4.2 2.7.6 4 .1.4 0 .9-.3 1.2l-1.7 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-link.whatsapp {
  background: #1f9d63;
  border-color: #1f9d63;
}

.contact-link.whatsapp::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 3C8.8 3 3 8.7 3 15.8c0 2.5.7 4.8 2 6.8L3.7 29l6.6-1.7c1.8 1 3.7 1.5 5.8 1.5 7.2 0 13-5.7 13-12.8S23.2 3 16 3zm0 23.5c-1.9 0-3.6-.5-5.1-1.5l-.4-.2-3.9 1 1-3.8-.3-.4c-1.2-1.7-1.8-3.7-1.8-5.8 0-5.8 4.7-10.4 10.5-10.4s10.5 4.7 10.5 10.4S21.8 26.5 16 26.5zm5.8-7.8c-.3-.2-1.9-.9-2.2-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.2-1.3-.5-2.5-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.5-.6c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.6-.1-.2-.7-1.7-1-2.3-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.3 3.4 1.5 3.6c.2.2 2.5 3.8 6 5.3.8.4 1.5.6 2 .7.8.3 1.6.2 2.2.1.7-.1 1.9-.8 2.2-1.5.3-.8.3-1.4.2-1.5-.1-.1-.3-.2-.6-.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 3C8.8 3 3 8.7 3 15.8c0 2.5.7 4.8 2 6.8L3.7 29l6.6-1.7c1.8 1 3.7 1.5 5.8 1.5 7.2 0 13-5.7 13-12.8S23.2 3 16 3zm0 23.5c-1.9 0-3.6-.5-5.1-1.5l-.4-.2-3.9 1 1-3.8-.3-.4c-1.2-1.7-1.8-3.7-1.8-5.8 0-5.8 4.7-10.4 10.5-10.4s10.5 4.7 10.5 10.4S21.8 26.5 16 26.5zm5.8-7.8c-.3-.2-1.9-.9-2.2-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.2-1.3-.5-2.5-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.5-.6c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.6-.1-.2-.7-1.7-1-2.3-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.3 3.4 1.5 3.6c.2.2 2.5 3.8 6 5.3.8.4 1.5.6 2 .7.8.3 1.6.2 2.2.1.7-.1 1.9-.8 2.2-1.5.3-.8.3-1.4.2-1.5-.1-.1-.3-.2-.6-.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-link.email::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-link span,
.contact-link strong {
  grid-column: 2;
  line-height: 1.15;
}

.contact-link span {
  color: rgba(255, 255, 255, .72);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-link strong {
  font-size: 1rem;
  font-weight: 900;
}

.section {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.split-copy h2,
.contact-strip h2,
.page-hero h1,
.itinerary-band h2 {
  font-size: clamp(2.2rem, 5vw, 4.9rem);
}

.intro-grid p,
.split-copy p,
.page-hero p,
.itinerary-band p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  padding-top: 0;
  background: var(--line);
}

.facts article {
  min-height: 240px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--mist);
}

.facts span {
  color: var(--coral);
  font-weight: 900;
}

.facts h3,
.card h3,
.place-card h2,
.summary-card h2,
.group-card h3 {
  margin: .8rem 0 .45rem;
  font-size: 1.25rem;
  line-height: 1.18;
}

.facts p,
.card p,
.place-card p,
.summary-card p,
.price-notes span,
.group-card span {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split-image {
  overflow: hidden;
  background: var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-image img {
  display: block;
  width: 100%;
  height: min(68vh, 620px);
  min-height: 420px;
  object-fit: cover;
}

.split-copy {
  display: grid;
  gap: 1.2rem;
}

.text-link {
  width: fit-content;
  color: var(--sea);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.cards-band,
.gallery-section.alt,
.group-section {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: var(--mist);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p {
  color: var(--muted);
  font-weight: 600;
}

.cards,
.apartment-summary,
.places-grid,
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.summary-card,
.place-card,
.group-card {
  display: block;
  min-height: 100%;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card {
  padding: 0 0 18px;
  overflow: hidden;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}

.card[href="chi-siamo.html"] img {
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: #17283a;
}

.card h3,
.card p {
  padding-inline: 18px;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 36px, 1180px);
  margin: clamp(40px, 6vw, 80px) auto;
  padding: clamp(26px, 4vw, 46px);
  color: #fff;
  background: var(--sea-deep);
  border-radius: var(--radius);
}

.contact-strip h2 {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, .78);
  background: #17283a;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, .78);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}

.footer-links a {
  font-size: .9rem;
  font-weight: 800;
}

.tiny-credit {
  max-width: 620px;
  color: rgba(255, 255, 255, .46);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.35;
}

.page-hero {
  padding: 158px clamp(18px, 5vw, 70px) 84px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 40, 58, .88), rgba(23, 40, 58, .5)),
    url("immagini/foto_soggiorno/IMG_3892.jpeg") center / cover;
  max-width: 100vw;
  overflow: hidden;
}

.page-hero p {
  max-width: 760px;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, .82);
}

.page-hero .eyebrow {
  color: #f1b18f;
}

.apartment-summary {
  padding-bottom: 28px;
}

.summary-card {
  background: var(--mist);
}

.gallery-section {
  padding-top: 62px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mist);
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gallery-grid img:hover,
.gallery-grid img:focus {
  outline: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery-grid.compact img:nth-child(odd) {
  aspect-ratio: 4 / 3;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px 72px;
  background: rgba(23, 40, 58, .94);
}

.lightbox[aria-hidden="false"] {
  display: grid;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox figure {
  display: grid;
  gap: 12px;
  width: min(100%, 1180px);
  margin: 0;
}

.lightbox figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
}

.lightbox figcaption {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
  text-align: center;
}

.lightbox button {
  display: grid;
  place-items: center;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 2.7rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  font-size: .92rem;
}

.price-table caption {
  padding: 16px;
  color: #fff;
  font-weight: 900;
  text-align: left;
  background: var(--sea-deep);
}

.price-table th,
.price-table td {
  padding: 12px 11px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.price-table th:first-child,
.price-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: #fff;
}

.price-table thead th {
  color: var(--sea-deep);
  font-size: .78rem;
  text-transform: uppercase;
  background: #eef6f2;
}

.price-table thead th:first-child {
  background: #eef6f2;
}

.price-table tbody tr:hover td,
.price-table tbody tr:hover th {
  background: #fff8ef;
}

.price-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.price-notes article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.supplements {
  padding-top: 10px;
}

.supplement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.supplement-grid span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.policies-section {
  padding-top: 26px;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.policy-card {
  padding: clamp(20px, 3vw, 30px);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.policy-card.wide {
  grid-column: span 2;
}

.policy-card h3 {
  margin: 0 0 14px;
  color: var(--sea-deep);
  font-size: 1.25rem;
  line-height: 1.2;
}

.policy-card p,
.policy-card li,
.policy-card dd {
  color: var(--muted);
  font-weight: 700;
}

.policy-card p,
.policy-card ul,
.policy-card dl {
  margin: 0;
}

.policy-card ul {
  display: grid;
  gap: 10px;
  padding-left: 1.15rem;
}

.policy-card dl {
  display: grid;
  gap: 12px;
}

.policy-card dt {
  color: var(--sea-deep);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-card dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.deposit-card {
  color: #fff;
  background: var(--sea-deep);
}

.deposit-card h3,
.deposit-card dt {
  color: #fff;
}

.deposit-card dd {
  color: rgba(255, 255, 255, .82);
}

.places-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.place-card {
  display: grid;
  gap: 12px;
  padding: 0 0 18px;
  overflow: hidden;
  background: var(--mist);
}

.place-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}

.place-card.featured {
  grid-column: span 2;
  color: #fff;
  background: var(--sea-deep);
}

.place-card span,
.place-card h2,
.place-card p {
  padding-inline: 16px;
}

.place-card span {
  color: var(--coral);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.place-card.featured p {
  color: rgba(255, 255, 255, .8);
}

.itinerary-band {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(320px, 1fr);
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
  padding: clamp(30px, 4vw, 46px);
  color: #fff;
  background: var(--sea-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.itinerary-band .section-heading {
  margin-bottom: 0;
}

.itinerary-band h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.itinerary-band p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  font-weight: 700;
  line-height: 1.75;
}

.logo-panel {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 46px;
}

.logo-panel img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.group-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.group-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

a.group-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.brand-card {
  color: #fff;
  background: var(--sea-deep);
}

.brand-card span {
  color: rgba(255, 255, 255, .76);
}

.remote-logo {
  display: grid;
  place-items: center;
  height: 145px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
}

.remote-logo img {
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
}

.legal-hero {
  background:
    linear-gradient(90deg, rgba(23, 40, 58, .9), rgba(23, 40, 58, .55)),
    url("immagini/foto_soggiorno/IMG_3892.jpeg") center / cover;
}

.surroundings-hero {
  background:
    linear-gradient(90deg, rgba(23, 40, 58, .82), rgba(23, 40, 58, .38)),
    url("immagini/civitanova/civitanova-porto-aereo.jpg") center / cover;
}

.destination-photo {
  padding-bottom: 24px;
}

.destination-photo img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.destination-photo p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.civitanova-focus {
  padding-top: 28px;
}

.city-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.city-gallery figure {
  margin: 0;
}

.city-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(23, 40, 58, .1);
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}

.city-gallery img:hover,
.city-gallery img:focus {
  outline: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.city-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.city-highlights article {
  padding: 18px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.city-highlights h3 {
  margin: 0 0 8px;
  color: var(--sea-deep);
  font-size: 1.05rem;
}

.city-highlights p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.tourism-link-wrap {
  margin-top: 22px;
}

.legal-content {
  max-width: 920px;
}

.legal-content h2 {
  margin-top: 2.2rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.legal-content p {
  color: var(--muted);
  font-weight: 600;
}

.legal-content a {
  color: var(--sea);
  font-weight: 900;
}

.legal-button {
  width: fit-content;
  color: #fff !important;
}

.legal-table {
  margin: 24px 0;
  box-shadow: none;
}

.legal-table .price-table {
  min-width: 760px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  width: min(calc(100% - 36px), 760px);
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 253, 248, .98);
  border: 1px solid rgba(23, 35, 31, .16);
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(23, 40, 58, .28);
}

.cookie-copy {
  display: grid;
  gap: 7px;
}

.cookie-copy strong {
  font-size: 1.05rem;
}

.cookie-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

.cookie-copy a {
  margin-right: 12px;
  color: var(--sea);
  font-size: .9rem;
  font-weight: 900;
  text-underline-offset: 4px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 8px;
  align-content: end;
}

.cookie-actions button {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--sea-deep);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cookie-actions button[data-cookie-accept],
.cookie-actions button[data-cookie-save] {
  color: #fff;
  background: var(--sea);
  border-color: var(--sea);
}

.cookie-preferences {
  display: none;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 12px;
  background: var(--mist);
  border-radius: var(--radius);
}

.cookie-preferences label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.cookie-banner.show-preferences .cookie-preferences {
  display: grid;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    grid-template-columns: auto auto;
    align-items: flex-start;
    justify-content: space-between;
    overflow: visible;
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 10px);
    right: clamp(16px, 4vw, 52px);
    left: clamp(16px, 4vw, 52px);
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: auto;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    background: #17283a;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, .26);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height .24s ease, opacity .2s ease, transform .2s ease;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: .82rem;
    white-space: normal;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .12);
  }

  .menu-open .site-header {
    background: #17283a;
  }

  .menu-open .main-nav {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .quick-actions {
    display: none;
  }

  .intro-grid,
  .split,
  .itinerary-band {
    grid-template-columns: 1fr;
  }

  .facts,
  .gallery-grid,
  .city-gallery,
  .city-highlights,
  .price-notes,
  .policies-grid,
  .places-grid,
  .group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards,
  .apartment-summary {
    grid-template-columns: 1fr;
  }

  .contact-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    left: 18px;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 10px;
    min-height: 118px;
    padding: 10px 12px 18px;
  }

  .brand {
    width: 118px;
    min-width: 118px;
    height: 64px;
  }

  .menu-toggle {
    right: 16px;
  }

  .main-nav {
    right: 12px;
    left: 12px;
  }

  .icon-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .icon-link svg {
    width: 21px;
    height: 21px;
  }

  .icon-link.whatsapp svg {
    width: 24px;
    height: 24px;
  }

  .hero-content {
    width: 100%;
    max-width: 100vw;
    padding: 162px 18px 54px;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(2.15rem, 9.6vw, 2.55rem);
  }

  .page-hero h1 {
    max-width: 18ch;
    font-size: clamp(1.55rem, 6.8vw, 1.78rem);
    line-height: 1.12;
  }

  .hero-copy,
  .page-hero p {
    width: auto;
    max-width: 30ch;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .page-hero h1 {
    width: auto;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .legal-button {
    width: 100%;
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 14px;
    gap: 12px;
  }

  .cookie-copy p {
    font-size: .88rem;
    line-height: 1.45;
  }

  .cookie-actions button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: .92rem;
  }

  .facts,
  .gallery-grid,
  .city-gallery,
  .city-highlights,
  .price-notes,
  .supplement-grid,
  .policies-grid,
  .places-grid,
  .group-grid {
    grid-template-columns: 1fr;
  }

  .policy-card.wide {
    grid-column: span 1;
  }

  .place-card.featured {
    grid-column: span 1;
  }

  .split-image img {
    min-height: 320px;
  }

  .page-hero {
    padding-top: 170px;
  }

  .price-section {
    width: min(100% - 24px, 1180px);
  }

  .table-wrap {
    overflow-x: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .price-table {
    display: block;
    min-width: 0;
    font-size: 1rem;
    border-collapse: separate;
  }

  .price-table caption {
    display: block;
    padding: 18px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody {
    display: grid;
    gap: 14px;
  }

  .price-table tr {
    display: grid;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(23, 40, 58, .08);
  }

  .price-table th,
  .price-table td,
  .price-table th:first-child,
  .price-table td:first-child {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 11px 16px;
    text-align: right;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .price-table tbody th:first-child {
    color: #fff;
    font-size: 1.05rem;
    text-align: left;
    background: var(--sea-deep);
  }

  .price-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
  }

  .price-table td {
    font-weight: 900;
  }

  .price-table td:last-child {
    border-bottom: 0;
  }

  .price-table tbody tr:hover td,
  .price-table tbody tr:hover th {
    background: inherit;
  }
}
