
:root {
  --terracotta: #C25E3A;
  --terracotta-2: #A04527;
  --cobalt: #1E456C;
  --cobalt-2: #143352;
  --sand: #F2EAD9;
  --sand-2: #E8DDC4;
  --olive: #6B7F5F;
  --cream: #FBF7EE;
  --ink: #2A1F19;
  --ink-80: rgba(42,31,25,0.82);
  --ink-60: rgba(42,31,25,0.58);
  --ink-40: rgba(42,31,25,0.38);
  --ink-20: rgba(42,31,25,0.18);
  --line: rgba(42,31,25,0.14);
  --gold: #D9A648;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin:0!important; padding:0!important; max-width:100vw!important; width:100%!important; overflow-x:clip!important; }
main { display: block; width: 100%; }
body > nav, body > main, body > main > section, body > footer {
  width: 100vw !important; max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
}
body { font-family: var(--font-sans); background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; background: var(--sand-2); }
img.broken { background: linear-gradient(135deg, var(--sand-2) 0%, var(--sand) 100%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--terracotta); color: var(--cream); }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 12px var(--gutter); display: flex; justify-content: space-between; align-items: center; transition: all 0.4s var(--ease); color: var(--ink); background: rgba(251,247,238,0.94); backdrop-filter: blur(14px); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-brand img { height: 54px; width: auto; display: block; background: transparent; }
.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu a { font-size: 13px; letter-spacing: 0.04em; font-weight: 500; }
.nav-cta { background: var(--terracotta); color: var(--cream); padding: 11px 22px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.nav-cta:hover { background: var(--terracotta-2); }
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
  .nav-burger span { width: 22px; height: 2px; background: currentColor; transition: transform 0.4s ease, opacity 0.3s ease; }
}
.nav-drawer { position: fixed; inset: 0; z-index: 999; background: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease); padding: 90px 24px 60px; overflow-y: auto; }
.nav-drawer::before { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(42,31,25,0.18); pointer-events: none; }
.nav-drawer .drawer-eyebrow { font-family: var(--font-hand); font-size: 28px; color: var(--terracotta); transform: rotate(-3deg); margin-bottom: 8px; opacity: 0; transition: opacity 0.5s var(--ease) 0.1s; }
.nav-drawer.open { opacity: 1; visibility: visible; }
.nav-drawer.open .drawer-eyebrow { opacity: 1; }
.nav-drawer a { color: var(--ink); font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 400; line-height: 1; opacity: 0; transform: translateY(12px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.3s; position: relative; padding-bottom: 6px; }
.nav-drawer a:not(.drawer-cta)::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--gold); transform: translateX(-50%); transition: width 0.4s var(--ease); }
.nav-drawer a:not(.drawer-cta):hover { color: var(--terracotta); }
.nav-drawer a:not(.drawer-cta):hover::after { width: 60%; }
.nav-drawer.open a { opacity: 1; transform: translateY(0); }
.nav-drawer.open a:nth-child(2) { transition-delay: 0.12s; }
.nav-drawer.open a:nth-child(3) { transition-delay: 0.18s; }
.nav-drawer.open a:nth-child(4) { transition-delay: 0.24s; }
.nav-drawer.open a:nth-child(5) { transition-delay: 0.30s; }
.nav-drawer .drawer-cta { margin-top: 24px; padding: 16px 36px; background: var(--gold); color: var(--ink); border-radius: 0; font-family: var(--font-sans); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.nav-drawer .drawer-cta:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.nav-drawer-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; background: var(--cream); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.nav-drawer-close:hover { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); transform: rotate(90deg); }
body.menu-open { overflow: hidden; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 18px; transition: color 0.3s, gap 0.3s; }
.breadcrumb::before { content: '\2190'; color: var(--terracotta); }
.breadcrumb:hover { color: var(--terracotta); gap: 12px; }

/* HERO / TITLE */
.pd-hero-sec { padding: 118px 0 0; }
.sec-label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-60); font-weight: 600; }
.pd-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin-top: 8px; }
.pd-title em { font-style: italic; color: var(--terracotta); }
.pd-subline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 15px; color: var(--ink-80); }
.pd-subline .dot { color: var(--ink-40); }
.pd-rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.pd-rating svg { color: var(--gold); }

/* MOSAIC 1+4 */
.pd-mosaic-sec { padding: 22px 0 0; }
.pd-mosaic { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; border-radius: 14px; overflow: hidden; aspect-ratio: 16/7.4; }
.pd-mosaic-main, .pd-mosaic-cell { position: relative; overflow: hidden; cursor: pointer; background: var(--sand-2); display: block; border: 0; padding: 0; }
.pd-mosaic-main img, .pd-mosaic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.pd-mosaic-main:hover img, .pd-mosaic-cell:hover img { transform: scale(1.05); }
.pd-mosaic-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.pd-show-all { position: absolute; right: 20px; bottom: 20px; z-index: 3; background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px -8px rgba(42,31,25,0.35); transition: transform 0.3s var(--ease), background 0.3s; }
.pd-show-all svg { width: 15px; height: 15px; }
.pd-show-all:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
@media (max-width: 800px) {
  .pd-mosaic { grid-template-columns: 1fr; aspect-ratio: 4/3; border-radius: 10px; }
  .pd-mosaic-grid { display: none; }
  .pd-show-all { right: 14px; bottom: 14px; padding: 9px 16px; font-size: 11.5px; }
}

/* BODY GRID */
.pd-body-sec { padding: 46px 0 8px; }
.pd-body-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.pd-col-main { min-width: 0; }
.pd-col-side { position: relative; align-self: stretch; }
.pd-divider { height: 1px; background: var(--line); margin: 32px 0; }
@media (max-width: 980px) { .pd-body-grid { grid-template-columns: 1fr; } .pd-col-side { order: -1; } }

.pd-highlights { display: flex; flex-direction: column; gap: 22px; }
.pd-highlight { display: flex; gap: 16px; align-items: flex-start; }
.pd-highlight .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sand-2); color: var(--terracotta); display: flex; align-items: center; justify-content: center; }
.pd-highlight .ico svg { width: 19px; height: 19px; }
.pd-highlight b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.pd-highlight p { font-size: 13.5px; color: var(--ink-60); line-height: 1.5; }

.pd-section h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 24px); color: var(--ink); margin-bottom: 16px; letter-spacing: -0.01em; }
.pd-section .prose p { font-size: 15px; line-height: 1.75; color: var(--ink-80); margin-bottom: 14px; }

.pd-sleep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pd-sleep-card { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; background: var(--sand); }
.pd-sleep-card .ico { flex: none; width: 38px; height: 38px; color: var(--cobalt); }
.pd-sleep-card b { display: block; font-size: 14.5px; color: var(--ink); }
.pd-sleep-card p { font-size: 12.5px; color: var(--ink-60); margin-top: 2px; }
@media (max-width: 560px) { .pd-sleep-grid { grid-template-columns: 1fr; } }

.pd-amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
@media (max-width: 560px) { .pd-amenities { grid-template-columns: 1fr; } }
.pd-amenity { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--ink-80); }
.pd-amenity .ico { flex: none; width: 28px; height: 28px; color: var(--olive); display: flex; align-items: center; justify-content: center; }
.pd-amenity .ico svg { width: 19px; height: 19px; }

/* BOOKING CARD */
.pd-booking-card { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: var(--cream); box-shadow: 0 30px 60px -30px rgba(42,31,25,0.28); }
.pd-booking-title { font-family: var(--font-display); font-size: 19px; font-weight: 500; font-style: italic; color: var(--ink); margin-bottom: 18px; }
.pd-booking-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pd-date-box { padding: 10px 14px; border-right: 1px solid var(--line); }
.pd-date-box:last-child { border-right: 0; }
.pd-date-box label { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 4px; }
.pd-date-box input { width: 100%; border: 0; background: transparent; font-size: 13.5px; font-weight: 500; color: var(--ink); font-family: var(--font-sans); cursor: pointer; }
.pd-guests { position: relative; margin-top: 10px; }
.pd-guests-toggle { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: transparent; }
.pd-guests-toggle .lbl { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 4px; }
.pd-guests-toggle .val { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.pd-guests-toggle svg { width: 13px; height: 13px; color: var(--ink-60); transition: transform 0.3s; flex: none; }
.pd-guests.open .pd-guests-toggle svg { transform: rotate(180deg); }
.pd-guests-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 20px 44px -14px rgba(42,31,25,0.3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 20;
}
.pd-guests.open .pd-guests-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.pd-guest-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; gap: 16px; }
.pd-guest-row b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.pd-counter { display: flex; align-items: center; gap: 12px; flex: none; }
.pd-counter button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 15px; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.pd-counter button:hover:not(:disabled) { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.pd-counter button:disabled { opacity: 0.35; cursor: not-allowed; }
.pd-counter span { min-width: 16px; text-align: center; font-weight: 600; }
.pd-guests-max { font-size: 11.5px; color: var(--ink-60); margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pd-cta { width: 100%; margin-top: 18px; background: var(--terracotta); color: var(--cream); border-radius: 10px; padding: 15px 18px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.3s, transform 0.3s, box-shadow 0.3s; box-shadow: 0 14px 30px -12px rgba(194,94,58,0.55); border: 0; cursor: pointer; }
.pd-cta:hover { background: var(--terracotta-2); transform: translateY(-2px); }
.pd-note { margin-top: 12px; font-size: 11.5px; color: var(--ink-60); text-align: center; line-height: 1.5; }

/* COSE DA SAPERE */
.pd-know-sec { padding: 60px 0 100px; background: var(--sand); border-top: 1px solid var(--line); margin-top: 44px; }
.pd-know-title { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(24px, 3vw, 32px); color: var(--ink); margin-bottom: 36px; letter-spacing: -0.015em; }
.pd-know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .pd-know-grid { grid-template-columns: 1fr; gap: 18px; } }
.pd-know-card { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px 22px; box-shadow: 0 18px 40px -30px rgba(42,31,25,0.22); }
.pd-know-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--sand-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--terracotta); margin-bottom: 16px; }
.pd-know-ico svg { width: 21px; height: 21px; }
.pd-know-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pd-know-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pd-know-card li { font-size: 14px; color: var(--ink-80); line-height: 1.55; padding: 12px 0 12px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.pd-know-card li:last-child { border-bottom: 0; padding-bottom: 2px; }
.pd-know-card li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* LIGHTBOX — scroll verticale, un solo close, niente frecce */
.pd-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,15,10,0.96); display: none; flex-direction: column; }
.pd-lightbox.open { display: flex; }
.pd-lightbox-top { display: flex; justify-content: flex-end; padding: 18px clamp(16px, 3vw, 32px); }
.pd-lightbox-close { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(251,247,238,0.08); border: 1px solid rgba(251,247,238,0.22); cursor: pointer; }
.pd-lightbox-close::before, .pd-lightbox-close::after { content:''; position:absolute; left:50%; top:50%; width:16px; height:1.5px; background: var(--cream); }
.pd-lightbox-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.pd-lightbox-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.pd-lightbox-scroll { flex: 1; overflow-y: auto; padding-bottom: 60px; }
.pd-lightbox-counter { text-align: center; color: rgba(251,247,238,0.55); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 0 18px; }
.pd-lightbox-scroll .row { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 0 clamp(16px,3vw,32px); }
.pd-lightbox-scroll .row img { width: 100%; border-radius: 6px; }

/* MOBILE BAR */
.pd-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px rgba(42,31,25,0.14); padding: 12px var(--gutter); display: none; align-items: center; justify-content: space-between; gap: 14px; }
.pd-mobile-bar-dates { font-size: 12px; color: var(--ink-60); line-height: 1.3; }
.pd-mobile-bar-dates b { display: block; font-size: 13.5px; color: var(--ink); }
.pd-mobile-bar-btn { flex: none; background: var(--terracotta); color: var(--cream); padding: 13px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 0; cursor: pointer; }
@media (max-width: 980px) { .pd-mobile-bar { display: flex; } body { padding-bottom: 76px; } }

.flatpickr-calendar { background: var(--cream)!important; border-radius: 4px!important; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.2)!important; font-family: var(--font-sans)!important; border: 1px solid var(--ink-20)!important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.inRange { background: var(--terracotta)!important; border-color: var(--terracotta)!important; }
.flatpickr-day.inRange { background: rgba(194,94,58,0.18)!important; border-color: transparent!important; color: var(--ink)!important; box-shadow: none!important; }
.flatpickr-day:hover { background: rgba(194,94,58,0.18)!important; }
.flatpickr-day.today { border-color: var(--terracotta)!important; }
.flatpickr-current-month { font-family: var(--font-display)!important; font-style: italic!important; }

/* FOOTER */
footer { background: var(--ink); color: var(--sand); padding: 64px var(--gutter) 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-brand .footer-logo { height: 130px; width: auto; background: transparent; margin-bottom: 16px; }
.footer-brand p { color: rgba(242,234,217,0.7); font-size: 14px; max-width: 36ch; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: rgba(242,234,217,0.75); font-size: 14px; margin-bottom: 8px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(242,234,217,0.15); margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(242,234,217,0.5); }
.footer-bottom a { color: var(--gold); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-legal { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px var(--gutter) 0; font-size: 12px; color: rgba(242,234,217,0.6); border-top: 1px solid rgba(242,234,217,0.12); font-family: var(--font-display); font-style: italic; font-size: 14px; }
.footer-legal a { color: rgba(242,234,217,0.7); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.footer-legal a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-legal .sep { width: 3px; height: 3px; background: rgba(242,234,217,0.3); border-radius: 50%; }
@media (max-width: 600px) { .footer-legal { gap: 12px; font-size: 13px; } .footer-legal .sep { display: none; } }

.cookie-banner { position: fixed; left: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 150; background: var(--ink); color: var(--cream); border-radius: 4px; box-shadow: 0 30px 80px rgba(42,31,25,0.45); padding: clamp(20px, 2.5vw, 26px) clamp(22px, 3vw, 32px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s var(--ease); max-width: 1080px; margin: 0 auto; border: 1px solid rgba(217,166,72,0.25); }
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-text { font-size: 13.5px; line-height: 1.6; color: rgba(251,247,238,0.85); }
.cookie-banner-text h5 { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 20px; color: var(--cream); margin-bottom: 6px; letter-spacing: -0.01em; }
.cookie-banner-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-text a:hover { color: var(--cream); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.cookie-btn { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: all .25s ease; border: 1px solid transparent; white-space: nowrap; }
.cookie-btn.ghost { background: transparent; color: rgba(251,247,238,0.8); border-color: rgba(251,247,238,0.22); }
.cookie-btn.ghost:hover { color: var(--ink); border-color: var(--cream); background: var(--cream); }
.cookie-btn.primary { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.cookie-btn.primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cookie-btn.link { background: transparent; color: rgba(251,247,238,0.6); border: 0; padding: 12px 10px; text-decoration: underline; text-underline-offset: 4px; }
.cookie-btn.link:hover { color: var(--cream); }
@media (max-width: 820px) { .cookie-banner { grid-template-columns: 1fr; gap: 16px; padding: 20px 20px 18px; } .cookie-banner-actions { justify-content: flex-start; } .cookie-btn { flex: 1 1 calc(50% - 5px); text-align: center; padding: 12px 10px; } .cookie-btn.link { flex-basis: 100%; } }

.legal-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 48px); background: rgba(42,31,25,0.78); backdrop-filter: saturate(1.1) blur(6px); -webkit-backdrop-filter: saturate(1.1) blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.legal-overlay.open { display: flex; opacity: 1; }
.legal-card { background: var(--cream); color: var(--ink); width: 100%; max-width: 860px; max-height: 92vh; border-radius: 4px; box-shadow: 0 40px 100px rgba(42,31,25,0.5); display: flex; flex-direction: column; overflow: hidden; transform: translateY(16px) scale(0.98); transition: transform .45s var(--ease); border: 1px solid var(--sand-2); }
.legal-overlay.open .legal-card { transform: translateY(0) scale(1); }
.legal-head { padding: 30px clamp(24px, 4vw, 44px) 22px; border-bottom: 1px solid rgba(42,31,25,0.1); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; background: var(--cream); position: sticky; top: 0; z-index: 2; }
.legal-head .kicker { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--terracotta-2); font-weight: 600; display: block; margin-bottom: 8px; }
.legal-head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.legal-head h3 em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.legal-head .updated { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); margin-top: 8px; }
.legal-close { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-20); background: transparent; cursor: pointer; color: var(--ink); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.legal-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: rotate(90deg); }
.legal-close::before, .legal-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; }
.legal-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.legal-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.legal-body { padding: 24px clamp(24px, 4vw, 44px) clamp(32px, 5vw, 48px); overflow-y: auto; flex: 1; font-size: 14.5px; line-height: 1.75; color: var(--ink-80); overscroll-behavior: contain; }
.legal-body .lead { font-size: 15.5px; font-family: var(--font-display); font-style: italic; color: var(--ink-80); margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(42,31,25,0.1); }
.legal-body h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--ink); margin-top: 34px; margin-bottom: 12px; letter-spacing: -0.01em; }
.legal-body h4:first-of-type { margin-top: 0; }
.legal-body h5 { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-top: 22px; margin-bottom: 10px; }
.legal-body p { margin-bottom: 12px; }
.legal-body p strong, .legal-body li strong { color: var(--ink); font-weight: 700; }
.legal-body ul, .legal-body ol { padding-left: 20px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--terracotta-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--terracotta); }
.legal-body .callout { background: var(--sand-2); border-left: 3px solid var(--terracotta); padding: 14px 18px; margin: 18px 0; font-size: 14px; border-radius: 2px; }
.legal-body .placeholder { display: inline-block; background: rgba(217,166,72,0.18); color: var(--terracotta-2); padding: 1px 8px; border-radius: 3px; font-weight: 600; font-size: 0.95em; border: 1px dashed var(--gold); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 13.5px; }
.legal-body table th, .legal-body table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(42,31,25,0.1); vertical-align: top; }
.legal-body table th { font-family: var(--font-sans); font-weight: 700; color: var(--ink); background: var(--sand-2); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-body table td { color: var(--ink-80); }
.legal-body .cookie-block { background: #fff; border: 1px solid rgba(42,31,25,0.1); border-radius: 3px; padding: 18px 22px; margin: 16px 0; }
.legal-body .cookie-block h5 { margin-top: 0; margin-bottom: 8px; }
.legal-body .cookie-block .tag { display: inline-block; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; vertical-align: 1px; }
.legal-body .tag-tech { background: rgba(42,31,25,0.1); color: var(--ink); }
.legal-body .tag-third { background: rgba(194,94,58,0.18); color: var(--terracotta-2); }
.legal-body .cookie-block dl { margin-top: 8px; font-size: 13px; }
.legal-body .cookie-block dl div { display: grid; grid-template-columns: 150px 1fr; padding: 6px 0; border-bottom: 1px dashed rgba(42,31,25,0.1); }
.legal-body .cookie-block dl div:last-child { border-bottom: 0; }
.legal-body .cookie-block dt { font-weight: 700; color: var(--ink); font-size: 12px; }
.legal-body .cookie-block dd { color: var(--ink-80); font-size: 13px; }
.legal-body .foot-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(42,31,25,0.1); font-size: 12.5px; color: var(--ink-60); font-family: var(--font-display); font-style: italic; font-size: 14px; }
.cookie-prefs-card { max-width: 620px; }
.cookie-prefs-body { padding: 22px 32px 8px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.6; color: var(--ink-80); }
.cookie-prefs-body p { margin-bottom: 12px; }
.cookie-prefs-body a { color: var(--terracotta-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-category { padding: 16px 0; border-bottom: 1px solid rgba(42,31,25,0.1); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: flex-start; }
.cookie-category:last-of-type { border-bottom: 0; }
.cookie-category-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.cookie-category-desc { font-size: 13px; color: var(--ink-60); line-height: 1.55; }
.cookie-category .status { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); margin-top: 6px; font-weight: 700; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; background: var(--ink-20); border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.switch .slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: var(--cream); border-radius: 50%; transition: transform .2s var(--ease); }
.switch input:checked + .slider { background: var(--terracotta); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: rgba(194,94,58,0.55); cursor: not-allowed; }
.cookie-prefs-foot { padding: 18px 32px 24px; border-top: 1px solid rgba(42,31,25,0.1); display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-prefs-foot .cookie-btn.ghost { color: var(--ink-60); border-color: var(--ink-20); }
.cookie-prefs-foot .cookie-btn.ghost:hover { color: var(--cream); border-color: var(--ink); background: var(--ink); }
.cookie-prefs-foot .cookie-btn.primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cookie-prefs-foot .cookie-btn.primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
@media (max-width: 500px) { .cookie-prefs-body, .cookie-prefs-foot, .legal-head { padding-left: 20px; padding-right: 20px; } .cookie-prefs-foot { flex-direction: column; } .cookie-prefs-foot .cookie-btn { width: 100%; text-align: center; } }
body.no-scroll { overflow: hidden; }
