/* =====================================================================
   MASSERIA CECORA — home
   Layout "a capitoli" (stesso impianto di villaruffimykonos.com) con la
   palette del Salento: pietra bianca (fondi molto chiari), pietra leccese
   (accenti caldi color miele), luce dorata. Revisione del 24/09/2026.
   ===================================================================== */
:root {
  --bianco: #FCFAF5;      /* pietra bianca: fondo principale */
  --bianco-2: #F7F2E8;    /* fondo delle sezioni alternate */
  --pietra: #EFE5D2;      /* pietra leccese chiara */
  --pietra-2: #E2D2B3;    /* pietra leccese */
  --oro: #C9A35E;         /* luce dorata: dettagli decorativi */
  --leccese: #A87B3F;     /* accento: corsivi dei titoli, etichette */
  --leccese-2: #8A6230;   /* pulsanti (contrasto AA su chiaro) */
  --ulivo: #6F7650;       /* verde ulivo, uso minimo */
  --cream: #FFFDF8;
  --ink: #2B2219;
  --ink-80: rgba(43,34,25,0.84);
  --ink-60: rgba(43,34,25,0.62);
  --ink-40: rgba(43,34,25,0.40);
  --ink-20: rgba(43,34,25,0.18);
  --ink-10: rgba(43,34,25,0.09);
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --gutter: clamp(20px, 4vw, 56px);
  --read: 720px;
  --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:hidden!important; }
html { scroll-behavior: smooth; }
main { display: block; width: 100%; }
body > nav, body > main, body > main > section, body > main > header, body > footer, body > main > div.full-bleed {
  width: 100vw !important; max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
}
body { font-family: var(--font-sans); background: var(--bianco); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; background: var(--pietra); }
img.broken { background: linear-gradient(135deg, var(--pietra) 0%, var(--bianco) 100%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--leccese); color: var(--cream); }

/* grana di carta, appena percettibile, tono pietra */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.66 0 0 0 0 0.55 0 0 0 0 0.4 0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1; opacity: 0.55;
}
body > * { position: relative; z-index: 2; }

/* ---------------- NAV ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: all 0.4s var(--ease); color: var(--cream); }
.nav.scrolled { background: rgba(252,250,245,0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); padding: 12px var(--gutter); box-shadow: 0 2px 20px rgba(43,34,25,0.06); }
.nav-brand { font-family: var(--font-display); font-weight: 500; font-size: 25px; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.nav-brand em { font-style: italic; color: var(--oro); }
.nav.scrolled .nav-brand em { color: var(--leccese); }
.nav-menu { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-menu a { font-size: 13px; letter-spacing: 0.04em; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--oro); }
.nav.scrolled .nav-menu a:hover { color: var(--leccese); }
.nav-cta { background: var(--leccese-2); color: var(--cream); padding: 11px 24px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background 0.3s; }
.nav-cta:hover { background: var(--ink); }
.nav-burger { display: none; }
@media (max-width: 1080px) { .nav-menu { gap: 18px; } .nav-menu a { font-size: 12px; } }
@media (max-width: 960px) {
  .nav-menu li:not(.nav-lang) { display: none; }
  .nav-menu { gap: 0; margin-left: auto; }
  .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-brand { font-size: 22px; }
}

/* Language switcher */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: inherit; border: 1.5px solid currentColor; background: transparent; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.nav.scrolled .lang-btn { border-color: var(--ink-20); }
.lang-btn:hover { background: var(--oro); border-color: var(--oro); color: var(--ink); }
.lang-cur { font-weight: 700; }
.lang-arr { font-size: 8px; transition: transform 0.3s; opacity: 0.7; }
.lang-switch.open .lang-arr { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: var(--cream); border-radius: 10px; padding: 6px; min-width: 170px; box-shadow: 0 14px 36px -10px rgba(43,34,25,0.25); display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 200; border: 1px solid var(--ink-10); }
.lang-switch.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown button { text-align: left; padding: 10px 14px; border-radius: 6px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ink); background: transparent; border: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s, color 0.2s; }
.lang-dropdown button .code { font-size: 10px; letter-spacing: 0.2em; opacity: 0.5; }
.lang-dropdown button:hover { background: var(--bianco-2); color: var(--leccese-2); }
.lang-dropdown button.active { background: var(--leccese-2); color: var(--cream); }
.lang-dropdown button.active .code { opacity: 0.85; }
@media (max-width: 960px) { .lang-btn { padding: 6px 10px; font-size: 10px; } }

/* Google Translate chrome cleanup */
.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-banner-frame, .goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover, .goog-text-highlight { display: none !important; background: transparent !important; box-shadow: none !important; }
#goog-gt-tt { display: none !important; }
.goog-te-gadget { font-size: 0 !important; height: 0 !important; overflow: hidden !important; }
font[style*="background-color"], font.goog-text-highlight { background: transparent !important; box-shadow: none !important; }

/* Menu mobile a tutto schermo */
.nav-drawer { position: fixed; inset: 0; z-index: 999; background: var(--bianco); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; 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 var(--ink-20); pointer-events: none; }
.nav-drawer .drawer-eyebrow { font-family: var(--font-hand); font-size: 28px; color: var(--leccese); transform: rotate(-3deg); margin-bottom: 6px; }
.nav-drawer.open { opacity: 1; visibility: visible; }
.nav-drawer a { color: var(--ink); font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 7vw, 2.5rem); 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(--oro); transform: translateX(-50%); transition: width 0.4s var(--ease); }
.nav-drawer a:not(.drawer-cta):hover { color: var(--leccese); }
.nav-drawer a:not(.drawer-cta):hover::after { width: 60%; }
.nav-drawer.open a { opacity: 1; transform: translateY(0); }
.nav-drawer .drawer-cta { margin-top: 20px; padding: 16px 36px; background: var(--leccese-2); color: var(--cream); border-radius: 999px; font-family: var(--font-sans); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.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(--leccese-2); color: var(--cream); border-color: var(--leccese-2); 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); }
body.menu-open #azc-launcher, body.menu-open #azc-panel, body.menu-open .cookie-banner { display: none !important; }

/* ---------------- HERO: il mare del Salento ---------------- */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 620px; overflow: hidden; color: var(--cream); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: #1d2a30; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; background: transparent; }
/* velatura calda: la "luce particolare" del Salento sopra il turchese */
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(32,22,10,0.62) 0%, rgba(32,22,10,0.38) 42%, rgba(32,22,10,0.10) 75%),
  linear-gradient(180deg, rgba(32,22,10,0.35) 0%, rgba(32,22,10,0) 30%, rgba(32,22,10,0) 70%, rgba(32,22,10,0.45) 100%); }
.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2; width: 100%; height: 80px; }
.hero-content { position: relative; z-index: 3; padding: 0 var(--gutter); width: 100%; max-width: 1440px; margin: 0 auto; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; background: rgba(255,253,248,0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,253,248,0.32); border-radius: 999px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 30px; }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oro); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.5; transform: scale(1.3);} }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6.6vw, 5.8rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 17ch; margin-bottom: 24px; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero h1 em { font-style: italic; color: var(--cream); background: rgba(168,123,63,0.92); padding: 0 0.2em 0.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: none; }
.hero .subtitle { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.5; max-width: 40ch; margin-bottom: 36px; opacity: 0.96; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--leccese-2); color: var(--cream); padding: 17px 30px; border-radius: 999px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 12px; transition: all 0.3s var(--ease); box-shadow: 0 12px 40px -10px rgba(138,98,48,0.55); }
.btn-primary:hover { background: var(--ink); transform: translateY(-3px); }
.btn-ghost-light { background: transparent; color: var(--cream); padding: 17px 30px; border-radius: 999px; border: 1.5px solid rgba(255,253,248,0.6); font-weight: 600; font-size: 14px; transition: all 0.3s var(--ease); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; color: var(--leccese-2); padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--leccese); font-weight: 600; font-size: 14px; transition: all 0.3s var(--ease); }
.btn-ghost:hover { background: var(--leccese-2); border-color: var(--leccese-2); color: var(--cream); }
.hero-credit { position: absolute; right: var(--gutter); left: var(--gutter); text-align: right; bottom: 92px; z-index: 3; font-size: 11px; letter-spacing: 0.04em; color: rgba(255,253,248,0.8); text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
@media (max-height: 700px) { .hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); } .hero .subtitle { margin-bottom: 26px; } }
@media (max-width: 700px) {
  .hero { align-items: flex-end; }
  .hero-content { padding-bottom: 120px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(32,22,10,0.40) 0%, rgba(32,22,10,0.18) 35%, rgba(32,22,10,0.62) 100%); }
  .hero-credit { bottom: 84px; font-size: 10px; }
}

/* ---------------- CAPITOLI (colonna di lettura) ---------------- */
.chapter { padding: clamp(80px, 11vw, 136px) var(--gutter); background: var(--bianco); }
.chapter.alt { background: var(--bianco-2); }
.chapter-inner { max-width: var(--read); margin: 0 auto; }
#struttura { padding-bottom: 0; }
#struttura .chapter-quote { margin-bottom: 24px; }
.chapter-cluster { padding-top: clamp(8px, 2vw, 20px); padding-bottom: clamp(56px, 9vw, 100px); }
.chapter-num { font-family: var(--font-hand); color: var(--leccese); font-size: 36px; font-weight: 600; display: block; margin-bottom: 4px; transform: rotate(-3deg); }
.chapter-tag { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-60); font-weight: 600; margin-bottom: 28px; display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--oro); }
.chapter-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 40px; }
.chapter-h em { font-style: italic; color: var(--leccese); }
.chapter-body p { font-size: 17px; line-height: 1.8; color: var(--ink-80); margin-bottom: 22px; }
.chapter-body p strong { color: var(--ink); font-weight: 600; }
.chapter-body a { color: var(--leccese-2); border-bottom: 1px solid var(--oro); }
.chapter-body .first-p::first-letter { font-family: var(--font-display); font-size: 74px; font-weight: 400; float: left; line-height: 0.85; margin: 6px 14px 0 0; color: var(--leccese); }
.chapter-quote { margin: 56px 0; padding: 32px 40px; border-left: 4px solid var(--oro); background: rgba(201,163,94,0.10); font-family: var(--font-display); font-style: italic; font-size: 23px; color: var(--ink); line-height: 1.5; }
.chapter-quote cite { display: block; margin-top: 16px; font-size: 12px; font-style: normal; color: var(--ink-60); letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; }
.chapter-center { text-align: center; }
.chapter-center .chapter-tag { display: block; width: fit-content; margin: 0 auto 28px; }
.chapter-cta { text-align: center; margin-top: 52px; }
@media (max-width: 600px) { .chapter-quote { padding: 24px 22px; font-size: 20px; } .chapter-body p { font-size: 16px; } }

/* Parole chiave in evidenza (volte a stella, quadri, antiquariato) */
.dettagli-storici { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0 8px; }
.dettagli-storici li { background: var(--cream); border: 1px solid var(--ink-10); padding: 22px 20px 20px; text-align: center; }
.dettagli-storici .ds-ic { display: block; width: 34px; height: 34px; margin: 0 auto 10px; color: var(--leccese); }
.dettagli-storici strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink); line-height: 1.15; margin-bottom: 6px; }
.dettagli-storici span { font-family: var(--font-hand); font-size: 18px; color: var(--ink-60); line-height: 1.2; display: block; }
@media (max-width: 640px) { .dettagli-storici { grid-template-columns: 1fr; } }

/* FOTO A TUTTA LARGHEZZA CON CITAZIONE */
.full-bleed { height: 72vh; min-height: 480px; position: relative; overflow: hidden; margin: 0; }
.full-bleed img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.full-bleed.with-quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,22,10,0.22) 0%, rgba(32,22,10,0.50) 100%); }
.fb-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); color: var(--cream); }
.fb-overlay blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.5vw, 3rem); line-height: 1.3; max-width: 26ch; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.fb-overlay cite { display: block; margin-top: 22px; font-size: 12px; font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; font-family: var(--font-sans); }
@media (max-width: 700px) { .full-bleed { height: 52vh; min-height: 360px; } }

/* NUMERI */
.numbers-flex { background: var(--cream); padding: 60px var(--gutter); border-top: 1px dashed var(--ink-20); border-bottom: 1px dashed var(--ink-20); }
.numbers-flex-inner { max-width: 820px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nf { text-align: center; flex: 1 1 140px; }
.nf .v { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; color: var(--leccese); }
.nf .v em { font-style: italic; color: var(--oro); font-size: 0.55em; vertical-align: super; }
.nf .l { font-family: var(--font-hand); font-size: 19px; color: var(--ink-60); margin-top: 6px; transform: rotate(-2deg); display: inline-block; }

/* COLLAGE FOTO NEL CAPITOLO */
.photo-cluster { margin: 56px 0; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; height: 380px; }
.photo-cluster .pc-main, .photo-cluster .pc-side { overflow: hidden; border-radius: 3px; }
.photo-cluster .pc-side { display: flex; flex-direction: column; gap: 16px; }
.photo-cluster .pc-side > div { flex: 1; overflow: hidden; }
.photo-cluster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); cursor: zoom-in; }
.photo-cluster img:hover { transform: scale(1.04); }
.photo-cluster.rev { grid-template-columns: 1fr 2fr; }
.photo-cluster.rev .pc-main { order: 2; }
@media (max-width: 700px) { .photo-cluster, .photo-cluster.rev { grid-template-columns: 1fr; height: auto; } .photo-cluster .pc-main { height: 240px; order: 0 !important; } .photo-cluster .pc-side { flex-direction: row; } .photo-cluster .pc-side > div { height: 150px; } }

/* FIGURA CON DIDASCALIA */
.chapter-figure { margin: 48px 0 8px; }
.chapter-figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 3px; cursor: zoom-in; }
.chapter-figure figcaption, .feature figcaption { font-family: var(--font-hand); font-size: 19px; color: var(--ink-60); margin-top: 10px; text-align: center; }
.credit { display: block; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-40); margin-top: 4px; }

/* ELENCO "COME UNA POESIA" */
.inline-list { list-style: none; margin: 32px 0; }
.inline-list li { font-family: var(--font-display); font-size: 22px; color: var(--ink-80); padding: 12px 0; border-bottom: 1px dotted var(--ink-20); display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: baseline; line-height: 1.45; }
.inline-list .num-il { font-style: italic; color: var(--leccese); font-size: 18px; }
.inline-list em { color: var(--leccese); font-style: italic; }
@media (max-width: 600px) { .inline-list li { grid-template-columns: 36px 1fr; gap: 10px; font-size: 19px; } }

/* GALLERIA A POLAROID */
.polaroid-section { background: var(--bianco-2); padding: clamp(80px, 11vw, 136px) var(--gutter); position: relative; overflow: hidden; }
.polaroid-section .chapter-inner { max-width: 1200px; }
.polaroid-section .chapter-num { text-align: center; }
.polaroid-section .chapter-h { text-align: center; }
.polaroid-section .chapter-tag { display: block; text-align: center; margin: 0 auto 28px; width: fit-content; }
.polaroid-intro { text-align: center; max-width: 56ch; margin: -14px auto 0; font-size: 16px; color: var(--ink-60); }
.polaroid-grid { margin: 64px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1100px; }
.polaroid { background: var(--cream); padding: 12px 12px 58px; box-shadow: 0 8px 30px -10px rgba(43,34,25,0.22); cursor: zoom-in; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); position: relative; }
.polaroid:nth-child(odd) { transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid:nth-child(3n) { transform: rotate(-3deg); }
.polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.04); box-shadow: 0 24px 60px -10px rgba(43,34,25,0.32); z-index: 10; }
.polaroid { margin: 0; }
.polaroid .ph { display: block; overflow: hidden; aspect-ratio: 1; background: var(--pietra); }
.polaroid .ph img { width: 100%; height: 100%; object-fit: cover; }
/* foto verticali: sulla tela 16:9 hanno bande sfocate ai lati, nel quadrato si mostra solo la foto */
.polaroid.v .ph img { transform: scale(1.5); }
.polaroid .pcap { position: absolute; bottom: 14px; left: 14px; right: 14px; font-family: var(--font-hand); font-size: 19px; color: var(--ink-80); text-align: center; line-height: 1.1; }
.polaroid-cta { text-align: center; margin-top: 60px; }
.polaroid-cta button { background: var(--leccese-2); color: var(--cream); padding: 16px 32px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: background 0.3s; }
.polaroid-cta button:hover { background: var(--ink); }
.gallery-all { display: none !important; }
@media (max-width: 900px) { .polaroid-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (max-width: 500px) { .polaroid-grid { grid-template-columns: 1fr 1fr; gap: 16px; } .polaroid { padding: 8px 8px 44px; } .polaroid .pcap { font-size: 16px; bottom: 10px; } }

/* RIGHE "FOTO + TESTO" (frutti della terra, pizzica, cantine) */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1120px; margin: 0 auto; }
.feature + .feature { margin-top: clamp(72px, 9vw, 110px); }
.feature.rev .feature-media { order: 2; }
.feature-media { position: relative; margin: 0; }
.feature-media .fm-main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; box-shadow: 0 24px 60px -24px rgba(43,34,25,0.35); cursor: zoom-in; }
.feature-media .fm-small { position: absolute; width: 44%; aspect-ratio: 1; object-fit: cover; right: -22px; bottom: -34px; border: 10px solid var(--cream); box-shadow: 0 18px 40px -16px rgba(43,34,25,0.35); transform: rotate(3deg); cursor: zoom-in; }
.feature.rev .feature-media .fm-small { right: auto; left: -22px; transform: rotate(-3deg); }
.feature-text .chapter-tag { margin-bottom: 18px; }
.feature-text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.12; color: var(--ink); margin-bottom: 22px; }
.feature-text h3 em { font-style: italic; color: var(--leccese); }
.feature-text p { font-size: 16.5px; line-height: 1.8; color: var(--ink-80); margin-bottom: 18px; }
.feature-text p strong { color: var(--ink); font-weight: 600; }
.feature-text .hand { font-family: var(--font-hand); font-size: 24px; color: var(--leccese); display: inline-block; transform: rotate(-2deg); margin-top: 4px; }
.feature-text .feature-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--leccese-2); border-bottom: 1.5px solid var(--oro); padding-bottom: 2px; }
.feature-text .feature-link:hover { color: var(--ink); }
.feature figcaption { text-align: left; font-size: 17px; margin-top: 44px; }
/* con la fotina inclinata sotto-destra la didascalia resta nella meta' libera */
.feature-media.has-small figcaption { padding-right: 50%; }
.feature.rev .feature-media.has-small figcaption { padding-right: 0; padding-left: 50%; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.rev .feature-media { order: 0; }
  .feature-media .fm-small { width: 38%; right: 10px; bottom: -26px; }
  .feature.rev .feature-media .fm-small { left: 10px; }
}

/* SEZIONE LARGA (sfondo alternato) che contiene righe feature */
.band { padding: clamp(80px, 11vw, 136px) var(--gutter); background: var(--bianco-2); }
.band.pietra { background: var(--pietra); }
.band-head { max-width: var(--read); margin: 0 auto clamp(56px, 7vw, 80px); text-align: center; }
.band-head .chapter-tag { display: block; width: fit-content; margin: 0 auto 28px; }
.band-head p { font-size: 17px; line-height: 1.8; color: var(--ink-80); }

/* CHI SIAMO */
.host { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; max-width: 1080px; margin: 0 auto; }
.host-photo { position: relative; }
.host-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 12px solid var(--cream); box-shadow: 0 26px 60px -24px rgba(43,34,25,0.4); transform: rotate(-1.5deg); }
.host-photo .host-note { position: absolute; right: -14px; bottom: 26px; background: var(--leccese-2); color: var(--cream); font-family: var(--font-hand); font-size: 22px; padding: 8px 18px; transform: rotate(4deg); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.35); }
.host-letter p { font-size: 17px; line-height: 1.85; color: var(--ink-80); margin-bottom: 20px; }
.host-letter p.lead { font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.45; color: var(--ink); }
.host-sign { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--ink-20); font-family: var(--font-hand); font-size: 30px; color: var(--leccese); }
@media (max-width: 820px) { .host { grid-template-columns: 1fr; } .host-photo { max-width: 420px; margin: 0 auto; } }

/* LE SOLUZIONI */
.stays { background: var(--bianco-2); padding: clamp(80px, 11vw, 136px) var(--gutter); }
.stays .chapter-inner { max-width: 1200px; }
.stays .chapter-num, .stays .chapter-h { text-align: center; }
.stays .chapter-tag { display: block; width: fit-content; margin: 0 auto 28px; }
.stays-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stay-card { background: var(--cream); padding: 14px 14px 26px; box-shadow: 0 6px 22px -10px rgba(43,34,25,0.2), 0 1px 3px rgba(43,34,25,0.06); display: flex; flex-direction: column; position: relative; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.stay-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -16px rgba(43,34,25,0.3); }
.stay-card .sc-img { display: block; aspect-ratio: 4/3; overflow: hidden; }
.stay-card .sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.stay-card:hover .sc-img img { transform: scale(1.05); }
.stay-card .sc-stamp { position: absolute; top: -10px; right: -8px; width: 64px; height: 74px; background: var(--leccese-2); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; transform: rotate(7deg); border: 3px dashed var(--cream); text-align: center; line-height: 1.05; padding: 4px; }
.stay-card .sc-stamp b { font-size: 26px; font-weight: 500; }
.stay-card .sc-stamp small { font-size: 9px; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-sans); }
.stay-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.1; margin: 20px 8px 4px; color: var(--ink); }
.stay-card .sc-sub { font-family: var(--font-hand); font-size: 19px; color: var(--leccese); margin: 0 8px 12px; }
.stay-card p { font-size: 15px; line-height: 1.7; color: var(--ink-80); margin: 0 8px 14px; }
.stay-card ul { list-style: none; margin: 0 8px 20px; }
.stay-card li { font-size: 14px; color: var(--ink-80); padding: 7px 0; border-bottom: 1px dotted var(--ink-20); }
.stay-card li::before { content: "·"; color: var(--leccese); font-weight: 700; margin-right: 8px; }
.stay-card .sc-cta { margin: auto 8px 0; align-self: flex-start; }
.stays-more { text-align: center; margin-top: 48px; }
@media (max-width: 980px) { .stays-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stays-grid { grid-template-columns: 1fr; gap: 40px; } }

/* DINTORNI: CARTOLINE */
.postcards { background: var(--bianco); padding: clamp(80px, 11vw, 136px) var(--gutter); }
.postcards .chapter-inner { max-width: 1200px; }
.postcards .chapter-num { text-align: center; }
.postcards .chapter-h { text-align: center; max-width: 22ch; margin-left: auto; margin-right: auto; }
.postcards .chapter-tag { display: block; text-align: center; margin: 0 auto 28px; width: fit-content; }
.postcards-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; }
.postcard { background: var(--cream); padding: 14px; box-shadow: 0 6px 20px -8px rgba(43,34,25,0.18), 0 1px 3px rgba(43,34,25,0.08); position: relative; transition: transform 0.5s var(--ease); display: block; }
.postcard:nth-child(2n) { transform: rotate(1.5deg); }
.postcard:nth-child(3n) { transform: rotate(-1.5deg); }
.postcard:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); z-index: 5; }
.postcard .pc-img { aspect-ratio: 4/3; overflow: hidden; }
.postcard .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.postcard .pc-stamp { position: absolute; top: -8px; right: -6px; width: 66px; height: 74px; background: var(--leccese-2); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; transform: rotate(8deg); border: 3px dashed var(--cream); text-align: center; line-height: 1.1; padding: 4px; }
.postcard .pc-stamp .min { font-size: 16px; font-weight: 500; }
.postcard .pc-stamp .lab { font-size: 9px; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-sans); margin-top: 2px; }
.postcard .pc-body { padding: 16px 8px 8px; }
.postcard .pc-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 25px; line-height: 1.1; margin-bottom: 6px; color: var(--ink); }
.postcard .pc-body .desc { font-family: var(--font-hand); font-size: 19px; color: var(--ink-60); line-height: 1.25; display: block; }
.postcard .pc-body .credit { margin-top: 8px; }
.postcard.big { grid-column: span 1; }
.postcards-more { text-align: center; margin-top: 56px; }
@media (max-width: 900px) { .postcards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .postcards-grid { grid-template-columns: 1fr; gap: 52px 0; } }

/* DOMANDE (aperte, niente fisarmonica) */
.faqs { background: var(--bianco-2); padding: clamp(80px, 11vw, 136px) var(--gutter); }
.faqs .chapter-inner { max-width: 760px; }
.faqs .chapter-num { text-align: center; }
.faqs .chapter-h { text-align: center; }
.faqs .chapter-tag { display: block; text-align: center; margin: 0 auto 28px; width: fit-content; }
.faq-stack { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; }
.faq-block { padding: 22px 0; border-bottom: 1px dotted var(--ink-20); }
.faq-block h4 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 10px; color: var(--ink); line-height: 1.25; }
.faq-block p { font-size: 16px; line-height: 1.7; color: var(--ink-80); }

/* PRENOTA: VOUCHER */
.booking-section { background: var(--pietra); color: var(--ink); padding: clamp(80px, 11vw, 136px) var(--gutter); }
.booking-section .chapter-inner { max-width: 980px; }
.booking-section .chapter-num { text-align: center; }
.booking-section .chapter-tag { display: block; text-align: center; margin: 0 auto 28px; width: fit-content; }
.booking-section .chapter-h { text-align: center; }
.booking-intro { text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(17px, 2vw, 21px); color: var(--ink-80); max-width: 52ch; margin: -12px auto 0; }
.voucher { margin-top: 52px; background: var(--cream); color: var(--ink); border-radius: 4px; display: grid; grid-template-columns: 1fr 1.4fr; position: relative; box-shadow: 0 30px 80px -24px rgba(43,34,25,0.35); overflow: hidden; }
.voucher::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% / 2.4); width: 2px; background-image: radial-gradient(circle, var(--ink-20) 30%, transparent 30%); background-size: 2px 12px; background-repeat: repeat-y; }
.voucher-side { padding: 40px; background: var(--leccese-2); color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.voucher-side .vs-tag { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; }
.voucher-side .vs-title { font-family: var(--font-display); font-size: 32px; font-style: italic; margin-top: 8px; line-height: 1.1; }
.voucher-side .vs-bottom > div { margin-bottom: 12px; }
.voucher-side .vs-bottom small { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.voucher-side .vs-bottom span, .voucher-side .vs-bottom a.vs-link { display: block; font-family: var(--font-display); font-size: 18px; font-style: italic; }
.voucher-side .vs-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid rgba(255,253,248,0.6); border-radius: 999px; padding: 13px 18px; font-size: 13px; font-weight: 600; color: var(--cream); margin-bottom: 12px; transition: background 0.3s, color 0.3s; text-align: center; }
.voucher-side .vs-btn svg { flex-shrink: 0; }
.voucher-side .vs-btn:hover { background: var(--cream); color: var(--leccese-2); }
.voucher-side .vs-btn .btn-stack { display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
.voucher-side .vs-btn .btn-stack small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; opacity: 0.85; }
.voucher-side .vs-btn span, .voucher-side .vs-btn small { font-family: var(--font-sans); font-style: normal; }
.voucher-side .vs-btn .btn-stack > span { display: block; font-size: 13.5px; font-weight: 600; }
.voucher-form { padding: 40px; }
.voucher-form h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; font-style: italic; color: var(--leccese-2); font-weight: 500; }
.form-note { font-size: 13px; line-height: 1.55; color: var(--ink-60); margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leccese-2); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; background: var(--bianco-2); border: 1px solid transparent; border-radius: 6px; font-size: 15px; font-family: var(--font-sans); color: var(--ink); outline: none; transition: all 0.3s; }
.field input:focus, .field select:focus { background: var(--cream); border-color: var(--leccese); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.qty { display: flex; align-items: center; gap: 6px; padding: 4px; background: var(--bianco-2); border-radius: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; background: var(--leccese-2); color: var(--cream); font-size: 16px; font-weight: 600; flex-shrink: 0; }
.qty input { flex: 1; min-width: 0; text-align: center; background: transparent; border: 0; font-weight: 600; outline: none; padding: 4px 0; }
.btn-submit { width: 100%; background: var(--ink); color: var(--cream); padding: 16px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; margin-top: 8px; transition: background 0.3s; }
.btn-submit:hover { background: var(--leccese-2); }
.disclaimer { text-align: center; margin-top: 12px; font-size: 11.5px; color: var(--ink-60); }
@media (max-width: 800px) { .voucher { grid-template-columns: 1fr; } .voucher::before { display: none; } .voucher-side, .voucher-form { padding: 30px 24px; } }
@media (max-width: 520px) { .field-row, .field-row3 { grid-template-columns: 1fr; } }

/* MAPPA (OpenStreetMap, nessun cookie) */
.map-section { padding: 0; background: var(--pietra); }
.map-container { position: relative; width: 100%; height: 440px; z-index: 0; isolation: isolate; filter: sepia(18%) saturate(0.92); }

/* FOOTER chiaro */
footer { background: var(--bianco-2); color: var(--ink); padding: 64px var(--gutter) 26px; border-top: 1px solid var(--ink-10); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand h4 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; color: var(--ink); margin-bottom: 14px; }
.footer-brand h4 em { font-style: italic; color: var(--leccese); }
.footer-brand p { color: var(--ink-60); font-size: 14px; max-width: 38ch; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--leccese-2); margin-bottom: 16px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--ink-80); font-size: 14px; margin-bottom: 8px; transition: color 0.3s; }
.footer-col a:hover { color: var(--leccese-2); }
.footer-legal { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ink-10); font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--ink-60); }
.footer-legal a { color: var(--ink-80); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.footer-legal a:hover { color: var(--leccese-2); border-bottom-color: var(--oro); }
.footer-legal .sep { width: 3px; height: 3px; background: var(--ink-20); border-radius: 50%; }
.footer-credits { margin-top: 18px; font-size: 11.5px; line-height: 1.6; color: var(--ink-40); text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.footer-credits a { color: var(--ink-60); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { margin-top: 18px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-60); border-top: 1px solid var(--ink-10); }
.footer-bottom a { color: var(--leccese-2); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } .footer-legal { gap: 12px; } .footer-legal .sep { display: none; } }

/* LIGHTBOX */
.lb { position: fixed; inset: 0; z-index: 10001; background: rgba(30,23,15,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s; }
.lb.open { opacity: 1; visibility: visible; }
.lb-img { max-width: 90vw; max-height: 84vh; background: transparent; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.lb-close, .lb-arrow { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255,253,248,0.45); display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 28px; line-height: 1; transition: background 0.3s; }
.lb-close { top: 24px; right: 24px; }
.lb-close::before, .lb-close::after { content:""; position:absolute; width: 18px; height: 1.5px; background: currentColor; }
.lb-close::before { transform: rotate(45deg); } .lb-close::after { transform: rotate(-45deg); }
.lb-arrow.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-arrow.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-arrow:hover { background: var(--leccese-2); border-color: var(--leccese-2); }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--font-hand); font-size: 24px; color: var(--oro); }
@media (max-width: 600px) { .lb-arrow { width: 42px; height: 42px; } .lb-arrow.prev { left: 10px; } .lb-arrow.next { right: 10px; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1!important; transform:none!important; } html { scroll-behavior: auto; } }

.flatpickr-calendar { background: var(--cream)!important; border-radius: 4px!important; box-shadow: 0 20px 50px -10px rgba(43,34,25,0.25)!important; font-family: var(--font-sans)!important; border: 1px solid var(--ink-20)!important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--leccese-2)!important; border-color: var(--leccese-2)!important; }
.flatpickr-day:hover { background: rgba(168,123,63,0.18)!important; }
.flatpickr-day.today { border-color: var(--leccese)!important; }
.flatpickr-current-month { font-family: var(--font-display)!important; font-style: italic!important; }

/* =========================================================
   LEGALE · POLICY · COOKIE
========================================================= */
.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(43,34,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(201,163,94,0.3); }
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-text { font-size: 13.5px; line-height: 1.6; color: rgba(255,253,248,0.86); }
.cookie-banner-text h5 { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 21px; color: var(--cream); margin-bottom: 6px; }
.cookie-banner-text h5 em { color: var(--oro); }
.cookie-banner-text a { color: var(--oro); 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(255,253,248,0.82); border-color: rgba(255,253,248,0.25); }
.cookie-btn.ghost:hover { color: var(--ink); border-color: var(--cream); background: var(--cream); }
.cookie-btn.primary { background: var(--leccese); color: var(--cream); border-color: var(--leccese); }
.cookie-btn.primary:hover { background: var(--oro); border-color: var(--oro); color: var(--ink); }
.cookie-btn.link { background: transparent; color: rgba(255,253,248,0.65); 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(43,34,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(43,34,25,0.5); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pietra-2); }
.legal-head { padding: 30px clamp(24px, 4vw, 44px) 22px; border-bottom: 1px solid var(--ink-10); 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(--leccese-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); }
.legal-head h3 em { font-style: italic; color: var(--leccese); 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 var(--ink-10); }
.legal-body h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--ink); margin-top: 34px; margin-bottom: 12px; }
.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(--leccese-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-body .callout { background: var(--bianco-2); border-left: 3px solid var(--oro); padding: 14px 18px; margin: 18px 0; font-size: 14px; border-radius: 2px; }
.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 var(--ink-10); vertical-align: top; }
.legal-body table th { font-family: var(--font-sans); font-weight: 700; color: var(--ink); background: var(--bianco-2); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-body .cookie-block { background: #fff; border: 1px solid var(--ink-10); 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: var(--ink-10); color: var(--ink); }
.legal-body .tag-third { background: rgba(168,123,63,0.18); color: var(--leccese-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 var(--ink-10); }
.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 var(--ink-10); 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-category { padding: 16px 0; border-bottom: 1px solid var(--ink-10); 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(--leccese-2); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: rgba(138,98,48,0.55); cursor: not-allowed; }
.cookie-prefs-foot { padding: 18px 32px 24px; border-top: 1px solid var(--ink-10); 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(--leccese-2); border-color: var(--leccese-2); }
@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; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-menu a { white-space: nowrap; }
