/* ==========================================================================
   Alberghi Val di Fassa – stile del sito pubblico
   Palette: verde abete (pine) + rosa enrosadira (accent) su fondo neve/pietra
   ========================================================================== */
:root {
  --ink: #1b2622;
  --muted: #5f6964;
  /* colori presi dal logo: verde prato, rosso tetto, azzurro cielo */
  --pine: #0d4a32;
  --pine-2: #006633;
  --accent: #a8382f;
  --accent-2: #8f3232;
  --sky: #30b6e4;
  --sand: #f5f1ea;
  --snow: #fbfaf7;
  --line: #e3dccf;
  --ok: #2f7a4f;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 22px rgba(20, 30, 25, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.theme-fiemme { --pine: #23384f; --pine-2: #2f4c6b; --accent: #b8612c; --accent-2: #9a4f21; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--snow); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine-2); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.rounded { border-radius: var(--radius); }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .6em 1.15em;
  border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-2); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--pine); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: #fff; color: var(--pine); }
.btn-sm { min-height: 38px; padding: .45em .95em; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.langbar { display: flex; justify-content: center; gap: .5rem; align-items: center; background: var(--sand); font-size: .92rem; padding: .35rem 1rem; }
.langbar-x { border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 247, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--pine); }
.brand-logo { display: block; height: 50px; width: auto; }
@media (max-width: 980px) { .brand-logo { height: 42px; } }
.site-header { box-shadow: inset 0 -3px 0 var(--sky); }
.brand-text b { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.brand-text small { display: block; color: var(--muted); font-size: .76rem; }
.mainnav { display: flex; align-items: center; gap: 1.2rem; }
.mainnav > ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.mainnav > ul > li { position: relative; }
.mainnav > ul > li > a { display: block; padding: .6rem .7rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.mainnav > ul > li > a:hover { background: var(--sand); color: var(--ink); }
.mainnav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.mainnav .has-sub:hover .sub, .mainnav .has-sub:focus-within .sub { display: block; }
.mainnav .sub a { display: block; padding: .45rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.mainnav .sub a:hover { background: var(--sand); }
.langs { display: flex; gap: .15rem; }
.langs a { font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--muted); padding: .3rem .35rem; border-radius: 6px; }
.langs a.on { color: #fff; background: var(--pine); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--pine); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  /* il filtro "blur" farebbe da contenitore al menu fisso: su telefono lo togliamo */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--snow); }
  html.nav-lock { overflow: hidden; }
  .mainnav { display: none; position: fixed; inset: var(--nav-top, 70px) 0 0 0; width: 100%; max-width: 100vw; overflow-x: hidden; z-index: 41; background: var(--snow); flex-direction: column; align-items: stretch;
    padding: 1rem 16px 2rem; overflow-y: auto; gap: 1rem; }
  .nav-open .mainnav { display: flex; }
  .mainnav > ul { flex-direction: column; }
  .mainnav > ul > li > a { font-size: 1.1rem; padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mainnav .sub { display: grid; grid-template-columns: 1fr 1fr; position: static; box-shadow: none; border: 0; padding: .3rem 0 .6rem; min-width: 0; }
  .langs { justify-content: center; flex-wrap: wrap; }
  .langs a { font-size: .95rem; padding: .5rem .7rem; }
  .nav-cta { width: 100%; }
}

/* ---------- hero + ricerca ---------- */
.hero { position: relative; color: #fff; background: var(--pine) var(--hero) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 28, 22, .55) 0%, rgba(15, 28, 22, .35) 45%, rgba(15, 28, 22, .7) 100%); }
.hero-inner { position: relative; padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero h1 { max-width: 760px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-sub { font-size: 1.15rem; max-width: 620px; opacity: .95; }
.usp { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: 1.1rem 0 0; font-weight: 600; font-size: .95rem; }
.usp li::before { content: "✓ "; color: var(--sky); }

.searchbox { display: grid; grid-template-columns: 1.4fr 1fr 1fr .6fr .6fr auto; gap: .5rem; background: #fff; color: var(--ink);
  padding: .6rem; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.18); margin-top: 1.4rem; }
.page-head .searchbox { box-shadow: var(--shadow); border: 1px solid var(--line); }
.sb-field { display: flex; flex-direction: column; padding: .3rem .6rem; border-radius: 10px; min-width: 0; }
.sb-field:hover { background: var(--sand); }
.sb-field > span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sb-field input, .sb-field select { border: 0; background: transparent; font: 600 1rem var(--sans); color: var(--ink); padding: .15rem 0; min-height: 30px; width: 100%; }
.sb-go { align-self: stretch; border-radius: 12px; padding-inline: 1.6rem; }
@media (max-width: 860px) {
  .searchbox { grid-template-columns: 1fr 1fr; }
  .sb-loc { grid-column: 1 / -1; }
  .sb-go { grid-column: 1 / -1; min-height: 50px; }
  .sb-field { background: var(--sand); }
}

/* ---------- sezioni ---------- */
.section { padding: clamp(2.2rem, 6vw, 4rem) 0; }
.section-alt { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; text-decoration: none; }
.page-head { padding: 1.5rem 0 1.8rem; background: var(--sand); border-bottom: 1px solid var(--line); }
.page-head .lead { font-size: 1.08rem; color: #39443f; max-width: 780px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: .4rem 0 .9rem; }
.crumbs a { color: var(--muted); }
.prose { max-width: 72ch; }
.prose p { margin-bottom: .9em; }
.lead.prose p:last-child { margin-bottom: 0; }

/* ---------- località ---------- */
.loc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.loc-grid a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.loc-grid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.loc-grid b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.loc-grid span { font-size: .88rem; color: var(--muted); }

/* paesi in home: immagine + breve descrizione */
.loc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.loc-cards a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s; }
.loc-cards a:hover { transform: translateY(-3px); }
.loc-img { position: relative; display: block; aspect-ratio: 3/2; background: var(--sand); overflow: hidden; }
.loc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.loc-cards a:hover .loc-img img { transform: scale(1.04); }
.loc-img::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.loc-img b { position: absolute; left: 1rem; bottom: .7rem; z-index: 1; color: #fff; font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.loc-img-empty { background: linear-gradient(135deg, var(--pine), #2f7a5a); }
.loc-img-empty::after { display: none; }
.loc-body { display: block; padding: .8rem 1rem 1rem; }
.loc-body small { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.loc-text { display: block; margin-top: .35rem; font-size: .93rem; color: #44504a; }

/* ---------- card ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 3/2; background: var(--sand); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.badge { position: absolute; top: .7rem; left: .7rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.card-title { font-size: 1.25rem; margin-bottom: .4rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-text { color: #44504a; font-size: .95rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-top: .6rem; }
.price { font-weight: 700; color: var(--pine); }
.price small { font-weight: 500; color: var(--muted); }
.stars { color: #d39b1f; font-size: .85em; letter-spacing: .05em; white-space: nowrap; font-family: var(--sans); }
.stars sup { font-size: .6em; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li { font-size: .78rem; background: var(--sand); padding: .2rem .55rem; border-radius: 999px; color: #3e4944; }
.card-cta { padding: 1.4rem; background: var(--pine); color: #fff; justify-content: center; gap: .4rem; }
.card-cta h3 { color: #fff; }
.card-cta .btn { align-self: flex-start; }
.results .card-cta { margin-top: 1rem; }
.cards .card-cta { margin-top: 0; }
.empty { padding: 2rem; text-align: center; background: var(--sand); border-radius: var(--radius); }

/* offerte */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.offers-compact { grid-template-columns: 1fr; }
.offers-compact .card-img { display: none; }
.tag { display: inline-block; background: var(--pine); color: #fff; padding: .1rem .5rem; border-radius: 6px; margin-right: .3rem; }
.tag-hot { background: var(--accent); }
.card-hotel { font-weight: 600; margin-bottom: .4rem; }

/* eventi */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.event-list-full { grid-template-columns: 1fr; }
.event-item a { display: flex; gap: .9rem; align-items: center; padding: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.event-item a:hover { border-color: var(--accent); }
.event-date { flex: 0 0 56px; text-align: center; background: var(--sand); border-radius: 10px; padding: .35rem 0; font-size: .78rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.event-date b { display: block; font-size: 1.4rem; color: var(--accent); font-family: var(--serif); line-height: 1.1; }
.event-title { font-weight: 600; }

.cta-band { background: var(--pine); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band p { margin: 0; opacity: .9; max-width: 620px; }

/* ---------- risultati + filtri ---------- */
.results-layout { display: grid; grid-template-columns: 270px 1fr; gap: 1.6rem; align-items: start; }
.filters { position: sticky; top: 80px; }
.filters-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1rem 1rem; }
.filters-box summary { font-weight: 700; padding: .6rem 0; cursor: pointer; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.filters legend { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .4rem; }
.filters select { width: 100%; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .45rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
.seg input:checked + span { background: var(--pine); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.results-count { color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (min-width: 901px) { .filters-box { display: block; } .filters-box > summary { pointer-events: none; list-style: none; } }

/* ---------- form ---------- */
input, select, textarea { font: inherit; color: inherit; }
.field { display: block; margin-bottom: .8rem; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.field input, .field select, .field textarea, .filters select {
  width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine-2); box-shadow: 0 0 0 3px rgba(44, 85, 70, .15); }
.field-err { color: var(--err); font-size: .85rem; margin: .25rem 0 0; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.grid-2 > *, .hotel-main, .hotel-side, .results, .card-body { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.prose, .card-text, .lead { overflow-wrap: anywhere; }
input[type=date] { -webkit-appearance: none; appearance: none; }
.check { display: flex; gap: .55rem; align-items: flex-start; margin: .5rem 0; font-size: .93rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--pine); flex: 0 0 auto; }
.step { border: 0; padding: 0; margin: 0 0 .6rem; }
.step legend { font-weight: 700; font-size: 1.02rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--pine); color: #fff; display: inline-grid; place-items: center; font-size: .85rem; }
.ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.more summary { cursor: pointer; color: var(--pine-2); font-weight: 600; margin: .2rem 0 .8rem; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; border-top: 4px solid var(--accent); }
.form-card h2 { font-size: 1.35rem; }
.reassure { text-align: center; color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
.alert { padding: .7rem 1rem; border-radius: 10px; font-weight: 600; }
.alert-err { background: #fdecea; color: var(--err); }
.alert-ok { background: #e8f4ec; color: var(--ok); }

/* ---------- scheda hotel ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 620px); gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px .3rem; scrollbar-width: thin; }
.gallery-item { margin: 0; scroll-snap-align: start; aspect-ratio: 3/2; border-radius: 12px; overflow: hidden; background: var(--sand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) { .gallery { grid-auto-columns: 440px; padding-inline: max(16px, calc((100% - 1180px) / 2)); } }
.gallery-hint { font-size: .82rem; margin-top: .3rem; }
.hotel-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; margin-top: 1rem; }
.hotel-side { display: flex; flex-direction: column; gap: 1rem; }
.hotel-side .form-card { scroll-margin-top: 84px; }
.hotel-head h1 { margin-bottom: .6rem; }
.facts { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { background: var(--sand); padding: .35rem .7rem; border-radius: 999px; font-size: .92rem; }
.contact-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.block { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.block:first-of-type { border-top: 0; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; align-items: start; }
.am-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem 1rem; }
.am-group h3 { display: flex; align-items: center; gap: .55rem; font-family: var(--sans); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pine-2); margin: 0 0 .55rem; }
.am-ico { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #e3f4fb; fill: none; stroke: var(--head-dark, #1b9ccc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.am-group ul.am-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.am-group ul.am-chips li { padding: .2rem .65rem; border-radius: 999px; background: var(--sand); font-size: .88rem; }
.am-group ul.am-chips li::before { content: none; }
.am-group ul { list-style: none; padding: 0; margin: 0; }
.am-group li { padding: .2rem 0 .2rem 1.5rem; position: relative; }
.am-group li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.map { aspect-ratio: 16/9; background: var(--sand) center/cover; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; margin-bottom: .6rem; }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-card { background: var(--pine); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem 1.1rem; }
.contact-card h2 { color: #fff; font-size: 1.3rem; margin: 0 0 .5rem; }
.contact-name { margin: 0 0 .9rem; font-size: .93rem; opacity: .92; line-height: 1.45; }
.contact-name b { font-size: 1.02rem; opacity: 1; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.contact-item { display: flex; align-items: center; gap: .8rem; padding: .65rem .85rem; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.08rem; transition: background .15s; overflow-wrap: anywhere; }
.contact-item:hover { background: rgba(255,255,255,.2); }
.contact-item svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: #fff; fill: var(--pine); }
.contact-item span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.contact-item small { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.contact-wa svg { fill: #1fa855; }
.contact-cin { margin: .8rem 0 0; font-size: .8rem; opacity: .75; }
.address { font-weight: 600; }
[data-readmore].clamped { max-height: 22rem; overflow: hidden; position: relative; }
[data-readmore="short"].clamped { max-height: 6.4rem; }
.how-to-get { font-size: 1.1rem; margin: 1.2rem 0 .4rem; }
[data-readmore].clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5rem; background: linear-gradient(transparent, var(--snow)); }
.readmore-btn { margin-top: .5rem; }
.sticky-cta { display: none; }
@media (max-width: 980px) {
  .hotel-layout { grid-template-columns: 1fr; }
  .hotel-side { position: static; }
  .sticky-cta { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .sticky-cta .btn { padding-inline: .9rem; white-space: nowrap; flex: 0 0 auto; }
  .sticky-cta .btn-accent { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .has-sticky .site-footer { padding-bottom: 5rem; }
  .has-sticky .cookiebar { bottom: 72px; }
}

/* grazie */
.thanks { text-align: center; }
.thanks-icon { width: 64px; height: 64px; margin: .5rem auto 1rem; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; }
.sent-list { padding-left: 1.2rem; }
.sent-list li { margin: .3rem 0; }

/* ---------- footer ---------- */
.site-footer { background: #0c2a1f; color: #cfd8d3; padding: 3rem 0 1rem; margin-top: 0; }
.site-footer a { color: #e9efe9; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer-brand img { height: 44px; width: auto; border-radius: 6px; }
.footer-h { font-weight: 700; color: #fff; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 1; }
.footer-links li { padding: .2rem 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }
.langs-foot { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- cookie ---------- */
.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-left: auto; background: #fff; border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 1rem 1.1rem; font-size: .9rem; border: 1px solid var(--line); }
.cookiebar p { margin-bottom: .7rem; }
.cookiebar-btns { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.js-enabled .js-hide { display: none; }

/* pagine informative */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin: 1.4rem 0 .3rem; font-size: 1.15rem; }
.prose ul { padding-left: 1.2rem; }
.prose figure { margin: .6rem 0 1.4rem; }
.prose figure img, .prose p img { border-radius: 10px; max-height: 520px; width: auto; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.embed { position: relative; margin: 0 0 1rem; }
.embed iframe { width: 100%; height: 420px; border: 0; border-radius: 10px; background: var(--sand); }
.info-cta { margin-top: 2.5rem; }
.prose figure.logo img { max-height: 70px; max-width: 280px; border-radius: 0; }
.testbar { background: #ffcc00; color: #000; text-align: center; font-weight: 700; padding: .3rem; font-size: .85rem; }

/* ---------- scheda: titolo + galleria a mosaico (1 grande + 4 piccole) ---------- */
.hotel-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.hotel-title h1 { margin-bottom: .2rem; }
.hotel-address { color: var(--muted); margin: 0; }
.mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
  height: clamp(320px, 40vw, 520px); border-radius: 16px; overflow: hidden; margin-bottom: 1.2rem; background: var(--sand); }
.mosaic > a, .mosaic > div { display: block; overflow: hidden; background: var(--sand); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .2s; }
.mosaic > a:hover img { filter: brightness(.88); transform: scale(1.02); }
.mosaic-main { grid-column: 1; grid-row: 1 / 3; }
.mosaic-hidden { display: none !important; }
.mosaic-1 { grid-template-columns: 1fr; }
.mosaic-2 { grid-template-columns: 2fr 1fr; }
.mosaic-2 .mosaic-thumb { grid-row: 1 / 3; }
.mosaic-3 { grid-template-columns: 2fr 1fr; }
.mosaic-4 .mosaic-thumb:nth-of-type(4) { grid-column: 2 / 4; }
.mosaic-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 9px; padding: .45rem .8rem; font: 600 .9rem var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mosaic-all:hover { background: var(--sand); }
.mosaic-wrap { position: relative; }
.mosaic-count { display: none; }
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  /* telefono: le foto scorrono con il dito, un tocco apre la galleria a schermo intero */
  .mosaic-wrap { margin-inline: -16px; }
  .mosaic { display: flex !important; height: 66vw; max-height: 440px; border-radius: 0; gap: 0; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic > a, .mosaic > div, .mosaic .mosaic-thumb, .mosaic .mosaic-hidden { display: block !important; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .mosaic > a:hover img { filter: none; transform: none; }
  .mosaic-all { display: none; }
  .mosaic-count { display: block; position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; pointer-events: none; }
}

/* ---------- galleria a schermo intero ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #0b0f0d; display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; color: #fff; font-weight: 600; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox button { background: rgba(255,255,255,.14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 10px; } .lightbox .lb-next { right: 10px; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: .6rem 1rem 1rem; justify-content: safe center; scrollbar-width: thin; }
.lb-strip img { width: 84px; height: 58px; object-fit: cover; border-radius: 6px; opacity: .5; cursor: pointer; flex: 0 0 auto; border: 2px solid transparent; }
.lb-strip img.on { opacity: 1; border-color: #fff; }
@media (max-width: 760px) { .lb-stage { padding: 0; } .lightbox .lb-prev, .lightbox .lb-next { display: none; } .lb-strip img { width: 64px; height: 44px; } }

/* ---------- richiesta multipla ---------- */
.pick { display: flex; align-items: center; gap: .5rem; width: 100%; margin-top: .7rem; padding: .5rem .6rem; border: 1.5px dashed var(--line); border-radius: 10px;
  background: #fff; color: var(--pine); font: 600 .88rem var(--sans); cursor: pointer; text-align: left; }
.pick:hover { border-color: var(--pine-2); }
.pick-box { width: 20px; height: 20px; border: 2px solid var(--pine-2); border-radius: 5px; flex: 0 0 auto; display: grid; place-items: center; }
.pick-on { display: none; }
.pick[aria-pressed="true"] { border-style: solid; border-color: var(--pine-2); background: #e8f4ec; }
.pick[aria-pressed="true"] .pick-box { background: var(--pine-2); }
.pick[aria-pressed="true"] .pick-box::after { content: "✓"; color: #fff; font-size: .8rem; }
.pick[aria-pressed="true"] .pick-off { display: none; }
.pick[aria-pressed="true"] .pick-on { display: inline; }
.pick-inline { width: auto; margin-top: 0; }
.multibar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 3px solid var(--sky); box-shadow: 0 -8px 24px rgba(0,0,0,.12); padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom)); }
.multibar-in { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.multibar-txt b { font-size: 1.2rem; color: var(--accent); }
.multibar-btns { display: flex; gap: .5rem; }
.has-multi .site-footer { padding-bottom: 6rem; }
.has-multi .sticky-cta { display: none !important; }
.has-multi .cookiebar { bottom: 90px; }
@media (max-width: 760px) { .multibar-txt [data-multinames] { display: none; } .multibar-btns { width: 100%; } .multibar-btns .btn-accent { flex: 1; } }
.req-multi, .req-offer { background: var(--sand); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
.req-multi ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.offer-box .facts li { background: #fde9e6; }

/* ---------- banner sponsor ---------- */
.sponsors { padding-block: 2.2rem; border-top: 1px solid var(--line); }
.sponsors-h { text-align: center; font-size: 1.3rem; margin-bottom: 1.2rem; }
.sponsor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.sponsor-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s, transform .15s; }
.sponsor-grid a:hover { border-color: var(--sky); transform: translateY(-2px); }
.sponsor-logo { height: 76px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: .3rem; }
.sponsor-logo img { max-height: 76px; max-width: 220px; width: auto; object-fit: contain; }
.sponsor-grid small { color: var(--muted); }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #aebcb5; }
.footer-note p { margin: .2rem 0; }
.footer-mgmt { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom { margin-top: .8rem; }

/* riquadri affiancati nelle pagine informative (meteo, webcam, partner) */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, auto-fill), minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 1.8rem; }
.tiles[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
@media (max-width: 760px) { .tiles[style*="--cols"] { grid-template-columns: 1fr; } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-width: 0; }
.tile > :first-child { margin-top: 0; }
.tile > :last-child { margin-bottom: 0; }
.tile h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.tile figure { margin: 0 0 .5rem; }
.tile figure img, .tile p img { width: 100%; max-height: none; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; }
.tile figure.logo { height: 90px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--line); margin: -1rem -1rem .8rem; padding: 10px; }
.tile figure.logo img { width: auto; height: auto; max-width: 220px; max-height: 70px; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.tile .embed iframe { height: 360px; }
.tile ul { margin: .4rem 0; }
.prose .tiles { max-width: none; }
.info-wide .prose { max-width: none; }
.prose-wide { max-width: none; }
.prose-wide > p { max-width: 75ch; }

/* ---------- calendario arrivo/partenza ---------- */
.dp-trigger { display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 30px; padding: .15rem 0; border: 0; background: transparent;
  font: 600 1rem var(--sans); color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
.dp-trigger svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--pine-2); stroke-width: 1.7; stroke-linecap: round; }
.dp-trigger .dp-val { overflow: hidden; text-overflow: ellipsis; }
.dp-trigger.is-empty .dp-val { color: var(--muted); font-weight: 500; }
.sb-field:has(.dp-trigger.is-active) { background: var(--sand); box-shadow: inset 0 0 0 2px var(--pine-2); }
.field .dp-trigger { min-height: 46px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.field .dp-trigger.is-active, .field .dp-trigger:focus-visible { outline: none; border-color: var(--pine-2); box-shadow: 0 0 0 3px rgba(44, 85, 70, .15); }

.dp { position: absolute; z-index: 90; }
.dp-sheet { background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 18px 60px rgba(15, 28, 22, .28), 0 0 0 1px rgba(15, 28, 22, .06);
  padding: 1.1rem 1.3rem 1rem; position: relative; }
.dp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .4rem; min-height: 2.6rem; }
.dp-title { display: block; font: 700 1.2rem/1.2 var(--serif); }
.dp-sub { display: block; color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.dp-x { border: 0; background: var(--sand); width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); display: none; }
.dp-nav { position: absolute; left: 1rem; right: 1rem; top: 4.1rem; display: flex; justify-content: space-between; pointer-events: none; }
.dp-nav button { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; color: var(--ink); }
.dp-nav button:hover:not(:disabled) { border-color: var(--ink); }
.dp-nav button:disabled { opacity: .3; cursor: default; }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.dp-mname { text-align: center; font-weight: 700; padding: .5rem 0 .7rem; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.dp-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding-bottom: .35rem; text-transform: uppercase; }
.dp-day { position: relative; aspect-ratio: 1; border: 0; background: none; padding: 0; cursor: pointer; font: 600 .95rem var(--sans); color: var(--ink); }
.dp-day span { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; transition: background .1s; }
.dp-day:hover:not(:disabled) span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dp-day:disabled { color: #c3c7c4; cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
.dp-day.is-today span { text-decoration: underline; text-underline-offset: 3px; }
.dp-day.in-range, .dp-day.is-preview { background: #e4efe9; }
.dp-day.is-preview { background: #eef4f0; }
.dp-day.is-start.has-range { background: linear-gradient(90deg, transparent 50%, #e4efe9 50%); }
.dp-day.is-end { background: linear-gradient(90deg, #e4efe9 50%, transparent 50%); }
.dp-day.is-start span, .dp-day.is-end span { background: var(--pine); color: #fff; box-shadow: none; }
.dp-grid > .dp-day:nth-child(7n).is-start.has-range, .dp-grid > .dp-day:nth-child(7n + 1).is-end { background: none; }
.dp-grid > .dp-day:nth-child(7n + 1).in-range, .dp-grid > .dp-day:nth-child(7n + 1).is-preview { border-radius: 50% 0 0 50%; }
.dp-grid > .dp-day:nth-child(7n).in-range, .dp-grid > .dp-day:nth-child(7n).is-preview { border-radius: 0 50% 50% 0; }
.dp-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .8rem; }
.dp-clear { border: 0; background: none; font: 600 .95rem var(--sans); text-decoration: underline; cursor: pointer; color: var(--ink); padding: .4rem 0; }
.dp-done:disabled { opacity: .45; cursor: default; }

/* telefono: foglio a tutto schermo con i mesi in colonna */
.dp.dp-mobile { position: fixed; inset: 0; background: rgba(15, 28, 22, .45); display: flex; align-items: flex-end; }
.dp.dp-mobile[hidden] { display: none; }
.dp-mobile .dp-sheet { width: 100%; height: 92vh; height: 92dvh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; padding: 1rem 1rem calc(.8rem + env(safe-area-inset-bottom)); animation: dp-up .22s ease-out; }
.dp-mobile .dp-x { display: block; }
.dp-mobile .dp-nav { display: none; }
.dp-mobile .dp-months { display: block; flex: 1; overflow-y: auto; overscroll-behavior: contain; margin: 0 -1rem; padding: 0 1rem; }
.dp-mobile .dp-month { padding-bottom: 1rem; }
.dp-mobile .dp-mname { text-align: left; position: sticky; top: 0; background: #fff; z-index: 2; }
.dp-mobile .dp-day { font-size: 1rem; }
.dp-mobile .dp-foot .dp-done { min-width: 9rem; min-height: 48px; }
html.dp-lock { overflow: hidden; }
@keyframes dp-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- pagine "Vivi la valle": riquadri 2 per riga ---------- */
.info-page .info-intro, .info-raw > p { max-width: 80ch; }
.info-page .info-intro + .info-grid { margin-top: 1.2rem; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 0 0 2rem; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; min-width: 0; box-shadow: var(--shadow); }
.info-card > h2, .info-card > h3 { margin: 0 0 .6rem; font-size: 1.3rem; }
.info-card > h3 { font-size: 1.1rem; }
.info-card > :last-child { margin-bottom: 0; }
.info-card p, .info-card li { max-width: none; }
.info-group { margin: 2rem 0 .9rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); }
.info-page .tiles, .info-page .tiles[style*="--cols"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-page .info-cta { max-width: 760px; margin: 2rem auto 0; }
@media (max-width: 760px) {
  .info-grid, .info-page .tiles, .info-page .tiles[style*="--cols"] { grid-template-columns: 1fr; }
}

/* ---------- mappa delle strutture (stile Airbnb) ---------- */
.page-map { --mapbar-h: 76px; }
.mapapp { position: relative; }
.mapbar { position: sticky; top: 70px; z-index: 35; display: flex; align-items: stretch; gap: .4rem; padding: .55rem max(16px, calc((100vw - 1400px) / 2)); background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mb-field { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mb-field:hover, .mb-field:focus-within { border-color: var(--ink); }
.mb-field > span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mb-field select, .mb-field input { border: 0; background: transparent; font: 600 .95rem var(--sans); color: var(--ink); padding: .1rem 0; min-height: 26px; width: 100%; outline: none; }
.mb-loc { flex: 1.1 1 170px; }
.mb-date { flex: 1 1 150px; }
.mb-guests { flex: 1.2 1 210px; }
.mb-guests-in { display: flex; gap: .4rem; }
.mb-guests-in label { flex: 1; min-width: 0; }
.mb-q { flex: 1.2 1 170px; }
.mb-actions { display: flex; gap: .4rem; }
.mb-btn { display: inline-flex; align-items: center; gap: .45rem; padding: 0 1rem; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 .93rem var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; }
.mb-btn:hover, .mb-btn[aria-expanded="true"] { border-color: var(--ink); }
.mb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mb-btn.is-on { border-color: var(--pine-2); color: var(--pine-2); }
.mb-btn.is-busy { opacity: .6; cursor: progress; }
.mb-badge[hidden] { display: none; }
.mb-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pine); color: #fff; font-size: .75rem; }
.mapbar .dp-trigger { font-size: .95rem; min-height: 26px; padding: .1rem 0; }
.mapbar .mb-field:has(.dp-trigger.is-active) { border-color: var(--pine-2); box-shadow: 0 0 0 2px var(--pine-2) inset; }

.mapfilters { position: absolute; right: max(16px, calc((100vw - 1400px) / 2)); top: calc(100% + 8px); width: min(560px, calc(100vw - 32px)); background: #fff; border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15, 28, 22, .25), 0 0 0 1px rgba(15, 28, 22, .06); z-index: 50; display: flex; flex-direction: column; max-height: calc(100vh - 180px); }
.mapfilters[hidden] { display: none; }
.mf-inner { padding: 1.1rem 1.3rem; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.2rem; }
.mf-inner fieldset { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
.mf-inner fieldset:first-child, .mf-am { grid-column: 1 / -1; }
.mf-inner legend { font-weight: 700; margin-bottom: .45rem; }
.mf-inner select { width: 100%; min-height: 44px; padding: .45rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .95rem; }
.mf-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.mf-checks .check { margin: .3rem 0; }
.mf-foot { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.3rem; border-top: 1px solid var(--line); }

.mapsplit { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; height: calc(100vh - 70px - var(--mapbar-h)); height: calc(100dvh - 70px - var(--mapbar-h)); min-height: 480px; }
.maplist { overflow-y: auto; padding: 1rem max(16px, calc((100vw - 1400px) / 2)) 2rem; padding-right: 1.2rem; background: var(--snow); }
.maplist-head { margin-bottom: .8rem; }
.maplist-h { font-size: 1.35rem; margin: 0 0 .2rem; }
.maplist-count { font-weight: 600; margin: 0; color: var(--muted); }
.maplist-move { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.maplist-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.maplist-none { padding: 2rem 1rem; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.mcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; outline: 2px solid transparent; }
.mcard:hover { box-shadow: 0 8px 28px rgba(20, 30, 25, .14); }
.mcard.is-active { outline-color: var(--pine-2); }
.mcard-img { position: relative; display: block; aspect-ratio: 3/2; background: var(--sand); overflow: hidden; }
.mcard-img img { width: 100%; height: 100%; object-fit: cover; }
.mcard-body { padding: .75rem .85rem .85rem; display: flex; flex-direction: column; flex: 1; }
.mcard-title { font-size: 1.08rem; margin: 0 0 .2rem; line-height: 1.25; }
.mcard-title a { color: var(--ink); text-decoration: none; }
.mcard-title a:hover { color: var(--accent); }
.mcard-meta { font-size: .85rem; color: var(--muted); margin: 0; min-height: 1.2em; }
.mcard-foot { margin-top: auto; padding-top: .5rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.mcard .pick { margin-top: .55rem; font-size: .85rem; padding: .4rem .5rem; }

.mapcanvas { position: relative; min-height: 0; }
.map-el { position: absolute; inset: 0; background: #e8eef0; z-index: 1; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); margin: 0; }
.map-toast { position: absolute; z-index: 5; left: 50%; top: 14px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); }
.map-toggle { display: none; }

/* segnaposto con prezzo / stelle */
.pin-wrap { background: none; border: 0; }
.pin { position: absolute; transform: translate(-50%, -50%); display: inline-block; white-space: nowrap; padding: .28rem .6rem; border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 .85rem/1.2 var(--sans); box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.06); transition: transform .12s, background .12s, color .12s; cursor: pointer; }
.pin-feat { box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 0 0 2px var(--accent); }
.pin:hover, .pin.is-hover { transform: translate(-50%, -50%) scale(1.12); background: var(--ink); color: #fff; }
.pin.is-active { background: var(--pine); color: #fff; transform: translate(-50%, -50%) scale(1.12); }
.me-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.25), 0 1px 4px rgba(0,0,0,.3); }

/* scheda sulla mappa */
.mpop .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.25); }
.mpop .leaflet-popup-content { margin: 0; width: 260px !important; font: inherit; }
.mpop .leaflet-popup-close-button { background: #fff !important; border-radius: 50%; width: 28px !important; height: 28px !important; top: 8px !important; right: 8px !important; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 2; }
.mpop-img { display: block; aspect-ratio: 16/10; background: var(--sand); }
.mpop-img img { width: 100%; height: 100%; object-fit: cover; }
.mpop-body { padding: .7rem .85rem .85rem; }
.mpop-body .card-kicker { margin: 0 0 .15rem; }
.mpop-title { font: 700 1.05rem/1.25 var(--serif); margin: 0 0 .25rem; }
.mpop-title a { color: var(--ink); text-decoration: none; }
.mpop-body .price { margin: 0 0 .45rem; }
.mpop-actions { display: flex; flex-direction: column; gap: .4rem; }
.mpop-actions .btn { color: #fff; }
.mpop-actions .pick { margin: 0; font-size: .85rem; }
.mapcanvas .leaflet-container { font: 15px/1.45 var(--sans); }
.mapcanvas .leaflet-container a.btn-primary { color: #fff; }
.mapcanvas .leaflet-container .mpop-title a { color: var(--ink); }
.mapcanvas .leaflet-container .mpop-title a:hover { color: var(--accent); }
.mapcanvas .leaflet-popup-content p { margin: 0 0 .3rem; }

@media (max-width: 1100px) {
  .mb-q { display: none; }
}
@media (max-width: 900px) {
  .mapbar { position: relative; top: 0; padding: .5rem 16px; gap: .4rem; }
  .mb-loc { flex: 1 1 100%; }
  .mb-date { flex: 1 1 calc(50% - .2rem); }
  .mb-guests, .mb-q { display: none; }
  .mb-actions { flex: 1 1 100%; }
  .mb-actions .mb-btn { flex: 1; justify-content: center; min-height: 46px; }
  /* telefono: mappa in alto, elenco delle strutture subito sotto (si scorre la pagina) */
  .mapsplit { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .mapcanvas { order: 1; height: 58vh; height: 58svh; min-height: 300px; max-height: 520px; }
  .maplist { order: 2; overflow: visible; padding: 1rem 16px 3rem; }
  .maplist-cards { grid-template-columns: 1fr; }
  .maplist-h { font-size: 1.2rem; }
  .map-toggle { display: none !important; }
  .mcard { flex-direction: row; }
  .mcard-img { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }
  .mcard-body { padding: .6rem .7rem .7rem; }
  .mcard-title { font-size: 1rem; }
  .mcard-foot { flex-wrap: wrap; gap: .3rem; }
  .mcard-foot .btn { padding: .35rem .7rem; }
  .mcard .pick { font-size: .78rem; padding: .35rem .45rem; margin-top: .4rem; }
  .mapfilters { position: fixed; inset: auto 0 0 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 20px 20px 0 0; right: 0; top: auto; }
  .mf-inner, .mf-checks { grid-template-columns: 1fr; }
  html.mf-lock { overflow: hidden; }
  .mapfilters { box-shadow: 0 0 0 100vmax rgba(15, 28, 22, .45); }
  html.mf-lock .mapbar { z-index: 100; }
  html.mf-lock .map-toggle { display: none; }
}
.results-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.results-top .results-count { margin: 0; }
.results-map { display: inline-flex; align-items: center; gap: .4rem; }
.results-map svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* riquadro contatti: sotto le foto su telefono, sopra il modulo su pc */
.contact-card-top { display: none; }
@media (max-width: 980px) {
  .contact-card-top { display: block; margin-top: 1rem; }
  .contact-card-side { display: none; }
}
.pick.pick-dark { margin-top: .9rem; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); color: #fff; }
.pick.pick-dark:hover { border-color: #fff; }
.pick.pick-dark .pick-box { border-color: #fff; }
.pick.pick-dark[aria-pressed="true"] { background: #fff; color: var(--pine); border-style: solid; border-color: #fff; }
.pick.pick-dark[aria-pressed="true"] .pick-box { border-color: var(--pine); }
.hotel-head + .block { padding-top: .6rem; }
.hotel-head .facts { margin-bottom: .2rem; }
/* riquadri con logo (es. partner taxi): logo in alto, tutti della stessa altezza */
.info-card { display: flex; flex-direction: column; }
.info-card figure.logo { order: -1; height: 90px; display: flex; align-items: center; justify-content: center; background: #fff;
  border-bottom: 1px solid var(--line); margin: -1.2rem -1.3rem .9rem; padding: 10px; border-radius: var(--radius) var(--radius) 0 0; }
.info-card figure.logo img { width: auto; height: auto; max-width: 220px; max-height: 70px; object-fit: contain; border-radius: 0; }
.info-card figure.logo figcaption { display: none; }
.info-page .info-grid { align-items: stretch; }
figure.logo .logo-alt { font: 700 1.25rem var(--serif); color: var(--pine); text-align: center; }

/* ---------- pagina eventi: mesi, paese, giorni ---------- */
.event-txt { display: flex; flex-direction: column; min-width: 0; }
.event-meta { color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.ev-filters { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.ev-months { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .2rem; }
.ev-months a { flex: none; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-size: .92rem; text-transform: capitalize; }
.ev-months a:hover { border-color: var(--ink); }
.ev-months a.on { background: var(--pine); border-color: var(--pine); color: #fff; }
.ev-placeform label { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; }
.ev-placeform select { min-height: 42px; padding: .4rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .95rem; }
.ev-count { margin: 0 0 1rem; }
.ev-day { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.ev-day-h { margin: 0; font-size: 1rem; display: flex; gap: .6rem; align-items: flex-start; position: sticky; top: 84px; align-self: start; }
.ev-day-n { font: 700 2.1rem/1 var(--serif); color: var(--accent); min-width: 2.2ch; }
.ev-day-h small { display: block; color: var(--muted); font-weight: 500; text-transform: capitalize; }
.ev-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ev-rows a { display: grid; grid-template-columns: 64px 3.4rem 1fr auto; gap: .8rem; align-items: center; padding: .6rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.ev-rows a:hover { border-color: var(--accent); }
.ev-time { font-weight: 700; color: var(--pine-2); font-variant-numeric: tabular-nums; }
.ev-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ev-place { color: var(--pine-2); font-size: 1.02rem; font-weight: 700; text-align: right; }
@media (max-width: 700px) {
  .ev-day { grid-template-columns: 1fr; gap: .5rem; }
  .ev-day-h { position: static; }
  .ev-rows a { grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; column-gap: .75rem; row-gap: .1rem; align-items: start; }
  .ev-rows .ev-thumb { grid-row: 1 / span 3; width: 56px; height: 42px; }
  .ev-time { grid-column: 2; font-size: .88rem; }
  .ev-name { grid-column: 2; }
  .ev-place { grid-column: 2; text-align: left; }
}

.ev-credit { margin: 1.6rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-style: italic; }
.ev-back { margin: 1.8rem 0 2rem; }
.event-meta { font-size: .9rem; font-weight: 600; color: var(--pine-2); }

/* ---------- intestazione azzurra come il logo (#30b6e4), testi bianchi ---------- */
:root { --head: #30b6e4; --head-dark: #1b9ccc; --head-line: rgba(255, 255, 255, .28); }
.site-header { background: var(--head); border-bottom: 0; box-shadow: 0 2px 10px rgba(10, 60, 90, .18); backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand-text b, .brand-text small { color: #fff; }
.mainnav > ul > li > a { color: #fff; text-shadow: 0 1px 1px rgba(0, 60, 90, .25); }
.mainnav > ul > li > a:hover, .mainnav > ul > li:focus-within > a { background: rgba(255, 255, 255, .2); color: #fff; }
.mainnav .sub { background: var(--head); border: 1px solid var(--head-line); box-shadow: 0 14px 34px rgba(10, 60, 90, .28); }
.mainnav .sub a { color: #fff; }
.mainnav .sub a:hover { background: var(--head-dark); color: #fff; }
.mainnav .sub .muted { color: rgba(255, 255, 255, .78); }
.langs a { color: rgba(255, 255, 255, .9); }
.langs a:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.langs a.on { color: var(--head-dark); background: #fff; }
.nav-toggle span { background: #fff; }
.nav-cta { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
@media (max-width: 980px) {
  .site-header { background: var(--head); }
  .mainnav { background: var(--head); }
  .mainnav > ul > li > a { border-bottom-color: var(--head-line); }
  .mainnav .sub { background: transparent; border: 0; box-shadow: none; }
  .mainnav .sub a { color: #fff; }
}

/* ---------- testata delle pagine con immagine a tutta larghezza ---------- */
.page-head.has-hero { position: relative; overflow: hidden; background: #24414f; border-bottom: 0; min-height: 340px; display: flex; align-items: flex-end; padding: 4rem 0 2.2rem; color: #fff; }
.page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.has-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 30, 40, .15) 0%, rgba(10, 30, 40, .25) 45%, rgba(10, 30, 40, .72) 100%); }
.page-head.has-hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
.page-head.has-hero > .wrap { position: relative; z-index: 2; }
.page-head.has-hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.page-head.has-hero .lead, .page-head.has-hero .crumbs, .page-head.has-hero .crumbs a { color: rgba(255, 255, 255, .92); }
@media (max-width: 700px) { .page-head.has-hero { min-height: 230px; padding: 3rem 0 1.4rem; } }

/* mappa della valle ({{mappa}}) */
.valley-map-wrap { margin: 1rem 0 1.6rem; }
.valley-map { height: 460px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e8eef0; z-index: 1; }
.valley-map-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 0; }
.vm-wrap { background: none; border: 0; }
.vm-pin { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .2rem .55rem .2rem .3rem; background: #fff; border-radius: 999px; font: 700 .82rem/1.2 var(--sans); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.28); cursor: pointer; }
.vm-pin i { width: 12px; height: 12px; border-radius: 50%; background: var(--head, #30b6e4); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--head-dark, #1b9ccc); }
.vm-pin:hover { background: var(--ink); color: #fff; }
.valley-map .leaflet-popup-content { font: 15px/1.4 var(--sans); }
.valley-map .leaflet-popup-content p { margin: .3rem 0; }
.valley-map .vm-title { font: 700 1.05rem var(--serif); }
.valley-map a.btn-primary { color: #fff; }
@media (max-width: 700px) { .valley-map { height: 340px; } }
.info-page .info-intro:has(.valley-map-wrap) { max-width: none; }
.credits a { display: inline-flex; align-items: center; gap: .6rem; } .credits img { display: block; border-radius: 3px; background: #fff; width: 126px; height: 36px; }
.map.map-live { aspect-ratio: auto; width: 100%; height: 340px; display: block; padding: 0; background: #e8eef0; position: relative; z-index: 1; }
.vm-pin-hotel { background: var(--accent); color: #fff; font-size: .9rem; padding: .3rem .7rem .3rem .35rem; }
.vm-pin-hotel i { background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 0 3px #fff; }
@media (max-width: 700px) { .map.map-live { height: 260px; } }

/* miniature degli eventi (foto o grafica predefinita) */
.ev-thumb, .event-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: #bfe8f7; display: block; flex: none; }
.ev-rows a { padding: .45rem .8rem .45rem .45rem; }
.ev-default-img { display: block; width: 100%; max-width: 480px; height: auto; }

/* link area albergatori / appartamenti con icona */
.ico-link { display: inline-flex; align-items: center; gap: .45rem; }
.ico-link svg { flex: none; color: #30b6e4; width: 16px; height: 16px; margin-top: -2px; }

/* ---------- lista strutture (2 per riga su PC, schede verticali) ---------- */
.cards-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.cards-list > .card-cta { grid-column: 1 / -1; }
.hotel-row .card-body { padding: 1.1rem 1.3rem 1.1rem; }
.hotel-row .card-title { font-size: 1.3rem; margin-bottom: .45rem; }
.hrow-top { display: flex; flex-direction: column; gap: .8rem; }
.hrow-addr { font-style: normal; font-size: .93rem; line-height: 1.5; color: #3d4843; }
.hrow-addr b { color: var(--ink); }
.hrow-cin { color: var(--muted); font-size: .85rem; }
.hrow-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hrow-contacts a { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.hrow-contacts a:hover { color: #1b9ccc; }
.hrow-contacts small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.hrow-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2e9e4f; flex: none; }
.hrow-ic svg { width: 18px; height: 18px; fill: #fff; }
.hrow-ic-mail { background: #30b6e4; }
.hrow-ic-mail svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hotel-row .card-text { margin: .75rem 0 0; font-size: .93rem; }
.hrow-more { font-weight: 600; white-space: nowrap; }
.hrow-icons { margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; text-decoration: none; }
.hrow-icon { display: grid; place-items: center; }
.hrow-icons:hover .am-ico { border-color: #30b6e4; }
.hrow-icons .am-ico { width: 32px; height: 32px; padding: 5px; border-radius: 8px; border: 1px solid #bfe6f5; background: #f1fafe; stroke-width: 1.6; }
.hrow-icons-more { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #30b6e4; color: #fff; font-size: .8rem; font-weight: 700; text-decoration: none; }
.hrow-btn { padding-inline: 1.3rem; }
.hotel-row .card-foot { padding-top: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .cards-list { grid-template-columns: 1fr; }
}
.tiles-embed .embed { margin: 0; }
.tiles-embed .embed iframe { height: 560px; border-radius: 8px; background: #fff; }
.embed iframe[src*="meteo.report"] { height: 560px; }

/* pagina del paese con immagine di testata */
.page-head.hero-loc { min-height: 460px; padding-top: 6rem; }
.page-head.hero-loc .lead { font-size: 1.15rem; max-width: 720px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); margin-bottom: 1.2rem; }
.page-head.hero-loc .searchbox { color: var(--ink); }
.loc-intro { padding: 1.8rem 0 .4rem; }
.loc-intro .lead { font-size: 1.05rem; color: #39443f; max-width: 860px; }
@media (max-width: 760px) { .page-head.hero-loc { min-height: 0; padding-top: 7rem; } }

/* meteo e webcam */
.meteo-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 1rem; margin: .6rem 0 1rem; max-width: none; }
.meteo-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0; min-width: 0; }
.meteo-tile h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.meteo-tile iframe { display: block; width: 100%; border: 0; border-radius: 8px; background: #fff; }
.meteo-tile.cam img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; background: var(--sand); }
.meteo-tile.cam .cam-off img { visibility: hidden; }
.meteo-tile figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.meteo-official { font-size: .92rem; margin: 0 0 2rem; }
@media (max-width: 760px) { .meteo-grid { grid-template-columns: 1fr; } }
