@font-face { font-family: "Glacial Indifference"; src: url("../fonts/GlacialIndifference-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Glacial Indifference"; src: url("../fonts/GlacialIndifference-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Glacial Indifference"; src: url("../fonts/GlacialIndifference-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #242429; --muted: #6b6b73; --bg: #fff; --soft: #f4f4f4; --line: #e4e4e7;
  --black: #000; --ok: #13795b; --err: #b3261e; --warn: #9a6700; --star: #f5a623;
  --radius: 5px; --shadow: 0 2px 14px rgba(0, 0, 0, .07); --head: 62px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 60px); }
body { margin: 0; font-family: "Glacial Indifference", "Jost", "Century Gothic", system-ui, sans-serif; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
.ic { flex: none; vertical-align: -3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.soft { background: var(--soft); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Testata */
.head { position: sticky; top: 0; z-index: 50; height: var(--head); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.head .burger { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); display: flex; }
.head .brand { display: flex; align-items: center; }
.head .brand img { height: 19px; width: auto; }
.head .spacer { flex: 1; }
.head .who { display: flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.head .who a { text-decoration: none; }
.head .who a:hover { text-decoration: underline; }
.head .cta { font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--radius); }
.head .cta:hover { background: var(--ink); color: #fff; }
@media (max-width: 720px) { .head .cta { display: none; } .head .who span { display: none; } .head .brand img { height: 15px; } }

.drawer { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); background: #fff; z-index: 70; transform: translateX(-100%); transition: transform .25s ease; padding: 22px; overflow: auto; box-shadow: var(--shadow); }
.drawer.open { transform: none; }
.drawer .close { background: none; border: 0; cursor: pointer; padding: 6px; margin-bottom: 12px; }
.drawer a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer a:hover { padding-left: 10px; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* Pulsanti e moduli */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; font: inherit; font-weight: 700; font-size: 15px; color: #fff; background: var(--black); border: 1px solid var(--black); border-radius: var(--radius); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: #2c2c31; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn.danger:hover { background: var(--err); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
label small, .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #cfcfd4; border-radius: var(--radius);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field { margin-bottom: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow: auto; padding: 2px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; }
.checks label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.checks input { accent-color: #fff; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }

.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; border: 1px solid; }
.flash.ok { background: #e9f6f1; border-color: #a9d8c7; color: #0d5a43; }
.flash.error { background: #fdecea; border-color: #f1b5b0; color: #8c1d18; }

/* Hero e ricerca */
.hero { text-align: center; padding: 10px 0 0; }
.hero .logo { width: min(460px, 74vw); height: auto; margin: 0 auto; }
.searchbox { position: relative; margin: 10px auto 0; background: #fff; box-shadow: 0 6px 30px rgba(0, 0, 0, .12); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; grid-template-columns: 1.2fr 1.2fr 1fr auto; align-items: end; text-align: left; }
.searchbox input[type=text] { border: 0; border-bottom: 1px solid #cfcfd4; border-radius: 0; padding-inline: 0; }
.searchbox input[type=text]:focus { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.searchbox .where { display: flex; gap: 6px; align-items: end; }
.searchbox .where button { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); border-radius: var(--radius); }
.searchbox .where button:hover, .searchbox .where button.on { background: var(--soft); }
.searchbox .radius label { font-weight: 700; }
.searchbox input[type=range] { width: 100%; accent-color: var(--ink); }
.hero .tagline { font-style: italic; font-size: 20px; margin: 22px 0 0; }
@media (max-width: 860px) { .searchbox { grid-template-columns: 1fr; } }

section.block { padding: 56px 0; }
.block > .wrap > h2, .block > h2 { text-align: center; font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 32px; }

/* Schede attività */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { position: relative; height: 215px; border-radius: var(--radius); overflow: hidden; background: #33333a; color: #fff; }
.card > a { position: absolute; inset: 0; display: block; text-decoration: none; color: #fff; }
.card .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.card .slides img.on { opacity: 1; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 24, .35), rgba(20, 20, 24, .72)); }
.card .info { position: absolute; left: 20px; right: 16px; bottom: 16px; display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; align-items: start; }
.card .avatar { width: 44px; height: 44px; border-radius: 50%; background: #fff center/cover no-repeat; margin-top: 4px; }
.card h3 { font-size: 16px; margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.card ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.card li { display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; }
.card li span { overflow: hidden; text-overflow: ellipsis; }
.card .nav { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.card:hover .nav, .card:focus-within .nav { opacity: 1; }
.card .nav button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer; }
.card .badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
@media (hover: none) { .card .nav { opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 8px 16px; border: 1px solid var(--ink); border-radius: 30px; text-decoration: none; font-size: 14px; font-weight: 700; }
.chip:hover, .chip.on { background: var(--ink); color: #fff; }

/* Invito all'iscrizione */
.pitch { text-align: center; }
.pitch h2 { font-size: clamp(26px, 4.4vw, 46px); text-transform: uppercase; padding-bottom: 22px; border-bottom: 1px solid var(--ink); margin-bottom: 30px; }
.pitch .lead { font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; }
.pitch .count { font-size: clamp(44px, 7vw, 68px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pitch .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin: 36px 0; text-align: center; }
.pitch .cols img { width: min(380px, 100%); margin: 0 auto; }
.pitch .cols p { font-weight: 700; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pitch .big { display: inline-block; font-size: clamp(20px, 3.4vw, 34px); font-weight: 700; text-transform: uppercase; text-decoration: none; }
.pitch .big:hover { text-decoration: underline; }
@media (max-width: 720px) { .pitch .cols { grid-template-columns: 1fr; } }

/* Piè di pagina */
.foot { margin-top: 60px; background: linear-gradient(180deg, #fff 0, #fff 30%, #8f8f93 62%, #2b2b2f 84%, #000 100%); }
.foot .cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 30px; align-items: center; justify-items: center; padding-top: 50px; padding-bottom: 46px; }
.foot .flogo { width: 143px; height: auto; }
.foot nav { font-size: 14px; text-align: center; }
.foot nav a { display: block; text-decoration: none; padding: 5px 0; color: #000; }
.foot nav a:hover { text-decoration: underline; }
.foot .social { display: flex; gap: 10px; }
.foot .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; transition: transform .2s; }
.foot .social a:hover { transform: scale(1.1); }
.foot .social a.s-facebook { background: #3b5998; }
.foot .social a.s-instagram { background: #262626; }
.foot .social a.s-google { background: #dd4b39; }
.foot .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; justify-items: center; border-top: 1px solid rgba(255,255,255,.25); padding-top: 34px; padding-bottom: 40px; }
.foot .stark img { width: min(360px, 78vw); height: auto; display: block; }
.foot .copy { margin: 0; color: rgba(255,255,255,.72); text-align: center; font-size: 14px; }
@media (max-width: 860px) {
  .foot { background: linear-gradient(180deg, #fff 0, #fff 38%, #8f8f93 66%, #2b2b2f 86%, #000 100%); }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot .flogo, .foot .social { grid-column: 1 / -1; }
  .foot .flogo { width: 190px; }
  .foot .sign { grid-template-columns: 1fr; gap: 18px; }
}

/* Esplora */
/* Risultati di ricerca: tre colonne — comandi a sinistra, elenco al centro, mappa a destra */
.explore { display: grid; grid-template-columns: 290px minmax(0, 1fr) minmax(320px, 36%); align-items: start; min-height: calc(100vh - var(--head)); }
.xfilters { position: sticky; top: var(--head); height: calc(100vh - var(--head)); overflow: auto; padding: 24px 20px; background: #fff; border-right: 1px solid var(--line); }
.filters h2 { font-size: 20px; margin-bottom: 18px; }
.filters .field { margin-bottom: 18px; }
.filters .where { display: flex; gap: 6px; }
.filters .where button { border: 1px solid #cfcfd4; background: #fff; border-radius: var(--radius); padding: 0 11px; cursor: pointer; color: var(--ink); }
.filters .where button:hover { border-color: var(--ink); }
.filters .where button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters input[type=range] { width: 100%; accent-color: var(--ink); }
.explore .results { padding: 24px clamp(16px, 2.2vw, 30px) 40px; min-width: 0; }
.xhead { margin-bottom: 18px; }
.xhead h1 { font-size: clamp(20px, 2vw, 26px); margin: 0 0 2px; }
.xhead p { margin: 0; }
.explore .map { position: sticky; top: var(--head); height: calc(100vh - var(--head)); background: #e9e9ec; z-index: 0; }
.rows { display: grid; gap: 14px; }
.rowcard { display: grid; grid-template-columns: clamp(130px, 30%, 210px) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.rowcard:hover, .rowcard:focus-within { border-color: var(--ink); box-shadow: var(--shadow); }
.rowcard.hot { border-color: #d6281c; }
.rowcard .ph { position: relative; min-height: 150px; background: #dcdce1 center/cover no-repeat; display: block; }
.rowcard .badge { position: absolute; top: 10px; left: 10px; background: #d6281c; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.rowcard .avatar { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: #fff center/cover no-repeat; box-shadow: var(--shadow); }
.rowcard .tx { padding: 14px 16px; min-width: 0; }
.rowcard .top { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.rowcard h3 { font-size: 18px; margin: 0; }
.rowcard h3 a { text-decoration: none; }
.rowcard h3 a:hover { text-decoration: underline; }
.rowcard .dist { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.rowcard p { margin: 6px 0 0; font-size: 14px; }
.rowcard .kind { margin-top: 2px; color: var(--muted); font-size: 15px; }
.rowcard .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rowcard .line { display: flex; gap: 8px; align-items: flex-start; }
.rowcard .line .ic { margin-top: 3px; color: var(--muted); }
.rowcard .line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowcard .line a { text-decoration: none; }
.rowcard .line a:hover { text-decoration: underline; }
/* Segnaposto del risultato su cui si passa col mouse */
.leaflet-marker-icon.hl svg { transform: scale(1.3); transform-origin: 50% 100%; }
.leaflet-marker-icon svg { transition: transform .12s; }
@media (max-width: 1180px) {
  .explore { grid-template-columns: minmax(0, 1fr) minmax(300px, 40%); }
  .xfilters { grid-column: 1 / -1; position: static; height: auto; overflow: visible; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .filters { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
  .filters h2 { display: none; }
  .filters .field { margin: 0; }
}
@media (max-width: 760px) {
  .explore { grid-template-columns: 1fr; }
  .explore .map { position: relative; top: auto; height: 280px; order: 2; }
  .explore .results { order: 3; }
  .rowcard { grid-template-columns: 112px minmax(0, 1fr); }
  .rowcard .ph { min-height: 130px; }
  .rowcard .avatar { left: 50%; transform: translateX(-50%); }
  .rowcard .top { flex-direction: column; gap: 2px; }
}
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; padding: 7px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: 14px; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 50px 20px; border: 1px dashed #cfcfd4; border-radius: var(--radius); color: var(--muted); }

/* Scheda singola */
.cover { position: relative; height: clamp(220px, 34vw, 400px); background: #33333a; overflow: hidden; }
.cover .track { display: flex; height: 100%; will-change: transform; }
.cover img { flex: 0 0 calc(100% / 3); width: calc(100% / 3); max-width: none; height: 100%; object-fit: cover; }
.cover.n1 img { flex-basis: 100%; width: 100%; }
.cover.n2 img { flex-basis: 50%; width: 50%; }
.cover.none { height: 140px; background: linear-gradient(135deg, #2b2b30, #55555d); }
.cnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.cnav:hover { background: #fff; }
.cnav.prev { left: 14px; }
.cnav.next { right: 14px; }
.cover:not(.rolls) .cnav { display: none; }
@media (max-width: 720px) { .cover img, .cover.n2 img { flex-basis: 100%; width: 100%; } }
.lband { background: #fff; border-bottom: 1px solid var(--line); }
.lhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 20px 0 22px; }
.lhead .avatar { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; background: #eee center/cover no-repeat; box-shadow: var(--shadow); margin-top: -58px; position: relative; align-self: start; }
.lhead h1 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.lsub { margin: 2px 0 0; font-size: 17px; color: var(--muted); }
.lfacts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.lfacts li { display: flex; gap: 6px; align-items: center; }
.lhead .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; max-width: 430px; }
.lgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px; align-items: start; padding: 28px 0 64px; }
.ltext { font-size: 17px; line-height: 1.65; }
.laddr { margin: 14px 0; }
.panel .count { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 1px 10px; }
.reviewform { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.reviewform h3 { font-size: 16px; }
.reviewform fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.reviewform legend { font-weight: 700; font-size: 14px; padding: 0; }
.claim { background: #fafafa; border: 1px dashed #cfcfd4; box-shadow: none; }
@media (max-width: 900px) {
  .lhead { grid-template-columns: auto minmax(0, 1fr); }
  .lhead .avatar { width: 76px; height: 76px; margin-top: -46px; }
  .lhead .acts { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .lhead .acts .btn { flex: 1 1 140px; }
  .lgrid { grid-template-columns: 1fr; padding-top: 18px; }
  .lside { position: static; }
}
.panel { background: #fff; border-radius: var(--radius); padding: 20px; margin: 0 0 22px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); break-inside: avoid; }
.panel > h2 { font-size: 17px; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery a { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; gap: 12px; align-items: center; padding: 7px 0; overflow-wrap: anywhere; }
.plain .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; }
.mapbox { height: 240px; border-radius: var(--radius); background: var(--soft); z-index: 0; }
.stars { color: var(--star); letter-spacing: 2px; white-space: nowrap; }
.stars .off { color: #d5d5da; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-of-type { border-bottom: 0; }
.review header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 30px; line-height: 1; color: #d5d5da; cursor: pointer; margin: 0; padding: 0 2px; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--star); }
.rate input:focus-visible + label { outline: 2px solid var(--ink); }
.notice { background: #fff8e1; border: 1px solid #f0d98a; color: #6b4e00; padding: 10px 16px; text-align: center; font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .9); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; }

/* Pacchetti */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.plan.hot { border: 2px solid var(--ink); }
.plan .price { font-size: 38px; font-weight: 700; line-height: 1; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 8px 0 18px; padding: 0; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.plan li .ic { margin-top: 4px; }

/* Pagine di testo, blog, account */
.prose { font-size: 17px; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.prose h2 { margin-top: 36px; } .prose h3 { margin-top: 24px; font-size: 19px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.prose th { background: var(--soft); }
@media (max-width: 600px) { .prose table, .prose tbody, .prose tr, .prose td { display: block; } .prose thead { display: none; } .prose tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 6px 0; } .prose td { border: 0; padding: 4px 12px; } }
.posts { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: block; }
.post .ph { aspect-ratio: 16 / 10; background: #e9e9ec center/cover no-repeat; }
.post .tx { padding: 18px; }
.post h3 { font-size: 18px; }
.authbox { width: min(440px, 100% - 32px); margin: 50px auto; background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.authbox h1 { font-size: 26px; }
.pagehead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.pagehead h1 { margin: 0; font-size: 26px; }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--soft); white-space: nowrap; }
.pill.published, .pill.paid, .pill.approved { background: #e2f3ec; color: var(--ok); }
.pill.pending { background: #fff3d1; color: var(--warn); }
.pill.expired, .pill.cancelled, .pill.rejected { background: #fde7e5; color: var(--err); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs label { position: relative; width: 110px; font-weight: 400; font-size: 12px; text-align: center; cursor: pointer; }
.thumbs img { width: 110px; height: 82px; object-fit: cover; border-radius: var(--radius); margin-bottom: 4px; }
.thumbs label:has(input:checked) img { opacity: .3; outline: 2px solid var(--err); }
.pickmap { height: 300px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 10px; }
.bars div { flex: 1; background: var(--ink); min-height: 2px; border-radius: 2px 2px 0 0; }
.bars div:hover { background: #77777f; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Stato di apertura */
.st { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.st-open { background: #1f9d6b; color: #fff; }
.st-closing, .st-opening { background: #f0a020; color: #1d1300; }
.st-closed { background: #c7352b; color: #fff; }
.st-info { background: #e9e9ec; color: var(--ink); }
.card li.when { gap: 8px; }
/* Scheda nel fumetto della mappa */
.cardpop .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.cardpop .leaflet-popup-content { margin: 0; width: 290px !important; font: inherit; line-height: 1.45; color: var(--ink); }
.cardpop a.leaflet-popup-close-button { width: 28px; height: 28px; font-size: 20px; line-height: 26px; color: var(--ink); background: rgba(255, 255, 255, .92); border-radius: 50%; top: 8px; right: 8px; z-index: 2; }
.cardpop .maploading { padding: 18px; color: var(--muted); }
.mapcard .ph { display: block; position: relative; height: 150px; background: #dcdce1 center/cover no-repeat; }
.mapcard .avatar { position: absolute; left: 14px; bottom: -22px; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: #fff center/cover no-repeat; box-shadow: var(--shadow); }
.mapcard .tx { padding: 30px 16px 16px; }
.mapcard h3 { font-size: 18px; margin: 0 0 2px; line-height: 1.2; }
.mapcard h3 a, .mapcard .line a { color: var(--ink); text-decoration: none; }
.mapcard h3 a:hover { text-decoration: underline; }
.mapcard p { margin: 6px 0 0; font-size: 14px; }
.mapcard .kind { margin-top: 0; color: var(--muted); }
.mapcard .line { display: flex; gap: 8px; align-items: flex-start; }
.mapcard .line .ic { margin-top: 3px; }
.mapcard .btn { margin-top: 14px; color: #fff; }

/* Suggerimenti di luoghi sotto un campo di testo */
.ac { position: relative; }
.aclist { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); min-width: 260px; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #cfcfd4; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); max-height: 320px; overflow: auto; text-align: left; }
.aclist li { display: flex; gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 4px; cursor: pointer; font-size: 15px; }
.aclist li small { color: var(--muted); margin-left: auto; white-space: nowrap; font-size: 12px; }
.aclist li[aria-selected=true], .aclist li:hover { background: var(--soft); }
.aclist .none { color: var(--muted); cursor: default; }
.pill.pin { background: var(--ink); color: #fff; }

/* Ricerca indirizzo nel modulo attività */
.geo { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.georesults { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.georesults button { display: block; width: 100%; text-align: left; padding: 10px 12px; background: #fff; border: 0; border-bottom: 1px solid var(--line); font: inherit; font-size: 14px; cursor: pointer; }
.georesults li:last-child button { border-bottom: 0; }
.georesults button:hover, .georesults button:focus-visible { background: var(--soft); }

/* Segnaposto rosso delle attività in evidenza */
.pin-red, .pin-black { background: none; border: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }

/* Avviso sopra il campo «Dove» quando manca la scelta del luogo */
.acwarn { position: absolute; z-index: 41; left: 0; bottom: calc(100% + 6px); margin: 0; padding: 6px 10px; background: #c7352b; color: #fff; font-size: 13px; font-weight: 700; border-radius: var(--radius); white-space: nowrap; box-shadow: var(--shadow); }
.acwarn::after { content: ''; position: absolute; left: 14px; top: 100%; border: 6px solid transparent; border-top-color: #c7352b; }

/* Accesso con i social */
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.social { margin-top: 8px; }
code { background: var(--soft); padding: 1px 6px; border-radius: 4px; font-size: 13px; overflow-wrap: anywhere; }

/* Foto che scorrono nei risultati e logo del sito al posto di foto o logo mancanti */
.rowcard .ph { background: #fff; overflow: hidden; }
.rowcard .pic { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity .7s; }
.rowcard .pic.on { opacity: 1; }
.cover.none { height: 200px; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.cover.none .track { display: none; }
.filters .where button.busy { opacity: .5; pointer-events: none; }

/* Scheda dei risultati cliccabile per intero: il link del titolo copre tutta la scheda; il telefono resta un link a sé. */
.rowcard { position: relative; cursor: pointer; }
.rowcard h3 a::after { content: ''; position: absolute; inset: 0; }
.rowcard .line a { position: relative; z-index: 1; }

/* Scheda dell'attività aperta dal segnaposto: al centro dello schermo, con la X per chiuderla. */
.mapmodal { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 15, 20, .6); display: grid; place-items: center; padding: 20px; }
.mapmodal .box { position: relative; width: min(380px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
.mapmodal .x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.mapmodal .maploading { padding: 60px 20px; text-align: center; font-weight: 700; }
.mapmodal .mapcard { position: relative; }
.mapmodal .mapcard .ph { height: 200px; }
/* Foto della scheda sulla mappa: scorrono da sole ogni 3 secondi, oppure con le frecce. */
.mapcard .phw { position: relative; }
.mapcard .sl { position: absolute; inset: 0; background: #dcdce1 center/cover no-repeat; opacity: 0; transition: opacity .5s; }
.mapcard .sl.on { opacity: 1; }
.mapcard .nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.mapcard .nav.prev { left: 8px; } .mapcard .nav.next { right: 8px; }
.mapcard .nav:hover { background: #fff; }
.mapcard .count { position: absolute; right: 10px; bottom: 8px; z-index: 2; background: rgba(15, 15, 20, .7); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; pointer-events: none; }
.mapcard .count b { font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .mapcard .sl { transition: none; } }

/* Pagina dell'attività su telefono: niente via in alto (la mappa è più sotto) e blocchi in un ordine unico:
   descrizione, foto, mappa, orari, contatti, servizi, recensioni, poi il resto. */
@media (max-width: 900px) {
  .lfacts .addr { display: none; }
  .lgrid { row-gap: 0; }
  .lmain, .lside { display: contents; }
  .p-desc { order: 1; } .p-foto { order: 2; } .p-mappa { order: 3; } .p-orari { order: 4; }
  .p-cont { order: 5; } .p-serv { order: 6; }
}

/* Nome dell'attività accanto al segnaposto: visibile solo a mappa ingrandita, per non affollarla. */
.leaflet-tooltip.pinlabel { display: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font: 700 12px/1.3 inherit; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.leaflet-tooltip.pinlabel::before { display: none; }
.leaflet-container.names .leaflet-tooltip.pinlabel { display: block; }

/* Contatti: ogni canale con la sua icona e il suo colore. */
.dot.s-web { background: var(--ink); color: #fff; }
.dot.s-facebook { background: #1877f2; color: #fff; }
.dot.s-instagram { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); color: #fff; }
.dot.s-youtube { background: #e62117; color: #fff; }
.dot.s-tiktok { background: #111; color: #fff; }
.dot.s-whatsapp { background: #1faa59; color: #fff; }


/* La tua posizione sulla mappa dei risultati. */
.pin-from { border-radius: 50%; background: #e02424; border: 4px solid #fff; box-shadow: 0 0 0 7px rgba(224, 36, 36, .30), 0 2px 6px rgba(0, 0, 0, .5); }
.pin-me { display: grid; place-items: center; border-radius: 50%; background: #fff; border: 3px solid #16161a; box-shadow: 0 0 0 6px rgba(255, 255, 255, .55), 0 2px 6px rgba(0, 0, 0, .45); }

/* Modulo attività: orari in riga, sottotitoli, logo e coordinate */
textarea.tall { min-height: 200px; } textarea.short { min-height: 70px; }
.panel h3.sub { font-size: 14px; color: var(--muted); font-weight: 400; margin: 6px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.hrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 8px 28px; }
.hrs .field { display: grid; grid-template-columns: 88px minmax(0, 1fr) 112px; gap: 8px; align-items: center; margin: 0; }
.hrs select { padding-left: 8px; padding-right: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 520px) {
  .hrs { gap: 14px; }
  .hrs .field { grid-template-columns: minmax(0, 1fr) 124px; }
  .hrs .field input { grid-column: 1 / -1; grid-row: 2; }
}
.hrs label { margin: 0; }
.logonow { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 1px solid var(--line); }
.coords { margin-top: 12px; } .coords summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.panel label .ic { color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.thumbs label { width: auto; } .thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* Pagine da sfogliare: attività per città e per tipo di locale */
.browse h1 { text-align: center; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 10px; }
.browse .lead { text-align: center; color: var(--muted); margin: 0 0 28px; }
.browse .chips { margin: 0 0 32px; }
.browse .chips.more { margin: 36px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.lband .crumbs { justify-content: flex-start; margin: 0 0 6px; font-size: 13px; }
.lsub a { color: inherit; text-decoration: none; }
.lsub a:hover { text-decoration: underline; }
.hero h1.tagline { font-weight: 400; line-height: 1.55; }

/* Frecce per scorrere le foto (schede in home, anteprima sulla mappa, testata dell'attività): stesso disegno ovunque.
   Devono essere delicate: un velo scuro appena visibile con la freccia bianca (si legge sia sulle foto chiare sia su quelle scure), a metà altezza, una a sinistra e una a destra.
   Si fanno un po' più presenti solo quando ci si passa sopra. */
.card .nav button, .cnav, .mapcard .nav {
  position: absolute; top: 50%; transform: translateY(-50%); margin: 0; padding: 0;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .38); box-shadow: none;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: .7; transition: opacity .2s, background .2s;
}
.card .nav button .ic, .cnav .ic, .mapcard .nav svg { width: 16px; height: 16px; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.card .nav button:hover, .cnav:hover, .mapcard .nav:hover { opacity: 1; background: rgba(0, 0, 0, .45); }
.card .nav button:focus-visible, .cnav:focus-visible, .mapcard .nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; opacity: 1; }
/* Scheda in home: ai due lati, a metà altezza; compaiono passando sulla scheda (sempre visibili sul telefono). */
.card .nav { position: static; display: contents; }
.card .nav button { width: 28px; height: 28px; opacity: 0; }
.card .nav button:first-child { left: 6px; }
.card .nav button:last-child { right: 6px; }
.card:hover .nav button, .card:focus-within .nav button { opacity: .7; }
.card .nav button:hover { opacity: 1; }
@media (hover: none) { .card .nav button { opacity: .7; } }
/* Testata dell'attività */
.cnav { width: 42px; height: 42px; background: rgba(0, 0, 0, .3); opacity: .85; }
.cnav .ic { width: 20px; height: 20px; }
.cnav.prev { left: 14px; } .cnav.next { right: 14px; }
/* Anteprima sulla mappa */
.mapcard .nav.prev { left: 8px; } .mapcard .nav.next { right: 8px; }

/* Fondo della scheda attività, a tutta larghezza: altri tre locali della città (come nei risultati di ricerca)
   e l'invito a rivendicare l'attività. */
.lgrid:has(+ .lmore) { padding-bottom: 28px; }
.lmore { padding-bottom: 64px; }
.lmore > h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 28px 0 22px; text-align: center; }
.lmore .p-rec { margin-bottom: 0; }
.lmore .reviewform { max-width: 640px; }
.near3 .slot { display: none; min-width: 0; }
.near3 .slot.on { display: block; animation: slotin .45s ease both; }
.near3 .slot .rowcard { height: 100%; }
@keyframes slotin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .near3 .slot.on { animation: none; } }
.near3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.near3 .rowcard { grid-template-columns: clamp(104px, 32%, 140px) minmax(0, 1fr); }
.near3 .rowcard .ph { min-height: 140px; }
.near3 .rowcard .tx { padding: 12px 14px; }
.near3 .rowcard h3 { font-size: 16px; }
.near3 .rowcard .kind { font-size: 14px; }
.near3 .rowcard .line { font-size: 13px; }
.lmore .all { text-align: center; margin: 22px 0 0; }
.claimbar { display: flex; gap: 16px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 40px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.claimbar div { display: grid; gap: 2px; flex: 1 1 320px; }
.claimbar strong { font-size: 18px; }
.claimbar span { color: var(--muted); }
.claimbar .btn { flex: 0 0 auto; }
@media (max-width: 1000px) { .near3 { grid-template-columns: 1fr; } .near3 .rowcard { grid-template-columns: 112px minmax(0, 1fr); } }
@media (max-width: 560px) { .claimbar { padding: 18px 16px; } .claimbar .btn { width: 100%; } }

/* Fonte dei dati arrivati da OpenStreetMap: obbligatoria, ma discreta */
.osmnote { margin: 26px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Schede senza foto e senza logo: copertina generica per tipo di locale e logo tondo con l'iniziale del nome,
   nello stesso colore della copertina. Non sono immagini del locale, solo un segnaposto ordinato. */
.cover.none { height: clamp(170px, 24vw, 260px); background: #33333a center 42% / cover no-repeat; border-bottom: 0; display: block; }
.avatar.nologo { display: grid; place-items: center; background: #4d4d5a; color: #fff; font-weight: 700; font-size: 20px; line-height: 1; border: 2px solid #fff; }
.avatar.nologo::after { content: attr(data-i); }
.lband .avatar.nologo { font-size: 44px; }
.k-pizza { background-color: #c2452d !important; } .k-ristorante { background-color: #34495e !important; } .k-pesce { background-color: #1f7a94 !important; }
.k-bar { background-color: #6f4e37 !important; } .k-gelato { background-color: #d5688c !important; } .k-dolci { background-color: #b8743a !important; }
.k-birra { background-color: #c58a1d !important; } .k-vino { background-color: #7b2845 !important; } .k-panino { background-color: #d07c27 !important; }
.k-asia { background-color: #2c7f6c !important; } .k-tipico { background-color: #5f6f3a !important; } .k-locale { background-color: #4d4d5a !important; }

/* Altre sedi: nel modulo si aprono con un «+», nella scheda hanno un titoletto */
details.sede { border: 1px dashed #cfcfd4; border-radius: var(--radius); padding: 12px 14px; margin-top: 10px; }
details.sede > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 28px; }
details.sede > summary::-webkit-details-marker { display: none; }
details.sede .plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; line-height: 1; }
details.sede[open] .plus { transform: rotate(45deg); }
.sedetit { margin: 16px 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }


.sedeorari { margin: 4px 0 10px; }
.sedeorari > summary { cursor: pointer; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.sedeorari .hours { margin-top: 6px; }

/* Segnalibro sulle schede dei locali salvati nei preferiti: pende dal bordo in alto a destra */
.bookmark { position: absolute; top: 0; right: 14px; z-index: 3; line-height: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); pointer-events: none; }
.bookmark svg { fill: #f5b301; }
.btn.faved .ic { fill: #f5b301; stroke: #f5b301; }
.rowcard.fav .dist { margin-right: 30px; }

/* Avviso a comparsa: scende da sotto la testata, resta 3 secondi (6 se è un errore) e sparisce, senza spostare la pagina */
.toast { position: fixed; top: calc(var(--head) + 12px); left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.toast .flash { margin: 0; max-width: 560px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); animation: toast 3.5s ease both; }
.toast .flash.error { animation-duration: 6.5s; }
@keyframes toast {
  0% { opacity: 0; transform: translateY(-24px); }
  7%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-24px); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes toast { 0%, 90% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
}

/* Offerte ed eventi nella scheda e nei risultati */
.newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.news { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.news h3 { margin: 8px 0 2px; font-size: 17px; }
.news .price { margin-left: 6px; }
.news .when { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.news p:last-child { margin-bottom: 0; }
.newsmark { position: absolute; left: 8px; top: 8px; z-index: 3; display: flex; gap: 4px; }
.newsmark .pill { box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
/* Filtri rapidi della ricerca: tre etichette da toccare, su una riga che va a capo */
.field.checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field.checks .check { margin: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #cfcfd4; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none; }
.field.checks .check input { margin: 0; width: 16px; height: 16px; accent-color: var(--ink); }
.field.checks .check:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.field.checks .check:has(input:checked) input { accent-color: #fff; }
.field.checks .check:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 560px) { .field.checks { gap: 6px; } .field.checks .check { padding: 0 11px; font-size: 13px; } }
/* Recensioni: foto e risposta del locale */
.rvphoto { display: block; margin-top: 10px; width: 140px; height: 105px; object-fit: cover; border-radius: 6px; }
.rvreply { margin-top: 10px; padding: 10px 14px; background: var(--soft); border-left: 3px solid var(--ink); border-radius: 0 6px 6px 0; }
.rvreply p { margin: 4px 0 0; }
.rvanswer { margin-top: 8px; }
.rvanswer > summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.rvanswer form { margin-top: 8px; }
.sharelist a { word-break: break-all; }
/* Cartelli con il QR */
.qrcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.qrcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; text-align: center; break-inside: avoid; }
.qrcard h2 { font-size: 20px; margin: 4px 0 12px; }
.qrcard .qr svg { width: 100%; max-width: 220px; height: auto; }
.qrbrand { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qrname { margin: 12px 0 2px; font-weight: 700; }
.qrhint { margin: 0; font-size: 14px; color: var(--muted); }
@media print {
  .head, .foot, footer, .noprint, .toast { display: none !important; }
  body { background: #fff !important; }
  .qrcard { border: 1px solid #999; page-break-inside: avoid; }
}

/* Finestra «Prenota un tavolo» */
.bookdlg { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: auto; }
.bookdlg::backdrop { background: rgba(0, 0, 0, .55); }
.bookdlg form { padding: 20px 22px 22px; }
.bookdlg header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.bookdlg h2 { margin: 0; font-size: 22px; }
.bookdlg .x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; }
.bookdlg .field { margin-bottom: 12px; }
.bookdlg .bkrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bookdlg select, .bookdlg input[type=text], .bookdlg input[type=tel] { width: 100%; min-height: 46px; font-size: 16px; }
@media (max-width: 560px) { .bookdlg { margin-bottom: 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; } }
.searchbox .field.checks { justify-content: center; margin: 0; }

/* Scelta dei servizi nella ricerca: pulsante che sembra un campo e finestra con l'elenco */
.pickbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #cfcfd4; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pickbtn:hover { border-color: var(--ink); }
.pickbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickdlg { width: min(420px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 24px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.pickdlg[open] { display: flex; flex-direction: column; }
.pickdlg::backdrop { background: rgba(0, 0, 0, .55); }
.pickdlg header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.pickdlg h2 { margin: 0; font-size: 20px; }
.pickdlg .x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; }
.picklist { list-style: none; margin: 0; padding: 8px; overflow: auto; }
.picklist button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.picklist button:hover, .picklist button:focus-visible { background: var(--soft); }
.picklist button.on { background: var(--ink); color: #fff; font-weight: 700; }
.picklist button.on::after { content: '✓'; }
@media (max-width: 560px) { .pickdlg { margin-bottom: 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; max-height: 80dvh; } }
.filters .pickdlg h2 { display: block; margin: 0; }

/* Filtri della ricerca: pulsante «Filtri» con il numero di voci scelte, «Aperto adesso» accanto, finestra a scelta multipla */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filterbar .pickbtn { width: auto; flex: 1 1 130px; justify-content: flex-start; font-weight: 700; }
.filterbar .pickbtn .n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.check.chip { margin: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #cfcfd4; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none; }
.check.chip input { margin: 0; width: 16px; height: 16px; accent-color: var(--ink); }
.check.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.check.chip:has(input:checked) input { accent-color: #fff; }
.check.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.filterfield .lab { display: block; font-weight: 700; margin-bottom: 6px; }
.homefilters { grid-column: 1 / -1; }
.homefilters .filterbar { justify-content: center; }
.homefilters .pickbtn { flex: 0 1 140px; }
@media (min-width: 620px) { .filters .filterfield { grid-column: span 2; } .filters .filterfield .pickbtn { flex: 0 1 170px; } }
.pickbody { overflow: auto; padding: 6px 12px 10px; }
.picktit { margin: 14px 8px 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.picktit small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.pickrow { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: 10px; font-size: 16px; font-weight: 400; cursor: pointer; }
.pickrow:hover { background: var(--soft); }
.pickrow input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.pickrow:has(input:checked) { font-weight: 700; background: var(--soft); }
.pickdlg footer { display: flex; gap: 10px; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.pickdlg footer .btn:last-child { flex: 1; }

/* Scheda da telefono: sotto il logo non resta spazio vuoto. Nome e tipo stanno accanto al logo; distanza, orario e
   indirizzo usano tutta la larghezza dello schermo. */
@media (max-width: 560px) {
  .lhead { gap: 4px 14px; padding: 12px 0 16px; }
  .lhead .ltitle { display: contents; }
  .lhead .ltitle > .crumbs, .lhead .ltitle > h1, .lhead .ltitle > .lsub { grid-column: 2; }
  .lhead .avatar { grid-row: 1 / span 3; }
  .lhead .ltitle > .lfacts { grid-column: 1 / -1; margin: 8px 0 6px; gap: 8px 18px; }
  .lfacts .addr { display: flex; }
  .lhead .acts { gap: 8px; }
  .lhead .acts .btn { white-space: nowrap; padding-inline: 10px; }
}

/* Home: campi su una riga, sotto «Filtri» e «Aperto adesso», in fondo «Cerca» a tutta larghezza */
@media (min-width: 861px) { .searchbox:has(.homefilters) { grid-template-columns: 1.2fr 1.2fr 1fr; } }
.searchbox .homego { grid-column: 1 / -1; width: 100%; min-height: 50px; font-size: 17px; justify-content: center; }
/* Risultati: «Filtri» e «Aperto adesso» sulla stessa riga, «Cerca» grande sotto */
.filters .filterbar { flex-wrap: nowrap; }
.filters .filterbar .pickbtn { flex: 1 1 auto; min-width: 0; }
.filters .btn.block { grid-column: 1 / -1; min-height: 50px; font-size: 17px; }
.pill.soon { background: #fff3d1; color: #7a5200; }
.weekpick { border: 0; padding: 0; margin-inline: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.weekpick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.weekpick legend small { font-weight: 400; color: var(--muted); }
.pickrow small { color: var(--muted); font-weight: 400; }

/* Risultati su schermo largo: la colonna dei filtri è stretta, quindi «Filtri» e «Aperto adesso» stanno uno sotto
   l'altro, a tutta larghezza. Sotto i 1180px (barra in alto e telefono) tornano affiancati. */
@media (min-width: 1181px) {
  .filters .filterbar { flex-wrap: wrap; }
  .filters .filterbar .pickbtn, .filters .filterbar .check.chip { flex: 1 1 100%; min-height: 46px; }
  .filters .filterbar .check.chip { justify-content: flex-start; border-radius: var(--radius); }
  .filters .filterfield { margin-bottom: 14px; }
}
/* Filtri attivi sopra i risultati */
.activefilters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.fchip:hover { background: #000; }
.fchip span { opacity: .7; }

/* Risultati, barra dei filtri in alto (tablet e telefono): «Affina la ricerca» occupa sempre tutta la riga, così
   «Filtri» resta leggibile accanto ad «Aperto adesso» anche quando i campi sono su due colonne. */
@media (max-width: 1180px) {
  .filters .filterfield { grid-column: 1 / -1; }
  .filters .filterbar .pickbtn { flex: 1 1 0; min-width: 130px; }
  .filters .filterbar .check.chip { flex: 0 0 auto; }
}
/* Scheda da telefono: accanto al logo resta solo il percorso; nome, tipo e dati partono dal bordo sinistro,
   così sotto la copertina non rimane una colonna bianca. I pulsanti si dividono lo spazio a due a due. */
@media (max-width: 560px) {
  .lhead { align-items: end; }
  .lhead .avatar { grid-row: 1; }
  .lhead .ltitle > h1, .lhead .ltitle > .lsub { grid-column: 1 / -1; }
  .lhead .ltitle > h1 { margin-top: 6px; }
  .lhead .ltitle > .crumbs { align-self: end; margin-bottom: 2px; }
  .lhead .acts > form { flex: 1 1 140px; display: flex; }
  .lhead .acts > form .btn { width: 100%; }
}

/* Pubblicità a pieno schermo */
.adopen, .adopen body { overflow: hidden; }
.adlayer { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .9); display: grid; place-items: center; animation: adin .25s ease; }
.adimg { display: grid; place-items: center; width: 100%; height: 100%; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.adimg img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
a.adimg { cursor: pointer; }
.adclose { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2001; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .55); color: #fff; font: 700 17px/1 inherit; display: grid; place-items: center; cursor: default; opacity: .8; }
.adclose.on { cursor: pointer; opacity: 1; background: #fff; color: #16161a; border-color: #fff; font-size: 20px; }
@keyframes adin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .adlayer { animation: none; } }
