/* Little Nest Palermo
   Palette: blu maiolica + limone su bianco calce. Layout: colonna unica a 1120px,
   finestre ad arco su campo di piastrelle, sezioni separate da filetti e non da card. */
/* Font ospitati nel sito (licenza SIL OFL, vedi cartella fonts/): nessuna richiesta a server di terzi */
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gloock-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --sea: #1b4f72;
  --sea-deep: #0e3450;
  --lemon: #f2c230;
  --chalk: #f4f6f2;
  --ink: #10293a;
  --stone: #d5dedb;
  --paper: #ffffff;
  --todo-bg: #fbe6a2;
  --todo-line: #b88a00;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Crect width='72' height='72' fill='%231b4f72'/%3E%3Cpath d='M36 6C40 22 50 32 66 36 50 40 40 50 36 66 32 50 22 40 6 36 22 32 32 22 36 6Z' fill='%23f2c230'/%3E%3Ccircle cx='36' cy='36' r='5' fill='%231b4f72'/%3E%3Ccircle cx='0' cy='0' r='10' fill='%23f4f6f2'/%3E%3Ccircle cx='72' cy='0' r='10' fill='%23f4f6f2'/%3E%3Ccircle cx='0' cy='72' r='10' fill='%23f4f6f2'/%3E%3Ccircle cx='72' cy='72' r='10' fill='%23f4f6f2'/%3E%3Ccircle cx='0' cy='0' r='4' fill='%231b4f72'/%3E%3Ccircle cx='72' cy='0' r='4' fill='%231b4f72'/%3E%3Ccircle cx='0' cy='72' r='4' fill='%231b4f72'/%3E%3Ccircle cx='72' cy='72' r='4' fill='%231b4f72'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--lemon); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lemon); color: var(--ink); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* Segnaposto da completare: visibili solo finché il body ha class="draft" */
.draft-bar { display: none; background: var(--lemon); color: var(--ink); font-size: .875rem; padding: 8px 20px; text-align: center; font-weight: 600; }
body.draft .draft-bar { display: block; }
body.draft .todo { background: var(--todo-bg); border-bottom: 2px dashed var(--todo-line); padding: 0 .25em; border-radius: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--stone); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--sea-deep); text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand span { font-family: var(--body); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-left: 8px; color: var(--sea); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--lemon); }
.header-end { display: flex; align-items: center; gap: 16px; }
.lang { font-weight: 700; font-size: .875rem; letter-spacing: .06em; text-decoration: none; color: var(--sea); }
.lang b { color: var(--ink); }

/* Pulsanti e campi */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--lemon); color: var(--ink); }
.btn-primary:hover { background: #ffd24d; }
.btn-ghost { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn-ghost:hover { background: var(--sea); color: var(--chalk); }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #9fb2bb; border-radius: 6px; padding: 11px 12px; }
.field textarea { min-height: 96px; resize: vertical; }

/* Hero */
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.hero-text { padding-bottom: 56px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 24px; color: var(--sea-deep); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 64%, var(--lemon) 64%); }
.hero p { max-width: 34em; font-size: 1.1875rem; margin: 0 0 16px; }
.hero .note { font-size: .9375rem; color: #3c5566; }
.tiles { background: var(--tile); background-size: 72px 72px; display: flex; justify-content: center; align-items: flex-end; padding: 40px 40px 0; min-height: 480px; }
.arch { width: min(100%, 320px); aspect-ratio: 3 / 4; background: var(--chalk); border: 6px solid var(--lemon); border-bottom: 0; border-radius: 999px 999px 0 0; display: grid; place-content: center; text-align: center; padding: 24px; gap: 6px; }
.arch strong { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; color: var(--sea-deep); }
.arch span { font-size: .9375rem; color: #3c5566; }

.avail { background: var(--sea-deep); color: var(--chalk); }
.avail form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; padding: 20px 0; align-items: end; }
.avail .btn { height: 48px; }

/* Sezioni */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--stone); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: 0 0 20px; color: var(--sea-deep); text-wrap: balance; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.lead { font-size: 1.1875rem; max-width: 34em; }
.facts { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--stone); }
.facts dt { font-weight: 700; padding-right: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chip { border: 1.5px solid var(--sea); border-radius: 999px; padding: 5px 14px; font-size: .9375rem; }
.small { font-size: .9375rem; color: #3c5566; }

/* Foto */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 12px; margin-top: 32px; }
.shot { position: relative; overflow: hidden; margin: 0; background: var(--sea-deep); border-radius: 4px; }
.shot:first-child { grid-column: span 2; grid-row: span 2; }
.shot:last-child:nth-child(5) { grid-column: span 2; }
.shot::before { content: ""; position: absolute; inset: 0; background: var(--tile); background-size: 72px 72px; opacity: .45; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--chalk); padding: 6px 12px; border-radius: 3px; font-weight: 700; font-size: .9375rem; }
.shot figcaption small { display: block; font-weight: 400; font-size: .8125rem; color: #3c5566; }

/* Dove */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.mode { border-top: 6px solid var(--lemon); padding-top: 16px; }
.mode h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; margin-bottom: 12px; color: var(--sea-deep); }
.mode ul { list-style: none; margin: 0; padding: 0; }
.mode li { padding: 9px 0; border-bottom: 1px solid var(--stone); }
.mode li span { display: block; font-size: .875rem; color: #3c5566; }

/* Prenota */
.book { background: var(--sea-deep); color: var(--chalk); position: relative; padding-top: 132px; border-top: 0 !important; }
.book::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 36px; background: var(--tile); background-size: 36px 36px; }
.book h2 { color: var(--chalk); }
.book a { color: var(--lemon); }
.book-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.book-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.book-points li { padding-left: 28px; position: relative; }
.book-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; background: var(--lemon); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.panel { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 28px; }
.panel h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--sea-deep); }
.widget-placeholder { border: 2px dashed var(--sea); background: #eef3f5; border-radius: 4px; padding: 20px; margin-bottom: 28px; }
.widget-placeholder p { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.form-grid .wide { grid-column: 1 / -1; }
.summary { margin: 0 0 16px; font-weight: 600; min-height: 1.6em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { margin: 14px 0 0; font-size: .875rem; color: #3c5566; }

/* Info e FAQ */
.info { grid-template-columns: 1fr 1fr; }
details { border-bottom: 1px solid var(--stone); }
details:first-of-type { border-top: 2px solid var(--ink); }
summary { cursor: pointer; font-weight: 700; padding: 18px 40px 18px 0; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--sea); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; max-width: 40em; }

/* Footer */
.site-footer { background: var(--sea-deep); color: var(--chalk); padding: 48px 0; font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; }
.site-footer a { color: var(--lemon); }
.site-footer p { margin: 0 0 6px; }

/* Pagine di testo (privacy) */
.prose { max-width: 44em; padding: 64px 20px 96px; margin: 0 auto; }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); color: var(--sea-deep); margin: 0 0 24px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero-grid, .split, .book-grid, .info { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { padding-bottom: 0; }
  .tiles { min-height: 380px; padding: 28px 28px 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 20px; }
  .avail form { grid-template-columns: 1fr 1fr; }
  .avail .btn { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .book { padding-top: 96px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .shot:first-child { grid-column: span 2; grid-row: span 1; }
  .modes { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
