@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f4ede3;
  --surface: #fbf7f1;
  --ink: #3b2a20;
  --muted: #7a6657;
  --accent: #8b5e3c;
  --accent-dark: #6b4529;
  --line: #e3d6c6;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); text-wrap: balance; }
h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(244,237,227,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.top nav a:hover { color: var(--ink); }
.top nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--ink); font-weight: 500; }

.btn {
  display: inline-block; background: var(--ink); color: var(--surface); text-decoration: none;
  padding: 13px 26px; border-radius: 999px; font-weight: 500; margin: .4em 0;
  transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn-off { background: transparent; color: var(--muted); border: 1px dashed var(--muted); cursor: default; }
.btn-off:hover { background: transparent; }
.small { font-size: .85rem; color: var(--muted); margin-top: .6em; }

.hero { padding: 72px 0 56px; text-align: center; }
.hero p { color: var(--muted); font-size: 1.1rem; }

.trips { padding: 24px 0 64px; }
.trips h2 { margin-bottom: 1em; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(59,42,32,.1); }
.cover { height: 180px; display: grid; place-items: center; background: linear-gradient(135deg, #d9c3a5, #a9825c); background-size: cover; background-position: center; }
.flag { font-family: "Fraunces", serif; font-size: 2rem; letter-spacing: .04em; color: var(--ink); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.4rem; margin-bottom: .3em; }
.card-body p { color: var(--muted); }
.date { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; margin-bottom: .4em; }
.more { color: var(--accent-dark); font-weight: 500; }

.donate { background: var(--ink); color: var(--surface); text-align: center; padding: 56px 0; margin-top: 40px; }
.donate p { color: #e6d9c8; }
.donate .btn { background: var(--surface); color: var(--ink); }
.donate .btn:hover { background: #fff; }
.donate .btn-off { background: transparent; color: #cdbba5; border-color: #cdbba5; }
.donate .small { color: #bfae99; }

.trip-hero { padding: 48px 0 40px; background: linear-gradient(135deg, #e6d4bb, #cfae88); background-size: cover; background-position: center; }
.trip-hero h1, .trip-hero .lead, .trip-hero .back { color: var(--ink); }
.back { display: inline-block; text-decoration: none; margin-bottom: 1.4em; font-size: .9rem; }
.lead { font-size: 1.15rem; margin: 0; }
.intro { font-size: 1.1rem; margin-top: 1.8em; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1.5em 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.mapbox { text-align: center; margin: 1.5em 0; }

.route { margin: 2em 0 0; text-align: center; }
.route h2 { font-size: 1.1rem; color: var(--muted); font-family: "Inter", sans-serif; font-weight: 500; }
.chips { list-style: none; padding: 0; margin: 0 0 .5em; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; font-size: .9rem; }

.areas { margin-top: 2.5em; }
.area { padding: 28px 0; border-top: 1px solid var(--line); }
.area h2 { margin-bottom: .2em; }
.blurb { color: var(--muted); margin-bottom: 1em; }
.area h3 { font-family: "Inter", sans-serif; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 1.2em 0 .4em; }
.area .list { margin: 0; padding-left: 1.1em; }
.area .list li { margin-bottom: .45em; }
.area p { margin-bottom: .4em; }
.tip { margin-top: 1em; font-size: .9rem; color: var(--muted); }
.place { color: var(--ink); font-weight: 500; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.place:hover { color: var(--accent-dark); }

.block { margin: 40px 0; }
.list { padding-left: 1.2em; }
.list li { margin-bottom: .8em; }
.videos { display: grid; gap: 16px; }
.videos video { width: 100%; border-radius: 12px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .85rem; }
.foot p { margin: 0 0 .4em; }

@media (max-width: 520px) {
  body { font-size: 16px; }
}

.privacy { padding: 48px 16px; }
.privacy h1 { margin-bottom: 1em; }
.privacy h2 { font-size: 1.15rem; margin-top: 1.6em; }

.brand { display: flex; align-items: center; }
.brand img { height: 36px; width: auto; display: block; }
.sticker { display: block; height: auto; }
.hero-stickers { display: flex; justify-content: center; align-items: flex-end; margin-bottom: 20px; }
.hero-stickers .sticker { width: 96px; }
.hero-stickers .s1 { transform: rotate(-10deg) translateY(6px); }
.hero-stickers .s2 { width: 128px; margin: 0 -6px; z-index: 1; }
.hero-stickers .s3 { transform: rotate(9deg) translateY(6px); }
.cover-sticker { width: 130px; transform: rotate(-6deg); }
.hero-wrap { position: relative; }
.hero-sticker { position: absolute; right: 8px; top: -6px; width: 104px; transform: rotate(8deg); }
.donate-sticker { width: 96px; margin: 0 auto 8px; transform: rotate(-6deg); }
@media (max-width: 520px) {
  .hero-stickers .sticker { width: 78px; }
  .hero-stickers .s2 { width: 104px; }
  .hero-sticker { width: 78px; top: -2px; }
}

/* --- Rifinitura da critica di design --- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.top nav .lang { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; }
.top nav a { padding: 8px 2px; }
.back { padding: 8px 0; margin-bottom: .6em; }
.trip-hero .date { color: var(--accent-dark); }
.hero-stickers .sticker { width: 104px; }
.hero-stickers .s2 { width: 144px; }
.hero { padding: 56px 0 48px; }
.trips { padding-bottom: 72px; }

/* dati essenziali: righe semplici invece di riquadri */
.facts { display: block; margin: 1.6em 0 1.4em; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
.facts dt { align-self: baseline; }
.facts dd { margin: 0; }

/* zone: tag cliccabili */
.chips a { display: block; padding: 8px 14px; text-decoration: none; color: var(--ink); }
.chips li { padding: 0; }
.chips li { transition: background .15s; }
.chips li:hover { background: var(--ink); }
.chips li:hover a { color: var(--surface); }
.area { scroll-margin-top: 64px; }
@media (max-width: 520px) {
  .hero-stickers .sticker { width: 84px; }
  .hero-stickers .s2 { width: 116px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* --- Copertine illustrate --- */
.cover { height: auto; aspect-ratio: 5 / 2; background: none; display: block; overflow: hidden; }
.cover img, .banner-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trip-hero { background: none; padding: 20px 0 8px; }
.trip-hero .banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5 / 2; margin: 0 0 1.4em; }
.trip-hero h1 { margin-bottom: .2em; }
.trip-hero .date { color: var(--accent); }

/* --- Immagine della mappa --- */
.mapimg { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 0 0 .8em; }
.mapimg img { display: block; width: 100%; height: auto; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; padding: 0; margin: 0 0 .4em; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fffdf9; box-shadow: 0 0 0 1px var(--line); }
.attr { margin: 0 0 1em; }

/* --- Missione --- */
.mission { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin: 1.6em 0 1.2em; }
.mission h2 { margin-bottom: .1em; }
.mission .sub { color: var(--muted); margin-bottom: 1.2em; }
.trip-bar { position: relative; }
.bar-label { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.bar-count { color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.bar-track { position: relative; height: 16px; border-radius: 999px; background: var(--bg); border: 2px solid var(--ink); margin-top: 26px; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #e2b56f, var(--accent)); transition: width .4s ease; }
.bar-vespa { position: absolute; bottom: 8px; width: 42px; left: calc((100% - 42px) * var(--p, 0)); transition: left .4s ease; pointer-events: none; }
.bar-msg { margin: .7em 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.cats { display: grid; gap: 10px; margin-top: 1.1em; }
.cat { display: grid; grid-template-columns: 28px 6.2em 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.cat-sticker { width: 28px; }
.cat-name { font-weight: 500; }
.mini-track { height: 10px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line); overflow: hidden; }
.mini-fill { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.cat-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.done { text-align: center; margin-top: 1.2em; padding: 18px 12px 8px; border-top: 1px dashed var(--line); }
.done[hidden] { display: none; }
.done-sticker { width: 96px; margin: 0 auto 4px; }
.done h3 { font-size: 1.3rem; margin-bottom: .2em; }
.done.pop .done-sticker { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.5) rotate(-10deg); } 70% { transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .done.pop .done-sticker { animation: none; } .bar-fill, .bar-vespa, .mini-fill { transition: none; } }
.reset { display: block; margin: 1em auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; padding: 8px 12px; cursor: pointer; }

/* elenchi con caselle */
.tasks { list-style: none; padding: 0; margin: 0; }
.task { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 .15em; }
.tick { flex: none; position: relative; display: block; padding: 8px 6px 8px 0; cursor: pointer; }
.tick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.box { display: block; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--ink); background: var(--bg); transition: background .15s; }
.chk:checked + .box { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf7f1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/80% no-repeat; }
.chk:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.txt { padding: 9px 0; }
.task.is-done .txt { color: var(--muted); }
.goto { text-align: center; font-size: .85rem; color: var(--muted); margin: 0 0 .5em; }
.route { margin-top: 1.4em; }
@media (max-width: 520px) { .cat { grid-template-columns: 28px 5.2em 1fr auto; } }

/* --- Caselle: piccole, tonde, con "check!" --- */
.task { gap: 4px; }
.tick { padding: 12px 8px 12px 0; }
.box { width: 20px; height: 20px; border-radius: 50%; border-width: 2px; background-color: var(--surface); }
.txt { padding: 11px 0; }
.ok { display: none; flex: none; align-self: center; margin-left: auto; white-space: nowrap;
  font-weight: 600; font-size: .72rem; line-height: 1; letter-spacing: .02em;
  color: #3f6b2f; background: #e6efd2; border: 1.5px solid #9db87a; border-radius: 999px;
  padding: 4px 9px; transform: rotate(-5deg); }
.task.is-done .ok { display: inline-block; }
.task.just .ok { animation: ok-pop .45s ease; }
.task.just .box { animation: box-pop .35s ease; }
@keyframes ok-pop { 0% { transform: scale(.3) rotate(-18deg); opacity: 0; } 60% { transform: scale(1.25) rotate(-3deg); opacity: 1; } 100% { transform: scale(1) rotate(-5deg); } }
@keyframes box-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .task.just .ok, .task.just .box { animation: none; } }

/* --- Aereo accanto al logo --- */
.brand-wrap { display: flex; align-items: center; gap: 2px; min-width: 0; }
.plane { width: 40px; height: auto; margin-top: -10px; transform-origin: 20% 70%; transform: rotate(-16deg); animation: plane-idle 3.2s ease-in-out infinite; }
@keyframes plane-idle {
  0%, 100% { transform: translate(0, 0) rotate(-16deg); }
  45% { transform: translate(1px, 1px) rotate(-10deg); }
  70% { transform: translate(4px, -4px) rotate(-20deg); }
}
@media (prefers-reduced-motion: reduce) { .plane { animation: none; } }
@media (max-width: 400px) { .plane { width: 34px; } }

/* --- Pista e decollo --- */
.airfield { position: relative; flex: none; width: 96px; height: 44px; margin-left: 4px; overflow: hidden; cursor: pointer; }
.runway { position: absolute; left: 0; right: 0; bottom: 8px; height: 6px; border-radius: 3px; background: #3b2a20; }
.runway::after { content: ""; position: absolute; left: 4px; right: 4px; top: 2px; height: 2px; background: repeating-linear-gradient(90deg, #fbf7f1 0 6px, transparent 6px 11px); }
.plane { position: absolute; left: 2px; bottom: 13px; width: 38px; height: auto; margin: 0; transform: none; animation: none; }
.fly .plane { animation: takeoff 8s linear 3 both; }
@keyframes takeoff {
  0%   { transform: translate(0, 0) rotate(0); opacity: 1; }
  14%  { transform: translate(0, 0) rotate(0); animation-timing-function: ease-in; }
  42%  { transform: translate(30px, 0) rotate(0); animation-timing-function: ease-in; }
  52%  { transform: translate(48px, -1px) rotate(-9deg); animation-timing-function: ease-out; }
  72%  { transform: translate(84px, -22px) rotate(-22deg); opacity: 1; }
  80%  { transform: translate(112px, -36px) rotate(-24deg); opacity: 0; }
  81%  { transform: translate(0, 0) rotate(0); opacity: 0; }
  92%  { transform: translate(0, 0) rotate(0); opacity: 0; }
  100% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@media (max-width: 400px) { .airfield { width: 80px; } .plane { width: 32px; } }

/* --- Casella quadrata, spunta che si disegna, timbro "check!" --- */
.box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--ink); background: var(--surface); transition: background .15s, border-color .15s; }
.chk:checked + .box { background: #e6efd2; border-color: #2f5a22; }
.tm { width: 100%; height: 100%; fill: none; stroke: #2f5a22; stroke-width: 3.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tm path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.chk:checked + .box .tm path { stroke-dashoffset: 0; }
.task.just .chk:checked + .box .tm path { animation: draw-tick .38s ease-out .05s both; }
.task.just .box { animation: box-pop .3s ease; }
@keyframes draw-tick { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

.ok { font-size: .95rem; font-weight: 700; letter-spacing: .05em; color: #2f5a22; background: rgba(230, 239, 210, .55);
  border: 2.5px solid #2f5a22; border-radius: 8px; padding: 5px 10px; box-shadow: 0 0 0 2px rgba(47, 90, 34, .22);
  transform: rotate(-8deg); }
.task.just .ok { animation: stamp .42s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-16deg); opacity: 0; } 55% { transform: scale(.92) rotate(-8deg); opacity: 1; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .task.just .ok, .task.just .box, .task.just .chk:checked + .box .tm path { animation: none; } }

/* --- Home in stile negozio --- */
.profile { padding: 22px 0 8px; }
.prow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; border: 4px solid #fffdf9;
  background: linear-gradient(#f7e9d2, #efd8b4); box-shadow: 0 2px 10px rgba(59, 42, 32, .2); display: grid; place-items: end center; }
.avatar-img { width: 122%; max-width: none; transform: translateY(10px); }
.pfollow { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink);
  color: var(--surface); font-weight: 600; font-size: .95rem; text-decoration: none; margin-bottom: 8px; }
.pfollow:hover { background: var(--accent-dark); }
.profile h1 { font-size: clamp(1.45rem, 5.4vw, 2.1rem); margin: .2em 0 .25em; }
.pbio { color: var(--muted); margin: 0 0 .6em; }
.pcounts { margin: 0; font-weight: 600; font-size: .95rem; }
.heart { color: #d9534f; }

.shop { padding: 14px 0 56px; }
.psearch { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 999px; background: #e9dfd0; color: var(--muted); }
.psearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); appearance: none; -webkit-appearance: none; }
.psearch input::placeholder { color: var(--muted); }
.psearch:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.pchips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pchips::-webkit-scrollbar { display: none; }
.pchip { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #e9dfd0; color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.pchip.on { background: var(--ink); color: var(--surface); }

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.pcard[hidden] { display: none; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(59, 42, 32, .1); }
.pimg { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.pimg-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pbadge { position: absolute; right: 8px; bottom: 8px; padding: 4px 11px; border-radius: 10px; background: var(--accent); color: #fffdf9; font-weight: 700; font-size: .85rem; box-shadow: 0 2px 6px rgba(59, 42, 32, .25); }
.pbody { padding: 12px 14px 14px; }
.pbody h3 { font-size: 1.05rem; margin: 0 0 .25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdesc { margin: 0 0 .6em; color: var(--muted); font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmeta { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.pmeta-ico { width: 20px; height: 20px; }
.pcard.has-progress .pcount { color: #2f5a22; }
.pempty { text-align: center; color: var(--muted); padding: 24px 0; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; } }
@media (min-width: 700px) { .profile .wrap, .shop .wrap { max-width: 880px; } }

/* --- Itinerario per giorni --- */
.itin { margin: 2em 0 1.2em; }
.itin h2 { margin-bottom: .1em; }
.itin .sub { color: var(--muted); margin-bottom: 1em; }
.idays { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.idays details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.idays summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; min-height: 56px; }
.idays summary::-webkit-details-marker { display: none; }
.idays summary::after { content: ""; flex: none; margin-left: auto; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.idays details[open] summary::after { transform: rotate(-135deg); }
.dnum { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fffdf9; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.1rem; }
.dtitle { display: flex; flex-direction: column; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.dlabel { font-family: "Inter", sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.isteps { list-style: none; margin: 0; padding: 0 16px 14px 62px; position: relative; }
.isteps::before { content: ""; position: absolute; left: 33px; top: 6px; bottom: 22px; border-left: 2px dashed #d9c9b0; }
.isteps li { position: relative; padding: 5px 0; }
.isteps li::before { content: ""; position: absolute; left: -34px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.zones-h { font-size: 1.15rem; text-align: center; margin: 2em 0 .7em; }
.route { margin-top: 1.4em; }

/* --- Mattina / pomeriggio / sera --- */
.iparts { position: relative; padding: 0 16px 14px 62px; }
.iparts::before { content: ""; position: absolute; left: 33px; top: 4px; bottom: 26px; border-left: 2px dashed #d9c9b0; }
.ipart { margin: 0 0 .5em; }
.ipart .isteps { padding: 0; }
.ipart .isteps::before { display: none; }
.ilabel { position: relative; margin: .5em 0 .15em; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.iico { position: absolute; left: -45px; top: -5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #f3e6d0; border: 2px solid var(--surface); box-shadow: 0 0 0 1px #d9c9b0; }
.iico svg { width: 14px; height: 14px; fill: none; stroke: var(--accent-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ipart .isteps li::before { left: -29px; top: 15px; width: 6px; height: 6px; box-shadow: none; }

/* --- Foto in stile polaroid --- */
.pic { display: block; width: min(100%, 240px); margin: 12px 0 6px; padding: 8px 8px 10px; background: #fffdf9; border: 1px solid var(--line);
  border-radius: 6px; box-shadow: 0 6px 18px rgba(59, 42, 32, .16); transform: rotate(-1.6deg); }
.pic a { display: block; border-radius: 3px; overflow: hidden; }
.pic img { display: block; width: 100%; height: auto; }
.cap { display: block; margin-top: 8px; font-family: "Fraunces", serif; font-size: .86rem; line-height: 1.3; color: var(--ink); text-align: center; }
.task:nth-child(even) .pic { transform: rotate(1.4deg); }
@media (min-width: 700px) { .pic { width: min(100%, 280px); } }

/* timbro allineato alla prima riga, anche nelle voci con foto */
.task .ok { align-self: flex-start; margin-top: 9px; }

/* --- Foto piu' piccole --- */
.pic { width: min(100%, 148px); margin: 8px 0 4px; padding: 5px 5px 7px; border-radius: 5px; box-shadow: 0 4px 12px rgba(59, 42, 32, .15); }
.cap { margin-top: 5px; font-size: .74rem; line-height: 1.25; }
@media (min-width: 700px) { .pic { width: min(100%, 176px); } }

/* --- Piu' foto affiancate e video --- */
.pics { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-start; margin: 4px 0 2px; }
.pics .pic { flex: 0 0 auto; }
.pics.multi .pic { width: calc(50% - 6px); }
.pics .pic:nth-child(even) { transform: rotate(1.4deg); }
.pic.vid { width: min(100%, 176px); }
.pics.multi .pic.vid { width: calc(50% - 6px); }
.pic video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #14100d; border-radius: 3px; }
.area > .pics { margin: 14px 0 4px; }
.area > .pics .pic { margin-top: 0; }
@media (min-width: 700px) { .pic.vid { width: min(100%, 200px); } .pics.multi .pic { width: 176px; } .pics.multi .pic.vid { width: 200px; } }

/* --- Foto ai lati del testo --- */
.txt .pics, .area > .pics { float: right; clear: right; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px; width: 96px; margin: 2px 0 8px 12px; }
.txt .pics .pic, .txt .pics.multi .pic, .area > .pics .pic, .area > .pics.multi .pic { width: 100%; margin: 0; padding: 4px 4px 6px; transform: rotate(1.2deg); box-shadow: 0 3px 10px rgba(59, 42, 32, .16); }
.txt .pics .pic:nth-child(even), .area > .pics .pic:nth-child(even) { transform: rotate(-1.2deg); }
.txt .pics .cap, .area > .pics .cap { margin-top: 4px; font-size: .62rem; line-height: 1.2; }
.txt .pics .pic.vid, .txt .pics.multi .pic.vid, .area > .pics .pic.vid { width: 100%; }
.area > .pics { margin-top: 4px; }
@media (min-width: 700px) { .txt .pics, .area > .pics { width: 128px; } .txt .pics .pic.vid, .area > .pics .pic.vid { width: 100%; } }

/* --- Fumetto dei souvenir --- */
.souv { margin: 3em auto 2em; }
.cloud { position: relative; background: #fffdf9; border: 3px solid var(--ink); border-radius: 38px; padding: 24px 22px 18px; box-shadow: 0 6px 0 rgba(59, 42, 32, .1); }
.cloud h2 { margin: 0 0 .1em; }
.cloud .sub { color: var(--muted); margin-bottom: .9em; }
.svlist { list-style: none; margin: 0 0 .6em; padding: 0; }
.svlist li { padding: 9px 0; border-top: 1px dashed var(--line); }
.svlist li:first-child { border-top: 0; }
.sv-name { display: block; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; }
.thought { position: relative; height: 112px; margin-left: 34px; }
.thought .dot { position: absolute; border-radius: 50%; background: #fffdf9; border: 3px solid var(--ink); }
.dot.d1 { width: 22px; height: 22px; left: 22px; top: 12px; }
.dot.d2 { width: 13px; height: 13px; left: 8px; top: 40px; }
.souv-bombo { position: absolute; left: -16px; top: 40px; width: 92px; }

/* --- Miniature piccole ai lati; coppie come un mazzetto di polaroid --- */
.txt .pics, .area > .pics { position: relative; float: right; clear: right; display: block; width: 84px; margin: 2px 4px 8px 12px; }
.txt .pics .pic, .txt .pics.multi .pic, .area > .pics .pic, .area > .pics.multi .pic { position: relative; width: 100%; margin: 0; padding: 4px 4px 12px; transform: rotate(1.4deg); box-shadow: 0 3px 8px rgba(59, 42, 32, .18); }
.txt .pics .pic .cap, .area > .pics .pic .cap { display: none; }
.pic a { position: relative; }
.pic img { aspect-ratio: 4 / 5; object-fit: cover; }
.txt .pics.multi, .area > .pics.multi { height: 122px; }
.txt .pics.multi .pic, .area > .pics.multi .pic { position: absolute; left: 0; top: 0; }
.pics.multi .pic:nth-child(1) { z-index: 3; transform: rotate(-3deg); }
.pics.multi .pic:nth-child(2) { z-index: 2; transform: translate(9px, 7px) rotate(5deg); }
.pics.multi .pic:nth-child(3) { z-index: 1; transform: translate(18px, 12px) rotate(10deg); }
.pics.multi::after { content: attr(data-n); position: absolute; right: -10px; bottom: 6px; z-index: 5; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 700; font-size: .75rem; line-height: 22px; text-align: center; }
.pic.vid .play { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: rgba(20, 16, 13, .66); border: 2px solid #fffdf9; }
.pic.vid .play::after { content: ""; position: absolute; left: 12px; top: 8px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fffdf9; }
@media (min-width: 700px) { .txt .pics, .area > .pics { width: 112px; } .txt .pics.multi, .area > .pics.multi { height: 158px; } }

/* --- Schermo intero --- */
dialog.lb { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; background: transparent; color: #fffdf9; }
dialog.lb::backdrop { background: rgba(20, 14, 10, .88); }
.lb-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 28px; }
.lb-media img, .lb-media video { display: block; max-width: min(92vw, 560px); max-height: 74vh; width: auto; height: auto; border: 8px solid #fffdf9; border-bottom-width: 22px; border-radius: 6px; background: #14100d; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.lb-cap { margin: 14px 0 0; max-width: 560px; text-align: center; font-family: "Fraunces", serif; font-size: 1.05rem; line-height: 1.35; }
.lb-btn { position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 253, 249, .16); color: #fffdf9; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 253, 249, .3); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; margin-top: -24px; }
.lb-next { right: 8px; top: 50%; margin-top: -24px; }

/* --- Il fumetto diventa una nuvola con bordo ondulato, con adesivi --- */
.souv { position: relative; }
.cloud { background: none; box-shadow: none; border-radius: 0; border: 26px solid transparent; border-image: url(/img/cloud.svg) 60 fill / 26px round; padding: 0 12px 2px; }
.cloud h2 { padding-right: 70px; }
.souv-top { position: absolute; right: 2px; top: -40px; width: 86px; transform: rotate(10deg); z-index: 3; }
.souv-row { position: absolute; right: 2px; top: 6px; display: flex; gap: 0; }
.souv-st { width: 84px; height: auto; }
.souv-st:nth-child(1) { transform: rotate(-8deg); }
.souv-st:nth-child(2) { transform: rotate(7deg) translateY(10px); margin-left: -10px; }
@media (min-width: 700px) { .souv-st { width: 100px; } .souv-top { width: 100px; } }

/* ======== Zone: carte colorate, numerate ======== */
.z0 { --zt: #f7e6bd; --zd: #7d4f0e; --zs: #fff6dc; }
.z1 { --zt: #f6d3c4; --zd: #8c3f22; --zs: #fff0e8; }
.z2 { --zt: #dde8c8; --zd: #44602a; --zs: #f3f8e8; }
.z3 { --zt: #d3e6ee; --zd: #285a75; --zs: #eaf5f9; }
.z4 { --zt: #e6dcf0; --zd: #553f7e; --zs: #f4eff9; }
.z5 { --zt: #f5d6da; --zd: #8c3a48; --zs: #fceef0; }

.zones-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2.4em 0 1em; text-align: left; }
.zones-pin { width: 62px; flex: none; transform: rotate(-6deg); }
.zones-h { font-size: 1.55rem; margin: 0; text-align: left; }
.zones-sub { margin: .15em 0 0; color: var(--muted); }
.chips a { display: flex; align-items: center; }
.cn { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; margin-right: 9px; border-radius: 50%; background: var(--zd); color: #fffdf9; font-size: .78rem; font-weight: 700; }

.areas { margin-top: 1.4em; }
.area { background: var(--surface); border: 2px solid var(--zd); border-top: 2px solid var(--zd); border-radius: 26px; overflow: hidden; margin: 28px 0; padding: 0; box-shadow: 0 6px 0 var(--zt); }
.zhead { position: relative; background: var(--zt); padding: 18px 112px 22px 18px; }
.zhead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: radial-gradient(circle at 9px 0, var(--zt) 8.6px, transparent 9px) 0 0 / 18px 10px repeat-x; }
.zlabel { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-weight: 700; font-size: .74rem; letter-spacing: .14em; color: var(--zd); }
.znum { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--zd); color: #fffdf9; font-family: "Fraunces", serif; font-size: 1.05rem; letter-spacing: 0; }
.zhead h2 { font-size: 1.6rem; line-height: 1.15; margin: 0 0 .2em; color: var(--ink); }
.zhead .blurb { margin: 0; color: var(--zd); font-weight: 500; font-size: 1rem; line-height: 1.4; }
.zicon { position: absolute; right: 8px; top: 12px; width: 96px; height: auto; transform: rotate(6deg); }
.zbody { padding: 26px 18px 0; background: var(--surface); }
.zbody::after { content: ""; display: block; clear: both; }

.zbody h3 { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 8px; padding: 7px 15px 7px 11px; border-radius: 999px; background: var(--zt); color: var(--zd); font-family: "Inter", sans-serif; font-weight: 700; font-size: .78rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; }
.zbody h3:first-child, .zbody > .pics + h3 { margin-top: 2px; }
.zbody h3::before { content: ""; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.lab-todo { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 12S5.5 5 12 5s10.5 7 10.5 7-4 7-10.5 7S1.5 12 1.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.lab-eat { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v7a2.5 2.5 0 0 0 5 0V3M8.5 3v18M17 3c-2.4 2-3.5 5-3.5 8.5H17V21'/%3E%3C/svg%3E"); }
.zsleep { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19V6M3 13h18v6M21 19v-2M7 13V9.5h6V13'/%3E%3C/svg%3E"); }
.zbody .tasks .task { border-bottom: 1px dashed var(--line); }
.zbody .tasks .task:last-child { border-bottom: 0; }
.zbody .txt { font-size: 1.02rem; }

.tip { position: relative; clear: both; margin: 22px 0 4px; padding: 16px 16px 16px 62px; background: var(--zs); border: 2px dashed var(--zd); border-radius: 16px; font-size: 1.06rem; line-height: 1.5; color: var(--ink); }
.tip::before { content: ""; position: absolute; left: 14px; top: 15px; width: 34px; height: 34px; border-radius: 50%; background: var(--zd) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf9' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v16M5 8l14 8M19 8L5 16'/%3E%3C/svg%3E") center / 62% no-repeat; }
.tip-l { display: block; margin-bottom: 3px; font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zd); }

.znext { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px -18px 0; padding: 16px 18px; background: var(--zt); color: var(--zd); font-weight: 600; text-decoration: none; border-top: 2px dashed var(--zd); clear: both; }
.znext strong { color: var(--ink); font-family: "Fraunces", serif; font-size: 1.05rem; }
.znext:hover { background: var(--zd); color: #fffdf9; }
.znext:hover strong { color: #fffdf9; }

/* foto di zona (nella nuova struttura il contenitore e' .zbody) */
.zbody > .pics { position: relative; float: right; clear: right; display: block; width: 84px; margin: 2px 4px 8px 12px; }
.zbody > .pics .pic, .zbody > .pics.multi .pic { position: relative; width: 100%; margin: 0; padding: 4px 4px 12px; transform: rotate(1.4deg); box-shadow: 0 3px 8px rgba(59, 42, 32, .18); }
.zbody > .pics .pic .cap { display: none; }
.zbody > .pics.multi { height: 122px; }
.zbody > .pics.multi .pic { position: absolute; left: 0; top: 0; }
@media (min-width: 700px) { .zbody > .pics { width: 112px; } .zbody > .pics.multi { height: 158px; } .zicon { width: 112px; } }

/* "Da sapere" in fondo: stessi avvisi con asterisco */
.knows { list-style: none; padding: 0; margin: 0; }
.knows li { position: relative; margin: 0 0 10px; padding: 14px 14px 14px 60px; background: #fff7e0; border: 2px dashed var(--accent); border-radius: 14px; font-size: 1.04rem; line-height: 1.5; }
.knows li::before { content: ""; position: absolute; left: 13px; top: 13px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf9' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v16M5 8l14 8M19 8L5 16'/%3E%3C/svg%3E") center / 62% no-repeat; }

/* barra 'prossima zona': scritta e titolo vicini, freccia a destra */
.znext { justify-content: flex-start; }
.znext > span[aria-hidden] { margin-left: auto; }

/* --- Due parti: Cosa vedere / Dove mangiare --- */
.part { margin-top: 3.2em; }
.part-head { display: flex; align-items: center; gap: 14px; margin: 0 0 .9em; }
.part-st { width: 84px; flex: none; transform: rotate(-6deg); }
.part-head h2 { font-size: 2rem; margin: 0; line-height: 1.1; }
.part .chips { justify-content: flex-start; }
.part .areas { margin-top: 1.2em; }
.part-eat { padding-top: 1.6em; border-top: 3px dotted var(--line); }

/* legenda della mappa: pallino sempre nel suo posto */
.legend .dot { position: static; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fffdf9; box-shadow: 0 0 0 1px var(--line); }

/* --- Budget con le stelle --- */
.facts .budget { grid-template-columns: 9.5em 1fr; background: #fff7e0; margin: 0 -8px; padding: 14px 8px; border-radius: 12px; border-bottom: 0; }
.facts .budget dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.stars { display: inline-flex; gap: 2px; font-size: 1.45rem; line-height: 1; letter-spacing: 0; }
.st { color: #e2d3b6; }
.st.on { color: #e0a21b; text-shadow: 0 1px 0 rgba(139, 94, 60, .35); }
.blabel { font-family: "Fraunces", serif; font-size: 1.1rem; }
.bnote { flex-basis: 100%; font-size: .92rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 520px) { .facts .budget { grid-template-columns: 1fr; } }

/* --- Da assaggiare: il menu a pillole --- */
.foods { margin-top: 3em; padding-top: 1.6em; border-top: 3px dotted var(--line); }
.fpills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.fp { padding: 10px 16px; border-radius: 999px; border: 2px solid var(--zd, var(--ink)); font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--ink); }
.fp.f0 { --zd: #7d4f0e; background: #f7e6bd; }
.fp.f1 { --zd: #8c3f22; background: #f6d3c4; }
.fp.f2 { --zd: #44602a; background: #dde8c8; }
.fp.f3 { --zd: #285a75; background: #d3e6ee; }
.fp:nth-child(odd) { transform: rotate(-1.2deg); }
.fp:nth-child(even) { transform: rotate(1.2deg); }

/* niente scorrimento laterale: l'adesivo sulla nuvola resta dentro e la pagina non puo' allargarsi */
.souv-top { right: 14px; }
html, body { overflow-x: clip; }
