/* My Home Sorrento: copertina yéyé. Un campo di colore pieno per zona, titolo tondo e grasso, avorio come unico rilievo. */
:root {
  /* Palette mediterranea */
  --corporate: #00519E;
  --corporate-dark: #00376B;
  --secondary: #929FB0;
  --tertiary: #CCCCCC;
  --ink: #393E47;
  --cool: #F0F1F5;
  --footer: #3A3D42;
  --sel: #3BDC8D;
  --range: #C8F5DF;
  --error: #CB2027;
  --white: #FFFFFF;

  /* Semantic tokens */
  --ground: var(--corporate);
  --ground-deep: var(--corporate);
  --body: var(--white);
  --display: var(--white);
  --pill-ink: var(--corporate);
  --line: var(--white);
  --ring: var(--white);
  --accent-ui: var(--sel);

  /* Layout & motion */
  --r: 22px;
  --maxw: 1240px;
  --sl: clamp(24px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 32px -18px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 10px 22px -14px rgba(0, 0, 0, 0.32);
}
body[data-ground="blue"] { --ground: var(--corporate); --ground-deep: var(--corporate); --body: #FFFFFF; --display: #FFFFFF; --pill-ink: var(--corporate); --line: #FFFFFF; --ring: #FFFFFF; }
body[data-ground="navy"] { --ground: var(--corporate-dark); --ground-deep: var(--corporate-dark); --body: #FFFFFF; --display: #FFFFFF; --pill-ink: var(--corporate-dark); --line: #FFFFFF; --ring: #FFFFFF; }
body[data-ground="light"] { --ground: #F0F1F5; --ground-deep: var(--corporate); --body: #3A3D42; --display: #002547; --pill-ink: var(--corporate); --line: #C9D3E0; --ring: var(--corporate); }
body[data-ground="steel"] { --ground: var(--secondary); --ground-deep: var(--corporate-dark); --body: #002547; --display: #002547; --pill-ink: #002547; --line: #002547; --ring: #002547; }
body[data-ground="deep"] { --ground: #002547; --ground-deep: #002547; --body: #FFFFFF; --display: #FFFFFF; --pill-ink: #002547; --line: #FFFFFF; --ring: #FFFFFF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--secondary) var(--bg-light); }
body {
  margin: 0; font-family: var(--ff-sans); font-size: 1.0625rem; line-height: 1.55;
  background: var(--ground); color: var(--body);
  transition: background-color 0.8s var(--ease), color 0.8s var(--ease);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
@media (hover: hover) {
  a:hover { text-decoration-thickness: 3px; }
}
::selection { background: var(--sel); color: #002547; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.label :focus-visible, .card :focus-visible, .cookie :focus-visible, .search :focus-visible, .cal :focus-visible,
.card-link :focus-visible, .blog-list a :focus-visible, .g-btn :focus-visible, .pill :focus-visible,
.zp span :focus-visible, .more :focus-visible, .nav a :focus-visible { outline-color: var(--corporate); }
input, select, textarea { caret-color: var(--ground-deep); }
button { font: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { opacity: 0.85; }
mark.todo { background: var(--cool); color: var(--ink); padding: 0 4px; border-radius: 4px; }
code { font-family: var(--ff-sans); font-weight: 600; letter-spacing: 0.04em; }

/* Tipografia */
.display, .h2, .h3, .card-title, .t-name-fat { font-family: var(--ff-serif); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.display { font-size: clamp(3.1rem, 8.6vw, 6rem); line-height: 0.96; color: var(--display); }
.display-m { font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1; }
.display-s { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.04; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1; color: var(--display); }
.h3 { font-size: 1.55rem; line-height: 1.1; color: var(--ground-deep); margin-bottom: 14px; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; max-width: 36em; margin: 18px 0 0; text-wrap: pretty; }
p { margin: 0 0 1em; }

/* Pillole */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; border: 2px solid transparent; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s; min-height: 44px; }
.pill-solid { background: var(--white); color: var(--pill-ink); box-shadow: var(--shadow-soft); }
.pill-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.pill-line { border-color: var(--line); color: var(--body); }
.pill-line:hover { background: color-mix(in srgb, var(--line) 16%, transparent); text-decoration: none; }
.pill-line-dark { border-color: var(--corporate); color: var(--corporate); background: transparent; }
.pill-line-dark:hover { background: var(--cool); text-decoration: none; }
.pill-block { width: 100%; justify-content: center; margin-top: 10px; }
.pill.disabled { opacity: 0.55; pointer-events: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Testata */
.site-header { display: flex; align-items: center; gap: 20px; padding: 18px clamp(16px, 4vw, 32px); max-width: calc(var(--maxw) + 64px); margin-inline: auto; position: relative; }
.brand { display: block; flex: none; }
.brand img { width: clamp(112px, 12vw, 150px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); margin-left: auto; font-family: var(--ff-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; font-size: 1.02rem; }
.nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; color: var(--body); }
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .lang { border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.nav .lang:hover { background: color-mix(in srgb, var(--line) 16%, transparent); }
.header-cta { padding: 10px 18px; }
.menu-btn { display: none; background: var(--white); color: var(--corporate); border: 0; border-radius: 999px; width: 46px; height: 46px; align-items: center; justify-content: center; margin-left: auto; box-shadow: var(--shadow-soft); }
.menu-btn .m-close { display: none; }
body.nav-open .menu-btn .m-close { display: block; } body.nav-open .menu-btn .m-open { display: none; }

/* Hero: la copertina */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: var(--maxw); margin-inline: auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) clamp(64px, 9vw, 96px); }
.sleeve-photo { position: relative; aspect-ratio: 1; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.sleeve-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sleeve-photo .sp { opacity: 0; transition: opacity 0.9s var(--ease); }
.sleeve-photo .sp.on { opacity: 1; }
.sleeve-photo.static { aspect-ratio: 1; }
.t-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.t-name { font-family: var(--ff-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; font-size: 1.2rem; }
.t-meta { grid-column: 2; font-size: 0.98rem; margin-top: -2px; }

/* Ricerca date */
.search { position: relative; z-index: 2; max-width: 1120px; margin: -44px auto 0; width: calc(100% - 32px); background: var(--white); color: var(--ink); border-radius: 30px; padding: 20px 24px; box-shadow: var(--shadow); }
.search-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
label { font-family: var(--ff-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; display: grid; gap: 6px; }
input, select, textarea { font: 500 1.05rem var(--ff-sans); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 11px 14px; width: 100%; min-height: 48px; text-transform: none; letter-spacing: 0; }
textarea { resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.chk { display: flex; align-items: center; gap: 10px; font-family: var(--ff-sans); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 500; }
.chk input { width: 22px; height: 22px; min-height: 0; accent-color: var(--corporate); flex: none; }

/* Fasce */
.band { padding: clamp(56px, 9vw, 112px) clamp(16px, 4vw, 32px); }
.band > .wrap { padding-inline: 0; }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-list a { display: block; text-decoration: none; padding: 22px 24px; border: 2px solid var(--line); border-radius: var(--r); height: 100%; transition: background-color 0.3s; min-height: 44px; }
.blog-list a:hover { background: color-mix(in srgb, var(--line) 14%, transparent); }
.blog-list h3 { font-family: var(--ff-serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; margin: 0 0 8px; color: var(--display); }
.blog-list p { margin: 0; }
.blog-list.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-list.big li.label { padding: 0; }
.blog-list.big li.label a { border: 0; padding: 26px 28px; }
.blog-list.big li.label a:hover { background: var(--cool); border-radius: 28px; }
.more { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; margin-top: 10px; }

/* Schede */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { --accent: var(--corporate); background: var(--white); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
  .card:hover .card-photo img { transform: scale(1.04); }
}
.card.is-off .card-photo img { opacity: 0.4; filter: grayscale(0.7); }
.card.is-off .card-status { color: var(--error); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; min-height: 44px; }
.card-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--cool); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card-body { padding: 16px 20px 20px; }
.card-title { font-size: 1.5rem; line-height: 1.12; color: var(--accent); }
.card-meta { margin: 6px 0 12px; font-family: var(--ff-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.95rem; }
.card-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.95rem; }
.card-facts li { display: inline-flex; align-items: center; gap: 6px; }
.card-facts .i { width: 1.1em; height: 1.1em; }
.card-price { margin: 0; font-variant-numeric: tabular-nums; }
.card-price strong { font-size: 1.4rem; font-weight: 700; }
.card-status { margin: 8px 0 0; font-weight: 700; font-size: 0.95rem; }
.card.is-off .card-photo img { opacity: 0.4; filter: grayscale(0.7); }
.card.is-off .card-status { color: var(--error); }

/* Pagine indice e zona */
.page-head { padding-top: clamp(20px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 40px); }
.filters { padding-bottom: 28px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.filter-form > label { min-width: 150px; }
.filter-form input, .filter-form select { background: var(--white); }
.zone-pills { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zone-pills legend { font-family: var(--ff-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; float: left; margin-right: 8px; padding: 0; }
.zp { position: relative; display: inline-block; }
.zp input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.zp span { display: inline-flex; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); font: 700 1rem var(--ff-sans); text-transform: none; letter-spacing: 0; color: var(--body); }
.zp input:checked + span { background: var(--white); color: var(--pill-ink); }
.zp input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 3px; }
.result-count { margin: 0 0 18px; font-weight: 700; }
.results { padding-bottom: clamp(56px, 9vw, 112px); }
.empty { padding: 28px; background: var(--white); color: var(--ink); border-radius: var(--r); font-weight: 500; }
.zone-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(20px, 4vw, 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.other-zones { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 0; padding-bottom: clamp(56px, 9vw, 112px); }

/* Scheda alloggio */
.crumbs { display: flex; align-items: center; gap: 6px; padding-top: 14px; font-family: var(--ff-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.95rem; }
.crumbs .i { width: 1em; height: 1em; }
.listing-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(16px, 3vw, 32px); padding-bottom: clamp(32px, 5vw, 56px); }
.keyfacts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; max-width: 26em; }
.keyfacts li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; }
.gallery { padding-bottom: clamp(32px, 5vw, 56px); }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.g-0 { grid-column: span 2; grid-row: span 2; } .g-5, .g-6 { grid-column: span 2; }
.g-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink); border-radius: 18px; overflow: hidden; cursor: zoom-in; min-height: 44px; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.8s var(--ease); }
.g-0 .g-btn img { aspect-ratio: auto; }
.g-btn:hover img { transform: scale(1.05); }
.listing-cols { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
.label { background: var(--white); color: var(--ink); border-radius: 28px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-soft); }
.label .h3 { color: var(--ground-deep); }
.beds { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.spec { margin-top: 30px; padding-top: 24px; border-top: 2px solid var(--cool); }
.spec h3 { font-family: var(--ff-serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 12px; color: var(--ground-deep); }
.spec h4 { margin: 0 0 6px; font-family: var(--ff-sans); text-transform: uppercase; letter-spacing: 0.09em; font-size: 1rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--cool); font-weight: 600; }
.plainlist { margin: 0; padding-left: 1.1em; }
.plainlist li { margin: 4px 0; }
.times { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.times li { display: flex; gap: 12px; align-items: center; }
.where { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.regline { margin: 6px 0 0; }
.booking { position: sticky; top: 20px; padding: 22px; }
.b-from { margin: 0 0 12px; font-size: 1.05rem; } .b-from strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.b-pick { margin: 0 0 16px; text-align: center; font-size: 0.95rem; }
.b-guests { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.b-sum { margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.b-sum .muted { font-size: 0.9rem; text-align: center; padding: 8px 0; }

/* Calendario */
.cal { font-variant-numeric: tabular-nums; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; }
.cal-nav:hover:not(:disabled) { background: var(--cool); } .cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-months { display: grid; gap: 14px; }
.cal-month h4 { margin: 0 0 6px; text-align: center; font-family: var(--ff-sans); text-transform: uppercase; letter-spacing: 0.09em; font-size: 1.05rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 0.78rem; font-weight: 700; opacity: 0.8; padding-bottom: 2px; }
.day { aspect-ratio: 1; border: 0; background: transparent; color: var(--ink); border-radius: 12px; font-weight: 600; font-size: 0.98rem; padding: 0; position: relative; }
.day:hover:not([aria-disabled="true"]) { background: var(--cool); }
.day[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; text-decoration: line-through; text-decoration-thickness: 2px; }
.day.past { opacity: 0.3; text-decoration: none; }
.day.in-range { background: var(--range); border-radius: 0; }
.day.start, .day.end, .day.start:hover, .day.end:hover { background: var(--sel); color: var(--ink); border-radius: 12px; }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }

.booking .pill-solid, .cookie .pill-solid { background: var(--corporate); color: #fff; }
.booking .pill-solid:hover, .cookie .pill-solid:hover { background: var(--corporate-dark); }

/* Testi, contatti */
.prose { max-width: 56ch; margin-bottom: clamp(48px, 7vw, 96px); }
.prose h2.h3 { margin-top: 1.6em; }
.prose p, .prose li { max-width: 50ch; }
.prose li { margin-bottom: 0.8em; }
.prose li strong { display: block; font-family: var(--ff-serif); font-weight: 400; font-size: 1.15rem; color: var(--ground-deep); }
.about-page { padding-bottom: clamp(48px, 7vw, 96px); }
.about-page .prose { margin-bottom: 24px; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Avviso legale: colonna unica larga, sezioni con titolo in colonna */
.legal-doc { max-width: min(92ch, calc(100% - 32px)); }
.legal-doc .legal-intro p { max-width: 68ch; font-size: 1.06rem; }
.legal-sec { display: grid; grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr); gap: 6px clamp(24px, 4vw, 56px); margin-top: clamp(24px, 3vw, 36px); padding-top: clamp(20px, 2.6vw, 32px); border-top: 1px solid var(--cool); }
.legal-doc .legal-sec > h2.h3 { margin: 0; max-width: 16ch; }
.legal-body > p { max-width: 62ch; }
.legal-body > p:first-child { margin-top: 0; }
.legal-body > p + p { margin-top: 1em; }
.legal-facts { list-style: none; margin: 0; padding: 0; max-width: 62ch; }
.legal-facts li { display: grid; grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; max-width: none; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--cool); }
.legal-facts li:first-child { border-top: 1px solid var(--cool); }
.legal-facts .lf-k { font-weight: 600; color: var(--ground-deep); }
.legal-facts .lf-v { overflow-wrap: anywhere; }
.legal-facts .lf-wide { grid-template-columns: 1fr; font-weight: 600; color: var(--ground-deep); }
@media (max-width: 760px) {
  .legal-sec { display: block; }
  .legal-doc .legal-sec > h2.h3 { max-width: none; margin-bottom: 10px; }
  .legal-facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* Piè di pagina, cookie, lightbox */
.site-footer { background: var(--footer); color: #fff; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 32px) 28px; }
.foot-h { font-family: var(--ff-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; font-size: 1.05rem; margin: 0 0 12px; color: var(--range); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list li > a, .foot-list li > span { display: inline-flex; gap: 10px; align-items: center; }
.foot-legal, .mock-note { max-width: var(--maxw); margin: 28px auto 0; font-size: 0.95rem; }
.mock-note { border: 2px solid var(--secondary); border-radius: 18px; padding: 12px 18px; color: #fff; }
.cookie { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: var(--white); color: var(--ink); border-radius: 26px; padding: 20px 24px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45); }
.cookie h2 { font-family: var(--ff-serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 6px; color: var(--corporate); }
.cookie p { margin: 0 0 14px; font-size: 1rem; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); width: 100%; overflow: visible; }
.lightbox::backdrop { background: #0A101A; }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 18px; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.lb-close { top: 12px; right: 12px; z-index: 3; } .lb-prev { left: 8px; top: 50%; } .lb-next { right: 8px; top: 50%; }

/* Responsive */
@media (max-width: 1000px) {
  .hero, .zone-hero, .listing-hero { grid-template-columns: minmax(0, 1fr); }
  .listing-cols { grid-template-columns: minmax(0, 1fr); }
  .booking { position: static; }
  .blog-list, .blog-list.big { grid-template-columns: minmax(0, 1fr); }
      .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form .pill { grid-column: 1 / -1; justify-content: center; }
  .sleeve-photo { aspect-ratio: 4 / 3; } .sleeve-photo.static { aspect-ratio: 4 / 3; }
  .menu-btn { display: inline-flex; } .header-cta { display: none; }
  .nav { display: none; }
  body.nav-open .nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: calc(100% - 6px); left: 16px; right: 16px; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 18px 22px; gap: 10px; z-index: 30; box-shadow: var(--shadow); }
  body.nav-open .nav a { color: var(--ink); font-size: 1.15rem; }
  body.nav-open .nav .lang { border-color: var(--ink); }
}
@media (max-width: 640px) {
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-0 { grid-column: span 2; grid-row: span 1; } .g-5, .g-6 { grid-column: span 1; }
  .g-0 .g-btn img { aspect-ratio: 4 / 3; }
  .keyfacts { grid-template-columns: minmax(0, 1fr); }
    .search { margin-top: -28px; padding: 16px; }
  .search-form { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1001px) { .cal-months { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 1000px) { .cal-months { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Dopo la revisione: etichette da copertina, linea del tempo, legenda, note */
body[data-ground="steel"] { --accent-ui: #002547; }
body[data-ground="deep"] { --accent-ui: #FFFFFF; }
body[data-ground="light"] { --accent-ui: #00519E; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent-ui); }
.sleeve-photo .sleeve-label { position: absolute; z-index: 2; left: 16px; bottom: 16px; max-width: calc(100% - 32px); display: flex; flex-direction: column; gap: 2px; background: var(--white); color: var(--ink); padding: 10px 18px; border-radius: 22px; text-decoration: none; box-shadow: var(--shadow-soft); opacity: 0; transition: opacity 0.6s var(--ease); }
.sleeve-photo .sleeve-label.on { opacity: 1; }
.sleeve-label strong { font-size: 1.05rem; line-height: 1.2; }
.sleeve-label small { font-size: 0.92rem; font-weight: 500; }
a.sleeve-label:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--corporate); }
.prose li strong { display: block; font-family: var(--ff-serif); font-weight: 400; font-size: 1.2rem; line-height: 1.2; color: var(--ground-deep); margin-bottom: 2px; }
.prose li { margin-bottom: 1em; }
.about-page { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.about-side { position: sticky; top: 20px; }
.about-side .sleeve-photo { aspect-ratio: 4 / 5; }
.about-cta { margin-top: 18px; }
.grid.fit { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.oz-label { font-family: var(--ff-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; margin-right: 6px; align-self: center; }
.todo-note { margin: 0 auto 20px; }
.todo-note mark { display: block; padding: 12px 18px; border-radius: 16px; font-weight: 600; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; font-size: 0.85rem; }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-off { text-decoration: line-through; text-decoration-thickness: 2px; opacity: 0.55; }
.lg-today::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.lb-cap { margin: 10px 0 0; color: #fff; text-align: center; font-weight: 600; }
.g-0 .g-btn img { object-position: 50% 65%; }
input[aria-invalid="true"]:focus-visible, select[aria-invalid="true"]:focus-visible, textarea[aria-invalid="true"]:focus-visible { outline-color: var(--error); }
.nav-cta { display: none; }
body.nav-open .nav a.nav-cta { display: inline-flex; background: var(--corporate); color: #fff; margin-top: 6px; border: 2px solid transparent; }
@media (max-width: 1000px) { .about-page { grid-template-columns: minmax(0, 1fr); } .about-side { position: static; } }

/* Correzioni finali: griglia in evidenza, galleria, segnalazione doppioni, disco da copertina */
.g-grid li:nth-child(6):last-child { grid-column: 1 / -1; }
.card-photo { position: relative; }
.card-flag { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--ink); font-size: 0.85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-soft); }
.hero { overflow-x: clip; }

/* ===== Ridisegno 1/3: home e struttura generale ===== */
html { scroll-padding-top: 88px; }
::selection { background: var(--sel); color: #002547; }
/* testata fissa sul campo di colore, a tutta larghezza */
.site-header { position: sticky; top: 0; z-index: 20; max-width: none; margin: 0; padding: 14px max(clamp(16px, 4vw, 32px), calc((100% - var(--maxw)) / 2)); background: var(--ground); transition: background-color 0.8s var(--ease); }
/* hero: allineata al resto e piu bassa, con il disco che esce dalla busta */
.hero { max-width: calc(var(--maxw) + 2 * clamp(16px, 4vw, 32px)); padding-block: clamp(8px, 2vw, 24px) clamp(72px, 8vw, 96px); }
.t-meta { margin-top: -4px; }
.search { max-width: var(--maxw); margin-top: -56px; }
/* griglia in evidenza: righe pari e un solo movimento */
/* fasce come buste impilate */
.site-footer { position: relative; border-radius: var(--sl) var(--sl) 0 0; margin-top: calc(-1 * var(--sl)); }
.site-footer { padding-top: calc(clamp(40px, 6vw, 72px) + var(--sl)); }
/* fascia pagamenti: la divisione 30/70 disegnata, con numeri veri */
.split { display: flex; gap: 6px; margin: 0 0 28px; font: 400 1.5rem/1 var(--ff-serif); }
.split span { display: flex; align-items: center; height: 56px; padding: 0 22px; border-radius: 999px; }
/* banner cookie compatto */
.cookie { width: min(400px, calc(100% - 32px)); max-width: none; right: auto; padding: 16px 20px; border-radius: 24px; }
.cookie h2 { font-size: 1.2rem; } .cookie p { font-size: 0.95rem; margin-bottom: 12px; }
.cookie-actions .pill { padding: 10px 18px; font-size: 0.95rem; }
@media (max-width: 480px) {
  .cookie { width: calc(100% - 16px); left: 8px; right: 8px; bottom: 8px; }
}
/* piede di pagina: aree di tocco da 44px */
.foot-list { gap: 2px; } .foot-list li > a, .foot-list li > span { min-height: 44px; align-items: center; }
@media (max-width: 1000px) {
  .site-header { padding-block: 10px; }
      body.nav-open .nav a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 4px; border-bottom: 2px solid var(--cool); }
  body.nav-open .nav .lang { width: auto; border: 2px solid var(--ink); padding: 8px 16px; }
  body.nav-open .nav a.nav-cta { font-family: var(--ff-sans); text-transform: none; letter-spacing: 0; font-size: 1.05rem; justify-content: center; margin-top: 8px; border-bottom: 0; width: 100%; }
}
@media (max-width: 640px) {
        .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .search-form .pill { grid-column: auto; align-self: end; justify-content: center; text-align: center; line-height: 1.15; padding-inline: 14px; }
  .search-form .pill .i { display: none; }
  .search-form input { padding-inline: 10px; }
  .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .cookie-actions .pill { flex: 1; justify-content: center; }
}

/* ===== Ridisegno 2/3: scheda alloggio ===== */
.listing-cols { grid-template-columns: minmax(0, 1fr) 410px; grid-template-areas: "about booking" "details booking"; row-gap: clamp(20px, 3vw, 40px); }
.lc-about { grid-area: about; } .lc-details { grid-area: details; } .listing-cols > .booking { grid-area: booking; }
.buybar { display: none; }
.desc { max-width: 50ch; text-wrap: pretty; }
.more > summary, .amen > summary { list-style: none; cursor: pointer; }
.more > summary::-webkit-details-marker, .amen > summary::-webkit-details-marker { display: none; }
.more > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 2px solid var(--corporate); border-radius: 999px; color: var(--corporate); font-weight: 700; }
.more > summary::after { content: "+"; } .more[open] > summary::after { content: "\2212"; }
.more[open] > summary { margin-bottom: 14px; }
.amen > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 24px; padding-top: 22px; border-top: 2px solid var(--cool); }
.amen > summary h2 { margin: 0; } .amen > summary::after { content: "+"; margin-left: auto; font-weight: 700; font-size: 1.4rem; color: var(--corporate); }
.amen[open] > summary::after { content: "\2212"; }
.notsup { margin: 14px 0 0; }
.spec { display: grid; grid-template-columns: minmax(8.5rem, 11rem) minmax(0, 1fr); gap: 10px 28px; margin-top: 0; padding: 22px 0; border-top: 2px solid var(--cool); }
.spec h3 { margin: 0; font-size: 1.2rem; } .spec > :not(h3) { grid-column: 2; }
.lc-details > .spec:first-child, .amen > .spec:first-of-type { border-top: 0; }
.amen .spec { padding: 14px 0; }
.chips.plain li { background: transparent; border: 2px solid var(--cool); font-weight: 500; } .chips span { overflow-wrap: anywhere; }
/* galleria compatta: 4 riquadri e il pulsante con tutte le foto */
.g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
.g-grid li { position: relative; aspect-ratio: 1; }
.g-grid li:nth-child(n + 5) { display: none; }
.g-0, .g-5, .g-6 { grid-column: auto; grid-row: auto; } .g-grid li:nth-child(6):last-child { grid-column: auto; }
.g-btn { border-radius: var(--r); } .g-btn img { aspect-ratio: auto; height: 100%; } .g-0 .g-btn img { object-position: 50% 50%; }
.g-all { position: absolute; right: 12px; bottom: 12px; z-index: 2; min-height: 44px; color: var(--corporate); }
.sleeve-photo .g-btn { position: absolute; inset: 0; border-radius: 0; }
.listing-hero .sleeve-photo.static { aspect-ratio: 5 / 4; }
.keyfacts li { padding: 8px 12px; font-size: 1rem; }
/* scheda prezzi: entra nella finestra, i pulsanti restano raggiungibili */
.booking { padding-bottom: 0; position: static; }
/* niente scorrimento interno: il riquadro resta fisso solo se sta tutto nello schermo */
@media (min-width: 1001px) and (min-height: 900px) { .booking { position: sticky; top: 20px; } }
.day { aspect-ratio: auto; height: 44px; } .cal-grid { gap: 2px 0; } .cal-nav { width: 44px; height: 44px; }
.b-actions { margin: 16px 0 0; }
.booking.has-dates .b-from { display: none; }
.booking.has-dates .b-pick { display: none; }
.day.start, .day.end { font-weight: 800; box-shadow: inset 0 0 0 2px var(--ink); }
.day[aria-disabled="true"]:not(.past) { background: var(--cool); opacity: 0.7; }
.lg-free { background: transparent; } .lg-off { background: var(--cool); }
/* lightbox: barra sotto la foto, sfondo pieno della palette */
.lightbox::backdrop { background: #002547; }
.lightbox img { height: calc(100dvh - 240px); object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.lb-prev, .lb-next { position: static; } .lb-cap { margin: 0; min-width: 11rem; }
@media (max-width: 1000px) {
  .listing-cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "about" "booking" "details"; }
  .listing-cols > .booking { position: static; max-height: none; overflow: visible; padding: 16px; }
  .b-actions { position: static; box-shadow: none; margin: 0; padding: 0; }
  .listing-hero .sleeve-photo { order: -1; } .lh-dates { display: none; }
  .buybar { position: fixed; inset: auto 0 0 0; z-index: 35; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px clamp(16px, 4vw, 32px) calc(10px + env(safe-area-inset-bottom)); background: #fff; color: var(--ink); box-shadow: 0 -14px 24px -16px rgba(0, 0, 0, 0.35); transition: transform 0.45s var(--ease); }
  .buybar.away { transform: translateY(110%); }
  .buybar strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
  .buybar .pill-solid { background: var(--corporate); color: #fff; }
  .page-listing { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .spec { grid-template-columns: minmax(0, 1fr); } .spec > :not(h3) { grid-column: 1; }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-0 { grid-column: auto; }
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Zone ===== */
.other-zones .pill { min-height: 44px; }

/* ===== Dopo la verifica misurata ===== */
.site-footer { --ring: #FFFFFF; }
.buybar { --ring: var(--corporate); }
.search-form > label, .search-form input, .search-form select { min-width: 0; }
.sleeve-photo .sleeve-label { transition: opacity 0.6s var(--ease), visibility 0.6s; }
.sleeve-photo .sleeve-label:not(.on) { visibility: hidden; }
html:has(#cookie:not([hidden])) { scroll-padding-bottom: 220px; }
.cookie-actions .pill { min-height: 44px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.chk { min-height: 44px; }
.zp span { min-height: 44px; align-items: center; }
.crumbs a, .where a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a { padding-block: 10px; } .nav .lang { min-height: 44px; display: inline-flex; align-items: center; }
.day[aria-disabled="true"]:not(.past) { opacity: 1; color: var(--ink); }
.lg-off { opacity: 1; color: var(--ink); }
/* Pulsante di ricerca visibile sulla scheda bianca; gerarchia dei titoli della scheda piu marcata */
.search .pill-solid { background: var(--corporate); color: #fff; }
.search .pill-solid:hover { background: var(--corporate-dark); }

/* Ritocchi finali dalla revisione */
.grid.fit { grid-template-columns: repeat(auto-fit, minmax(290px, 520px)); justify-content: start; }
.plainlist li, .chips span { hyphens: manual; overflow-wrap: break-word; }
@media (max-width: 1000px) { .grid.fit { grid-template-columns: minmax(0, 1fr); } }

/* miniature nella galleria a schermo intero */
.lb-thumbs { display: flex; gap: 8px; margin-top: 12px; padding: 4px 2px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.4) transparent; }
.lb-th { flex: none; width: 96px; height: 72px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #00376B; opacity: 0.55; cursor: pointer; scroll-snap-align: center; transition: opacity 0.2s, outline-color 0.2s; outline: 3px solid transparent; outline-offset: 0; }
.lb-th:hover { opacity: 0.9; }
.lb-th.is-active { opacity: 1; outline-color: #fff; }
.lb-th:focus-visible { outline-color: #3BDC8D; opacity: 1; }
.lb-th img { display: block; width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: cover; }
@media (max-width: 700px) { .lb-th { width: 72px; height: 54px; } .lightbox img { height: calc(100dvh - 220px); } }
