/* alberobellobnb.com — "Calce e pietra"
   Colori della calce, della pietra dei coni, della terracotta e degli ulivi.
   Titoli: Fraunces. Testi: Instrument Sans. */

:root {
  --bg: #F5EFE4;
  --bg-2: #EFE6D6;
  --surface: #FFFCF7;
  --ink: #1D2329;
  --muted: #6A6F73;
  --line: #E4DACA;
  --stone: #3E464E;
  --cone: #5E656B;
  --accent: #B9562B;
  --accent-2: #9C4521;
  --accent-ink: #FFFFFF;
  --olive: #5F7A3A;
  --sky-1: #F2DEC0;
  --sky-2: #F6EEE1;
  --night: #1F272E;
  --night-ink: #EDE6DA;
  --wa: #1E9A55;
  --focus: #2F6F8F;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(29, 35, 41, .05), 0 6px 20px rgba(29, 35, 41, .07);
  --shadow-lg: 0 2px 6px rgba(29, 35, 41, .06), 0 18px 48px rgba(29, 35, 41, .12);
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1280px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191D;
    --bg-2: #1B2025;
    --surface: #1F252A;
    --ink: #EEE8DE;
    --muted: #A6ABAF;
    --line: #30373D;
    --stone: #C9CED2;
    --cone: #8C9399;
    --accent: #E07A47;
    --accent-2: #F08E5C;
    --accent-ink: #1A1410;
    --olive: #9AB66F;
    --sky-1: #2A2722;
    --sky-2: #1B1E21;
    --night: #0E1114;
    --night-ink: #DCD4C7;
    --wa: #2DBE6C;
    --focus: #7FB8D6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .28);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.55 var(--body); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; font-variation-settings: "SOFT" 50, "opsz" 72; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
a { color: inherit; }
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3, .lead { text-wrap: balance; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: .875rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { color: var(--accent-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* --- testata --- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 18px 32px; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand .wm { display: flex; align-items: baseline; gap: 6px; }
.brand .wm i { font: italic 600 1.45rem/1 var(--display); letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "opsz" 48; }
.brand .wm b { font: 600 .74rem/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--stone); border-right: 1.5px solid currentColor; padding: 2px 8px 2px 0; transform: translateY(-4px); opacity: .85; }
.foot .brand .wm b { color: inherit; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 14px; border-radius: var(--radius); white-space: nowrap; }
.top nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.top nav .lang { border: 1.5px solid var(--line); }
.lang .short { display: none; }

/* --- pulsanti --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .95rem/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.wa { color: var(--wa); border-color: color-mix(in srgb, var(--wa) 40%, var(--line)); }
.btn.wa.primary-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.primary.portal { background: var(--stone); border-color: var(--stone); color: var(--bg); }
.btn.icon { width: 46px; padding: 0; flex: none; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; min-height: 54px; font-size: 1.05rem; border-radius: var(--radius); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* --- campi --- */
input, textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 46px; width: 100%; min-width: 0; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* ======================= HOME ======================= */
/* la testata occupa il primo schermo; la barra di ricerca è a filo del bordo inferiore */
.intro { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding-bottom: 92px; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%); overflow: hidden; }
.intro .sun { position: absolute; right: 9%; top: 90px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, #F4B97C 0%, rgba(244, 185, 124, .35) 55%, transparent 70%); pointer-events: none; }
.intro-body { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 28px 32px 0; }
.intro h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); max-width: 19ch; margin: 0 0 18px; font-weight: 600; text-wrap: balance; }
.intro .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--stone); max-width: 62ch; margin: 0; text-wrap: balance; }
.searchwrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(29, 35, 41, .08); }
.search { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: stretch; max-width: var(--maxw); margin: 0 auto; padding: 12px 32px; }
.search .seg { padding: 10px 18px 8px; gap: 2px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); }
.search .seg:hover { background: var(--bg); }
.search .seg input { border: 0; background: transparent; padding: 2px 0; min-height: 32px; font-size: 1.05rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); box-shadow: none; }
.search .seg input:focus { box-shadow: none; }
.search .seg:focus-within { background: var(--bg); }
.search .go { min-height: 0; padding: 0 30px; margin-left: 8px; font-size: 1.02rem; }
.search .go .i { width: 1.2em; height: 1.2em; }
.search .q input { padding-left: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6F73' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 18px; }

.intro > .top, .intro > .intro-body { width: 100%; }
.intro .skyline { flex: 1 0 clamp(150px, 22.5vw, 460px); height: auto; max-height: 600px; margin-top: 0; padding-top: clamp(8px, 2.6vw, 40px); }
.skyline { display: block; width: 100%; height: clamp(150px, 22.5vw, 460px); position: relative; z-index: 1; }

.facts { background: #E8DEC9; }
@media (prefers-color-scheme: dark) { .facts { background: var(--bg-2); } }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.fact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: 0; }
.fact b { font: 600 clamp(2.2rem, 4vw, 3.4rem)/1 var(--display); color: var(--stone); font-variation-settings: "SOFT" 100, "opsz" 144; }
.fact span { color: var(--stone); font-weight: 500; line-height: 1.35; }

.steps { padding-top: 72px; padding-bottom: 24px; }
.steps h2, .explore h2, .teaser h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 8px; }
.steps .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.step { position: relative; padding: 24px 24px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.step .sh { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step .num { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font: italic 600 1.55rem/1 var(--display); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.step h3 { font-size: 1.3rem; margin: 0; }
.step p { margin: 0; color: var(--muted); }

.explore { padding-top: 56px; padding-bottom: 24px; }
.explore-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.explore-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.filters { position: sticky; top: 0; z-index: 50; margin: 0 -32px; padding: 12px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; display: grid; gap: 10px; }
.filters.stuck { border-bottom-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { --c: var(--stone); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: 500 .95rem/1 var(--body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 15px; min-height: 42px; cursor: pointer; transition: background .12s, border-color .12s; text-decoration: none; }
.chip:hover { border-color: var(--c); }
.chip .i { color: var(--c); }
.chip .n { color: var(--muted); font-size: .8rem; }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.chip[aria-pressed="true"] .i, .chip[aria-pressed="true"] .n { color: #fff; }
.chip.trullo { --c: var(--stone); font-weight: 600; }
.chip.book { --c: var(--accent); }
.chip.portal { --c: var(--muted); }
.chip.small { padding: 8px 13px; min-height: 36px; font-size: .875rem; }
.fsearch { display: block; max-width: 520px; }
.fsearch input { min-height: 42px; padding-left: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6F73' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 18px; }
.switches { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 14px; }
.bookswitch { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 12px 16px 12px 12px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-left: 5px solid var(--accent); border-radius: var(--radius); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: background .15s; }
.bookswitch:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.bookswitch .bi { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; }
.bookswitch .bi .i { width: 20px; height: 20px; }
.bookswitch .bt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bookswitch .bt b { font: 600 1.12rem/1.2 var(--display); }
.bookswitch .bt span { font-size: .86rem; color: var(--muted); }
.bookswitch .sw { flex: none; position: relative; width: 50px; height: 28px; border-radius: 999px; background: var(--line); transition: background .15s; }
.bookswitch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.bookswitch[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.bookswitch[aria-pressed="true"] .sw { background: var(--accent); }
.bookswitch[aria-pressed="true"] .sw::after { transform: translateX(22px); }
.bookswitch.portal { border-color: var(--line); border-left-color: var(--stone); }
.bookswitch.portal .bi { background: var(--stone); }
.bookswitch.portal:hover { background: color-mix(in srgb, var(--stone) 5%, var(--surface)); }
.bookswitch.portal[aria-pressed="true"] { background: color-mix(in srgb, var(--stone) 8%, var(--surface)); }
.bookswitch.portal[aria-pressed="true"] .sw { background: var(--stone); }
.chips .sep { flex: none; width: 1px; background: var(--line); margin: 4px 4px; }

.bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.bar p { margin: 0; font-weight: 600; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 40%); gap: 28px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.mapbox { position: sticky; top: 132px; height: calc(100vh - 152px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
#map { height: 100%; width: 100%; background: var(--line); }
.maptoggle { display: none; }
.maptoggle.away { opacity: 0; pointer-events: none; transform: translate(-50%, 20px) !important; }

.card { --c: var(--stone); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card.hl { border-color: var(--c); }
.photo { position: relative; display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--c) 14%, var(--surface)); overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .4s ease; }
.card:hover .photo img { transform: scale(1.04); }
.photo .ph { position: absolute; inset: 0; margin: auto; width: 30%; height: 30%; color: var(--c); opacity: .45; }
.badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.badges span, .tags span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--radius); font: 600 .76rem/1 var(--body); background: rgba(255, 252, 247, .94); color: var(--c); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.badges .tr, .tags .tr { color: #3E464E; }
.badges .pt, .tags .pt { color: #6A6F73; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card h3 { margin: 0; font-size: 1.22rem; line-height: 1.22; font-variation-settings: "SOFT" 50, "opsz" 36; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.addr { margin: 0; color: var(--muted); font-size: .9rem; display: flex; gap: 5px; align-items: center; min-width: 0; }
.card .addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.card .addr .i { margin-right: 4px; }
.amen-mini { margin: 0; color: var(--muted); font-size: .82rem; }
.card .go { margin-top: auto; display: flex; gap: 8px; padding-top: 10px; }
.card .go .btn:first-child { flex: 1; }
.empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }

.nocontact { margin-top: 32px; padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.nocontact p { margin: 0 0 6px; }

.teaser { padding-top: 80px; padding-bottom: 24px; }
.teaser-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.teaser .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard { --c: var(--stone); display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); border-top: 5px solid var(--c); transition: transform .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tcard .i { width: 34px; height: 34px; color: var(--c); }
.tcard h3 { margin: 6px 0 0; font-size: 1.45rem; }
.tcard p { margin: 0; color: var(--muted); }
.tcard .more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; }

.owners-band { margin: 80px 0 0; background: var(--stone); color: var(--bg); }
@media (prefers-color-scheme: dark) { .owners-band { background: var(--bg-2); color: var(--ink); } }
.owners-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.owners-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 10px; }
.owners-band h2 em { color: #F0A57A; }
.owners-band p { margin: 0; opacity: .85; max-width: 52ch; }
.owners-band .acts { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.owners-band .btn.ghost { color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }

/* --- piede --- */
.foot { background: var(--night); color: var(--night-ink); margin-top: 0; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 28px; }
.foot .brand { color: var(--night-ink); margin-bottom: 14px; }
.foot p { margin: 0 0 8px; color: color-mix(in srgb, var(--night-ink) 75%, transparent); font-size: .92rem; }
.foot h4 { font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 14px; color: var(--night-ink); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: var(--night-ink); text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot .legal { border-top: 1px solid color-mix(in srgb, var(--night-ink) 15%, transparent); max-width: var(--maxw); margin: 0 auto; padding: 18px 32px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: color-mix(in srgb, var(--night-ink) 60%, transparent); }
.love { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--night-ink); }
.love span { color: #E8735A; font-style: normal; }

/* ======================= PAGINA STRUTTURA ======================= */
main.wide { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.crumbs { padding: 4px 0 8px; font-size: .95rem; }
.stayhead { padding: 6px 0 22px; }
.stayhead h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 12px 0 8px; }
.stayhead .addr { font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags span { background: var(--surface); box-shadow: none; border: 1.5px solid var(--line); }
.tags .cat { color: var(--c); }
.hero { margin: 0 0 44px; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16 / 9; background: var(--line); box-shadow: var(--shadow-lg); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero figcaption { position: absolute; right: 12px; bottom: 10px; font-size: .75rem; color: #fff; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: var(--radius); }
.staygrid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 56px; align-items: start; }
.staymain > section, .staymain > .xp { margin-bottom: 48px; }
.staymain h2 { font-size: 1.6rem; margin: 0 0 18px; }
.amen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.amen li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 500; }
.amen .i { color: var(--olive); }
.map-big { height: 400px; border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.maplinks { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; margin: 12px 0 0; }
.maplinks span { display: inline-flex; gap: 6px; align-items: center; }

.contact { position: sticky; top: 24px; }
.ccard { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.ccard h2 { font-size: 1.4rem; margin: 0 0 4px; }
.ccard > .small { margin: 0 0 18px; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dates .g { grid-column: 1 / -1; }
.ccard .sub { margin: 20px 0 6px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.crows { display: flex; flex-direction: column; }
.crow { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; width: 100%; border-radius: var(--radius); }
.crow:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.crow .i { width: 20px; height: 20px; color: var(--stone); }
.crow[data-wa] .i:first-child { color: var(--wa); }
.crow .l { flex: 1; display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; }
.crow .v { font-weight: 400; font-size: .85rem; color: var(--muted); }
.crow .chev { color: var(--muted); width: 18px; height: 18px; }
.cnote { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.cnote .i { color: var(--accent); }
.contact .claim { text-align: center; margin-top: 14px; }
.claim a { color: var(--muted); }

.ncards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ncard { --c: var(--stone); display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1.5px solid transparent; min-width: 0; }
.ncard:hover { border-color: var(--c); }
.nimg { position: relative; flex: none; width: 96px; height: 76px; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.nimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.nimg .ph { position: absolute; inset: 0; margin: auto; width: 40%; height: 40%; color: var(--c); opacity: .5; }
.nbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nbody b { font: 600 1.05rem/1.25 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar { display: none; }

.xp { padding: 26px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.xp h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px !important; }
.xp h2 .i { color: var(--accent); }
.xp > .small { margin: 0 0 16px; }
.xp ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.xp li { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.xp li > div { display: flex; flex-direction: column; gap: 4px; }
.xp li b { font: 600 1.08rem/1.25 var(--display); }
.xp li .btn { width: 100%; min-height: 42px; font-size: .9rem; }
.xp p.small:last-child { margin: 14px 0 0; }
.km { display: inline-flex; align-items: center; gap: 4px; font: 600 .78rem var(--body); color: var(--muted); white-space: nowrap; }
.arrive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); font-size: .92rem; }
.arrive .i { color: var(--accent); }

/* ======================= GUIDA ======================= */
.ghead { position: relative; background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); overflow: hidden; }
.ghead .intro-body { padding-bottom: 0; }
.ghead h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 0 0 14px; max-width: 18ch; }
.ghead .lead { font-size: 1.15rem; color: var(--stone); max-width: 56ch; margin: 0; }
.ghead .skyline { height: max(110px, 14.4vw); max-height: 230px; margin-top: 6px; }
.gbody { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; }
.toc a { --c: var(--stone); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; font-weight: 600; color: var(--ink); }
.toc a:hover { background: var(--surface); }
.toc a .i { color: var(--c); width: 20px; height: 20px; }
.gsec { padding-bottom: 56px; scroll-margin-top: 24px; }
.gsec h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0 0 6px; }
.gsec h2 .i { color: var(--c); width: 1em; height: 1em; }
.gsec > .lead { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--c); }
.gcard h3 { margin: 0; font-size: 1.3rem; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gcard p { margin: 0; line-height: 1.6; }
.gcard .go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.gcard .btn { min-height: 42px; font-size: .9rem; }
.cta { margin: 8px 0 40px; padding: 40px; border-radius: var(--radius); background: var(--stone); color: var(--bg); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta h2 { margin: 0 0 6px; font-size: 2rem; }
.cta p { margin: 0; opacity: .85; }
.aff-note { margin: 0 0 56px; }

/* ======================= ALTRE PAGINE ======================= */
main.narrow { max-width: 780px; margin: 0 auto; padding: 0 32px 64px; }
main.narrow h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 10px; }
.lead { color: var(--muted); }
.card.form, .form { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 14px; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 4px; }
legend { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 0 4px; }
.radio { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: .98rem !important; font-weight: 400 !important; color: var(--ink) !important; padding: 4px 0; }
.radio input { width: auto; min-height: 0; }
.prose { line-height: 1.7; }
.prose h2 { margin-top: 32px; }

/* dialog richiesta */
.sheet { border: 0; border-radius: var(--radius); padding: 0; width: min(500px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.sheet::backdrop { background: rgba(20, 22, 24, .55); backdrop-filter: blur(2px); }
.sheet form { display: grid; gap: 12px; padding: 24px; }
.sheet h2 { margin: 0; font-size: 1.5rem; }
.req-for { margin: -6px 0 0; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req-status { margin: 0; font-weight: 600; }
.req-status.ok { color: var(--wa); }
.req-status.err { color: #C0392B; }

/* marker mappa */
.mk { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.mk.on { width: 34px; height: 34px; margin: -4px 0 0 -4px; }
.leaflet-popup-content { font: 500 .9rem/1.4 var(--body); }
.leaflet-popup-content a { color: inherit; }

/* ======================= TABLET / TELEFONO ======================= */
/* --- Guida: briciole, indice per argomenti, numeri utili, servizi --- */
.crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; font: 600 .9rem var(--body); color: var(--muted); }
.crumbs a { color: var(--stone); text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--stone) 30%, transparent); }
.crumbs a:hover { border-color: var(--accent); color: var(--accent); }
.crumbs .i { width: 14px; height: 14px; }
.hubbody { padding-top: 48px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.tile { --c: var(--stone); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 24px 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--c); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile-i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--c); }
.tile-i .i { width: 26px; height: 26px; }
.tile-b { display: flex; flex-direction: column; gap: 6px; }
.tile-b b { font: 600 1.4rem/1.2 var(--display); }
.tile-b > span { color: var(--muted); line-height: 1.5; }
.tile-b em { align-self: flex-start; margin-top: 6px; font: 600 .78rem var(--body); font-style: normal; letter-spacing: .02em; padding: 4px 8px; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c); }
.tile-go { align-self: center; color: var(--c); }
.tile-go .i { width: 22px; height: 22px; transition: transform .15s ease; }
.tile:hover .tile-go .i { transform: translateX(3px); }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; }
.tiles.small .tile { padding: 16px; gap: 12px; }
.tiles.small .tile-i { width: 40px; height: 40px; }
.tiles.small .tile-b b { font-size: 1.15rem; }
.tiles.small .tile-b > span { font-size: .92rem; }
.tiles.small .tile-b em { display: none; }
.more { padding-bottom: 48px; }
.more h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 0 0 18px; }
.sos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 0 0 40px; padding: 16px 20px; border-radius: var(--radius); background: color-mix(in srgb, #A0434F 8%, var(--surface)); border: 1px solid color-mix(in srgb, #A0434F 25%, var(--line)); }
.sos-h { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #A0434F; margin-right: auto; }
.sos-h .i { width: 20px; height: 20px; }
.sos a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; padding: 6px 14px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.sos a:hover { border-color: #A0434F; }
.sos a b { font: 700 1.1rem var(--body); color: #A0434F; }
.sos a span { font-size: .9rem; color: var(--muted); }
.ftools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: -16px 0 36px; }
.ftools .openonly { margin: 0; }
.updated { display: flex; align-items: center; gap: 6px; margin: 0; }
.updated .i { width: 16px; height: 16px; color: var(--olive); }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--c); }
.pcard h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.pcard .addr { margin: 0; color: var(--muted); font-size: .92rem; }
.pcard .open { margin: 2px 0 0; font: 600 .85rem var(--body); }
.pcard .open:empty { display: none; }
.pcard .open.on { color: var(--olive); }
.pcard .open.off { color: #A0434F; }
.pcard .go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.pcard .btn { min-height: 42px; font-size: .88rem; }
.pcard .rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 2px 0 2px; font-size: .9rem; }
.pcard .rate b { color: #9A6A00; font-weight: 700; }
.pcard .rate span { color: var(--muted); }
.pcard .rate .price { margin-left: auto; font-weight: 700; color: var(--stone); letter-spacing: .05em; }
.pcard.extra { display: none; }
.gsec.all .pcard.extra { display: flex; }
.showall { margin-top: 16px; min-height: 44px; }
body.openonly .pcard { display: none; }
body.openonly .pcard.is-on { display: flex; }
body.openonly .showall { display: none; }
.gsec .none { margin: 8px 0 0; }
.openonly { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 0 18px; padding: 8px 18px 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font: 600 1rem var(--body); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.openonly:hover { border-color: var(--olive); }
.openonly .sw { position: relative; width: 40px; height: 22px; border-radius: 11px; background: var(--line); transition: background .15s; }
.openonly .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.openonly[aria-pressed="true"] { border-color: var(--olive); }
.openonly[aria-pressed="true"] .sw { background: var(--olive); }
.openonly[aria-pressed="true"] .sw::after { transform: translateX(18px); }
.tiles { grid-auto-flow: dense; }
.tile.wide { grid-column: span 2; padding: 30px 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 7%, var(--surface)), var(--surface) 60%); }
.tile.wide .tile-i { width: 60px; height: 60px; }
.tile.wide .tile-i .i { width: 32px; height: 32px; }
.tile.wide .tile-b b { font-size: 1.8rem; }
.tile.wide .tile-b > span { font-size: 1.05rem; }
/* --- Percorso a tempo --- */
.rband { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0 0 32px; padding: 20px 22px; border-radius: var(--radius); background: var(--stone); color: var(--bg); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.rband:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rband-i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 14%, transparent); }
.rband-i .i { width: 28px; height: 28px; }
.rband-b { display: flex; flex-direction: column; gap: 2px; }
.rband-b b { font: 600 1.45rem/1.2 var(--display); }
.rband-b span { opacity: .85; }
.rband .btn { pointer-events: none; }
.routepage main { padding-top: 40px; }
.planner { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 56px; scroll-margin-top: 16px; }
.rp-form { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.rp-q { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.rp-q > span, .rp-q legend { font: 600 1.15rem var(--display); padding: 0; margin-bottom: 2px; }
.rp-q select { min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); font: 500 1rem var(--body); color: var(--ink); }
.rp-q .small { margin: 0 0 4px; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip input, .pchk input { position: absolute; opacity: 0; pointer-events: none; }
.tchip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); font-weight: 600; cursor: pointer; }
.tchip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tchip input:focus-visible + span, .pchk input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pchks { display: flex; flex-direction: column; gap: 6px; }
.pchk span { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 12px 8px 40px; position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; }
.pchk span::before { content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--muted); border-radius: 2px; background: var(--surface); }
.pchk input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.pchk input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.pchk b { font-weight: 600; }
.pchk small { color: var(--muted); white-space: nowrap; }
.rp-see { display: none; }
.rp-out { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rp-sum .small { flex-basis: 100%; margin: 0; }
.rp-kpi { font-size: 1.15rem; margin-right: auto; }
.rp-kpi b { font: 700 1.5rem var(--display); }
.rp-warn { flex-basis: 100%; margin: 0; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, #A0434F 9%, var(--surface)); color: #8A3540; font-weight: 600; }
.rp-map { height: 460px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-2); z-index: 0; }
.rp-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 .9rem var(--body); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.rp-pin.end span { background: var(--stone); font-size: .7rem; }
.rp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rp-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.rs-stop > div, .rs-end > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.rs-stop b, .rs-end b { font: 600 1.15rem var(--display); }
.rs-end > div { background: transparent; box-shadow: none; padding: 6px 0; }
.rs-end > div span { color: var(--muted); }
.rs-t { font: 600 .88rem var(--body); color: var(--accent-2); }
.rs-stop p { margin: 2px 0 6px; line-height: 1.55; }
.rs-stop .btn, .rs-end .btn { align-self: flex-start; min-height: 42px; font-size: .9rem; }
.rs-n, .rs-dot { display: grid; place-items: center; width: 32px; height: 32px; margin-top: 12px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.rs-dot { background: var(--stone); font-size: .7rem; margin-top: 6px; }
.rs-walk span { grid-column: 2; display: block; padding: 10px 0 10px 0; color: var(--muted); font: 600 .88rem var(--body); }
.rs-walk::before { content: ""; justify-self: center; width: 0; border-left: 3px dotted var(--line); }
.gcards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preset ol { margin: 0; padding-left: 1.3em; line-height: 1.8; }
/* audioguida */
body.playing { padding-bottom: 150px; }
.routepage .audio { margin-bottom: 24px; }
.audio { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--olive) 9%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--olive) 30%, var(--line)); }
.audio-i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--olive); color: #fff; }
.audio-i .i { width: 24px; height: 24px; }
.audio-b { display: flex; flex-direction: column; gap: 2px; }
.audio-b b { font: 600 1.2rem var(--display); }
.audio-b small { color: var(--muted); }
.audio.on { border-color: var(--olive); }
.audio.on .audio-i { animation: pulse 1.6s ease-in-out infinite; }
.audio.on .audio-st { font-weight: 600; color: var(--olive); }
.audio.on .audio-go { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--olive) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .audio.on .audio-i { animation: none; } }
.rs-go { display: flex; flex-wrap: wrap; gap: 12px; }
.player { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 700; width: min(760px, calc(100% - 32px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px 14px 20px; border-radius: var(--radius); background: var(--night); color: var(--night-ink); box-shadow: var(--shadow-lg); }
.player[hidden] { display: none; }
.player-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.player-b small { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; opacity: .7; }
.player-b b { font: 600 1.15rem var(--display); }
.player-t { margin: 4px 0 0; font-size: .9rem; line-height: 1.5; opacity: .85; max-height: 4.5em; overflow-y: auto; }
.player-t em { display: block; font-style: normal; color: #F2C14E; }
.player-c { display: flex; gap: 12px; }
.player .btn { min-height: 44px; background: transparent; color: var(--night-ink); border-color: color-mix(in srgb, var(--night-ink) 35%, transparent); }
@media (prefers-color-scheme: dark) {
  .sos-h, .sos a b, .pcard .open.off { color: #E08A93; }
}
/* --- sezione Dormire: testata bassa, si arriva subito all'elenco --- */
.bnb .intro { min-height: 0; }
.bnb .intro h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
.bnb .intro .skyline { flex: none; height: max(110px, 14.4vw); max-height: 230px; padding-top: 12px; }

/* griglia di schede a 2 colonne: l'ultima scheda dispari prende tutta la riga */
.gcards > .gcard:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* --- itinerari: giorni come timeline --- */
.tday { margin: 0 0 36px; }
.tday h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.5rem; margin: 0 0 16px; }
.tday-n { font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--c); padding: 6px 10px; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 12%, transparent); }
.tline { list-style: none; margin: 0 0 16px; padding: 0 0 0 26px; border-left: 2px solid color-mix(in srgb, var(--c) 35%, var(--line)); display: grid; gap: 14px; }
.tstop { position: relative; }
.tstop::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--bg); }
.twhen { display: block; margin: 0 0 6px; font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tmove { display: flex; align-items: center; gap: 8px; margin-left: -4px; font-size: .9rem; color: var(--muted); }
.tmove .i { width: 18px; height: 18px; color: var(--c); }

/* --- home del portale --- */
.phead .sun { position: absolute; right: 9%; top: 90px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, #F4B97C 0%, rgba(244, 185, 124, .35) 55%, transparent 70%); pointer-events: none; }
.phead h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); max-width: 16ch; text-wrap: balance; }
.phead .lead { max-width: 60ch; text-wrap: pretty; }
.pacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pacts .btn { min-height: 52px; padding: 12px 22px; font-size: 1rem; }
.phead .skyline { height: clamp(150px, 20vw, 340px); max-height: none; margin-top: 10px; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 64px; }
.door { display: flex; flex-direction: column; padding: 32px; background: var(--bg-2); border-radius: var(--radius); }
.door.here { background: color-mix(in srgb, var(--olive) 9%, var(--bg)); }
.door .eyebrow { margin-bottom: 8px; }
.door.here .eyebrow { color: var(--olive); }
.door h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0 0 6px; }
.door > .small { margin: 0 0 22px; font-size: 1rem; }
.door .tiles.small { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.door .sos { margin: 18px 0 0; }
.trulli { padding-top: 80px; }
.trulli h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 6px; }
.trulli .teaser-head p { margin: 0; }
.scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.scard { --c: var(--stone); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.simg { position: relative; aspect-ratio: 3 / 2; background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.simg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.simg .ph { position: absolute; inset: 0; margin: auto; width: 30%; height: 30%; color: var(--c); opacity: .45; }
.sbody { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.sbody b { font: 600 1.2rem/1.25 var(--display); }

@media (max-width: 1100px) {
  .planner { grid-template-columns: 340px minmax(0, 1fr); gap: 24px; }
  .gcards.three { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hubbody { padding-top: 24px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile.wide { grid-column: auto; padding: 18px 16px; }
  .tile.wide .tile-i { width: 46px; height: 46px; }
  .tile.wide .tile-b b { font-size: 1.35rem; }
  .openonly { width: 100%; }
  .rband { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .rband .btn { grid-column: 1 / -1; width: 100%; }
  .rband-b b { font-size: 1.2rem; }
  .routepage main { padding-top: 20px; }
  .planner { grid-template-columns: minmax(0, 1fr); }
  .rp-form { position: static; padding: 18px 16px; }
  .rp-see { display: inline-flex; }
  .rp-out { scroll-margin-top: 12px; }
  .rp-map { height: 340px; margin: 0 -16px; border-radius: 0; }
  .audio { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .audio-go { grid-column: 1 / -1; width: 100%; }
  .player { bottom: max(10px, env(safe-area-inset-bottom)); grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .player-c .btn { flex: 1; }
  .tile { padding: 16px; gap: 12px; }
  .tile-i { width: 42px; height: 42px; }
  .tile-b b { font-size: 1.2rem; }
  .tiles.small { grid-template-columns: minmax(0, 1fr); }
  .pcards { grid-template-columns: minmax(0, 1fr); }
  .sos { padding: 14px 16px; }
  .sos-h { width: 100%; }
  .sos a { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 38%); }
  .staygrid { grid-template-columns: minmax(0, 1fr) 350px; gap: 36px; }
  .amen, .xp ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wrap, .top, .intro-body, main.wide, main.narrow { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 12px; padding-bottom: 12px; }
  .brand svg { width: 34px; height: 34px; }
  .brand .wm i { font-size: 1.2rem; }
  .top nav { gap: 2px; }
  .top nav a { padding: 6px 8px; font-size: .9rem; }
  .top nav .lang { border: 0; }
  .lang .full { display: none; }
  .lang .short { display: inline; font-weight: 700; }
  .intro .sun { width: 110px; height: 110px; top: 70px; right: -10px; }
  .intro-body { padding-top: 16px; }
  .intro { padding-bottom: 138px; }
  .intro .skyline { max-height: 240px; }
  .intro-body { margin: auto 0; }
  .search { grid-template-columns: 1fr 1fr; padding: 6px 12px 10px; }
  .search .seg { padding: 8px 12px 6px; }
  .search .seg:nth-child(2) { border-right: 0; }
  .search .g { grid-column: 1; border-top: 1px solid var(--line); }
  .search .go { grid-column: 2; margin: 6px 0 0 6px; min-height: 48px; padding: 0 12px; }
  .fsearch { max-width: none; }
  .skyline { padding-top: 16px; }
  .facts .wrap { grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 30px; padding-bottom: 30px; }
  .fact span { font-size: .82rem; }
  .fact b { font-size: 2.2rem; }
  .steps .grid3, .teaser .grid3 { grid-template-columns: 1fr; gap: 14px; }
  .steps { padding-top: 48px; }
  .filters { margin: 0 -16px; padding: 10px 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .switches { grid-template-columns: 1fr; gap: 8px; }
  .bookswitch { padding: 10px 12px 10px 10px; gap: 12px; }
  .bookswitch .bi { width: 36px; height: 36px; }
  .bookswitch .bt b { font-size: 1rem; }
  .bookswitch .bt span { font-size: .8rem; }
  .layout { grid-template-columns: 1fr; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .mapbox { display: none; position: fixed; inset: 0; top: 0; height: 100dvh; z-index: 500; border-radius: 0; }
  body.showmap .mapbox { display: block; }
  body.showmap { overflow: hidden; }
  .maptoggle { display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 600; background: var(--ink); color: var(--bg); border: 0; border-radius: var(--radius); padding: 12px 20px; font: 600 .95rem var(--body); box-shadow: 0 6px 20px rgba(0,0,0,.3); min-height: 48px; transition: opacity .2s, transform .2s; }
  .owners-band .wrap { grid-template-columns: 1fr; gap: 20px; }
  .owners-band .acts { justify-content: flex-start; }
  .foot .wrap { grid-template-columns: 1fr; gap: 28px; }
  .foot .legal { padding-left: 16px; padding-right: 16px; }

  .staygrid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .staymain { display: contents; }
  .staymain > * { order: 2; }
  .staymain > .hero { order: 0; }
  .contact { order: 1; position: static; margin-bottom: 40px; }
  .hero { aspect-ratio: 4 / 3; width: calc(100% + 32px); margin: 0 -16px 24px; border-radius: 0; flex: none; }
  .ncards { grid-template-columns: minmax(0, 1fr); }
  .map-big { height: 280px; }
  .xp ul { grid-template-columns: minmax(0, 1fr); }
  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transition: transform .2s ease; }
  .mbar.away { transform: translateY(110%); }
  .mbar .btn { width: 100%; min-height: 50px; }
  body.stay { padding-bottom: 76px; }

  .gbody { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .toc { position: sticky; top: 0; z-index: 40; flex-direction: row; overflow-x: auto; margin: 0 -16px 24px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); scrollbar-width: none; }
  .toc a { white-space: nowrap; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 8px 12px; font-size: .9rem; }
  .gcards { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 28px 22px; }

  .phead .sun { width: 110px; height: 110px; top: 70px; right: -10px; }
  .pacts .btn { flex: 1 1 200px; }
  .doors { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 32px; }
  .door { padding: 22px 16px; margin: 0 -16px; }
  .trulli { padding-top: 48px; }
  .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sbody { padding: 10px 12px 12px; }
  .sbody b { font-size: 1rem; }
}
@media (max-width: 520px) {
  .amen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .amen li { font-size: .92rem; padding: 10px 12px; }
  .top nav a.own { display: none; }
  .brand { gap: 8px; }
  .brand .wm { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand .wm b { font-size: .6rem; letter-spacing: .3em; border: 0; padding: 0; transform: none; }
  .top nav .nl { display: none; }
}
