/* L'Italia che non sai — foglio di stile principale */
:root {
  --cream: #faf5ec;
  --cream-2: #f3eadb;
  --stone: #e7d9c1;
  --sand: #d9c3a0;
  --terracotta: #b5532f;
  --terracotta-dark: #8e3d20;
  --gold: #d49a3a;
  --gold-soft: #f1d9a6;
  --olive: #6b7b3a;
  --olive-dark: #4f5c27;
  --ink: #3a2a1d;
  --ink-soft: #6b5846;
  --white: #fffdf8;
  --shadow-sm: 0 2px 8px rgba(70, 45, 20, .08);
  --shadow: 0 10px 30px rgba(70, 45, 20, .12);
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin-top: 1.3em; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--sans); font-weight: 500; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream-2); color: var(--terracotta); }
.nav-toggle { display: none; background: none; border: 1px solid var(--sand); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--stone); padding: 10px 16px 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
}

/* ---------- Ornaments ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 auto 14px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 26px; height: 26px; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: .6em; display: block; }
.section { padding: 72px 0; }
.section-alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-banner { width: 100%; height: auto; max-height: 78vh; aspect-ratio: 1696 / 624; object-fit: cover; background: linear-gradient(135deg, #c79a64, #8e5a33); }
.hero-content { text-align: center; padding: 34px 20px 10px; }
.hero-content .slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--ink-soft); margin: 0 0 22px; }
@media (max-width: 640px) { .hero-banner { aspect-ratio: auto; height: auto; } }
.page-hero { padding: 64px 0 36px; text-align: center; background: radial-gradient(ellipse at top, var(--gold-soft) 0%, var(--cream) 70%); border-bottom: 1px solid var(--stone); }
.page-hero p.lead { max-width: 720px; margin: 0 auto; color: var(--ink-soft); font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--terracotta); color: #fff; text-decoration: none; font-weight: 600; font-size: .97rem; border: 0; cursor: pointer; box-shadow: 0 6px 18px rgba(181, 83, 47, .28); transition: transform .15s, background .15s; font-family: var(--sans); }
.btn:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--sand); box-shadow: none; }
.btn-ghost:hover { background: var(--white); color: var(--terracotta); }
.btn-olive { background: var(--olive); box-shadow: 0 6px 18px rgba(79, 92, 39, .25); }
.btn-olive:hover { background: var(--olive-dark); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid rgba(217, 195, 160, .45); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .cat-art { width: 38%; height: auto; opacity: .9; color: rgba(255, 253, 248, .92); }
.card-media .badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.22rem; }
.card-body .meta { font-size: .85rem; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.card-body p { margin: 4px 0 0; font-size: .93rem; color: var(--ink-soft); line-height: 1.55; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .03em; background: var(--terracotta); color: #fff; }
.badge-light { background: var(--cream-2); color: var(--ink); }
.tag { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--cream-2); color: var(--ink-soft); margin: 2px 4px 2px 0; }

/* Category art backgrounds */
.cat-bg { background: linear-gradient(135deg, var(--c1, #c46a3c), var(--c2, #7d3a1e)); }
.cat-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, .22), transparent 55%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 12px); }

/* ---------- Feature (luogo della settimana) ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--white); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.feature-media { min-height: 380px; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.feature-media .cat-art { width: 30%; color: rgba(255, 253, 248, .9); position: relative; z-index: 1; }
.feature-body { padding: 36px 40px 36px 0; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-body { padding: 0 24px 30px; } .feature-media { min-height: 220px; } }

/* ---------- Region tiles ---------- */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.region-tile { padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--stone); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .2s; }
.region-tile strong { font-family: var(--serif); font-size: 1.15rem; }
.region-tile span { font-size: .86rem; color: var(--ink-soft); }
a.region-tile:hover { border-color: var(--terracotta); transform: translateY(-2px); color: var(--ink); }
.region-tile.soon { opacity: .62; background: transparent; border-style: dashed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--sand); background: var(--white); color: var(--ink); text-decoration: none; font-size: .9rem; }
.chip:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ---------- Filters ---------- */
.filters { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; grid-template-columns: 2fr repeat(4, 1fr); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.filters label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: var(--ink-soft); gap: 6px; text-transform: uppercase; letter-spacing: .06em; }
.filters input[type="search"], .filters select { font: inherit; font-size: .95rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--sand); background: var(--cream); color: var(--ink); text-transform: none; letter-spacing: 0; }
.filters .checks { grid-column: 1 / -1; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.filters .checks label { flex-direction: row; align-items: center; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }
.filters input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--terracotta); }
.result-count { color: var(--ink-soft); font-size: .92rem; margin: 0 0 18px; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters label:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */
.map { width: 100%; height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone); box-shadow: var(--shadow-sm); background: var(--cream-2); z-index: 1; }
.map-xl { height: min(72vh, 720px); }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 16px 0; font-size: .9rem; }
.map-legend button { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--stone); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; cursor: pointer; color: var(--ink); }
.map-legend button.off { opacity: .4; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.leaflet-popup-content { font-family: var(--sans); font-size: .92rem; }
.leaflet-popup-content strong { font-family: var(--serif); font-size: 1.05rem; }
.leaflet-popup-content a.btn { color: #fff; padding: 7px 14px; font-size: .85rem; margin-top: 6px; }

/* ---------- Article ---------- */
.breadcrumb { font-size: .86rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--sand); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }
.article-head { padding: 26px 0 30px; }
.article-head h1 { margin-bottom: .3em; }
.article-head .sub { color: var(--ink-soft); font-size: 1.05rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article-cover { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 8; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.article-cover .cat-art { width: 12%; min-width: 70px; color: rgba(255, 253, 248, .9); position: relative; z-index: 1; }
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.article-main { min-width: 0; }
.article-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; order: -1; } }
.answer-box { background: var(--white); border-left: 5px solid var(--gold); border-radius: var(--radius-sm); padding: 22px 26px; box-shadow: var(--shadow-sm); margin-bottom: 30px; }
.answer-box h2 { font-size: 1.15rem; margin: 0 0 8px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); }
.answer-box p { margin: 0; font-size: 1.07rem; }
.prose .answer-box h2::before { display: none; }
.article-hero { margin: 0 0 32px; }
.article-hero img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); background: var(--cream-2); }
.photo { margin: 30px 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--cream-2); }
.article-hero figcaption, .photo figcaption { font-size: .86rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.credit { display: block; font-size: .78rem; opacity: .85; }
.credit a { color: inherit; }
.card-media img { z-index: 1; }
.card-media .badge { z-index: 2; }
.page-hero.has-photo { position: relative; overflow: hidden; background: #3a2a1d; border-bottom: 0; padding: 96px 0 64px; min-height: 340px; display: flex; align-items: center; }
.page-hero.has-photo .wrap { position: relative; z-index: 2; width: 100%; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(40, 26, 16, .45) 0%, rgba(40, 26, 16, .62) 100%); }
.page-hero.has-photo h1, .page-hero.has-photo .lead { color: #fffdf8; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.page-hero.has-photo .lead a { color: var(--gold-soft); }
.page-hero.has-photo .eyebrow { color: var(--gold-soft); }
.hero-credit { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: .7rem; color: rgba(255, 253, 248, .8); max-width: 70%; text-align: right; }
@media (max-width: 600px) { .page-hero.has-photo { padding: 70px 0 50px; min-height: 280px; } }
.region-tile { overflow: hidden; padding: 0 0 16px; }
.region-tile strong, .region-tile > span:not(.region-photo) { padding: 0 18px; }
.region-tile strong { padding-top: 12px; }
.region-photo { display: block; aspect-ratio: 16 / 9; background: var(--cream-2); overflow: hidden; }
.region-photo img { width: 100%; height: 100%; object-fit: cover; }
.region-tile.soon { padding: 20px; }
.card-media img { aspect-ratio: auto; object-fit: cover; }
.popup-img { display: block; width: 220px; max-width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
/* ---------- Home: primo schermo ---------- */
.home-hero { position: relative; min-height: calc(100svh - 72px); display: flex; align-items: center; overflow: hidden; background: #2f2218; color: #fffdf8; }
@media (min-width: 861px) { .home-hero { min-height: 90vh; } .hero-chips, .fchips { flex-wrap: wrap; overflow: visible; } }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-shade { background: linear-gradient(180deg, rgba(47, 34, 24, .55) 0%, rgba(90, 45, 20, .35) 38%, rgba(47, 34, 24, .78) 100%), radial-gradient(ellipse at 20% 30%, rgba(212, 154, 58, .28), transparent 60%); }
.hero-inner { position: relative; z-index: 2; padding: 56px 20px 96px; width: 100%; min-width: 0; max-width: 1100px; }
.hero-inner > * { max-width: 100%; }
.hero-brand { display: flex; align-items: center; gap: 12px; color: var(--gold-soft); font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin-bottom: 18px; }
.hero-brand .ornament { margin: 0; }
.hero-brand .ornament::before, .hero-brand .ornament::after { width: 34px; }
.hero-title { color: #fffdf8; font-size: clamp(2.3rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 18px; text-shadow: 0 3px 24px rgba(0, 0, 0, .35); }
.hero-title span { display: block; color: var(--gold-soft); font-style: italic; font-weight: 600; margin-top: .15em; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 640px; color: rgba(255, 253, 248, .92); margin: 0 0 22px; }
.trust { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { background: rgba(255, 253, 248, .14); border: 1px solid rgba(255, 253, 248, .28); backdrop-filter: blur(6px); border-radius: 999px; padding: 7px 15px; font-size: .92rem; }
.trust b { font-family: var(--serif); font-size: 1.08rem; color: var(--gold-soft); margin-right: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 16px; font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.hbtn span { font-size: 1.25rem; }
.hbtn:hover { transform: translateY(-2px); }
.hbtn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 28px rgba(181, 83, 47, .45); }
.hbtn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.hbtn-light { background: #fffdf8; color: var(--ink); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
.hbtn-light:hover { color: var(--terracotta); }
.hbtn-ghost { background: rgba(255, 253, 248, .12); color: #fffdf8; border: 1.5px solid rgba(255, 253, 248, .55); backdrop-filter: blur(6px); }
.hbtn-ghost:hover { background: rgba(255, 253, 248, .22); color: #fff; }
.hero-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.hero-chips::-webkit-scrollbar { display: none; }
.hchip { flex: none; padding: 8px 15px; border-radius: 999px; background: rgba(47, 34, 24, .45); border: 1px solid rgba(241, 217, 166, .55); color: #fffdf8; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.hchip:hover { background: var(--gold); color: var(--ink); }
.slide-caption { position: absolute; z-index: 3; left: 20px; bottom: 20px; background: rgba(255, 253, 248, .92); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.slide-caption:hover { color: var(--terracotta); }
.slide-credit { position: absolute; z-index: 3; right: 14px; bottom: 10px; font-size: .68rem; color: rgba(255, 253, 248, .75); max-width: 45%; text-align: right; }
.hero-inner > * { animation: rise .8s ease both; }
.hero-inner > *:nth-child(2) { animation-delay: .08s; } .hero-inner > *:nth-child(3) { animation-delay: .16s; } .hero-inner > *:nth-child(4) { animation-delay: .24s; } .hero-inner > *:nth-child(5) { animation-delay: .32s; } .hero-inner > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero-inner { padding: 36px 16px 84px; }
  .hero-actions { flex-direction: column; }
  .hbtn { width: 100%; min-height: 58px; }
  .hero-chips { margin: 0 -16px; padding: 0 16px 4px; }
  .slide-credit { display: none; }
  .slide-caption { left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner > *, .hero-slide.is-active img { animation: none; }
  .hero-slide { transition: none; }
  .hbtn:hover, .card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Home: I luoghi segreti ---------- */
.finder { padding-top: 64px; scroll-margin-top: 72px; }
.finder-bar { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.finder-bar input[type="search"], .finder-bar select { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sand); background: var(--cream); color: var(--ink); min-height: 48px; }
.fchips { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; font: inherit; font-size: .92rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--sand); background: var(--cream); color: var(--ink); cursor: pointer; white-space: nowrap; min-height: 42px; }
.fchip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.fchip.is-on { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.finder-more { grid-column: 1 / -1; }
.finder-more summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); padding: 4px 0; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.finder-more summary::before { content: "⚙"; color: var(--terracotta); }
.finder-more summary::-webkit-details-marker { display: none; }
.finder-more-body { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 12px; align-items: end; padding-top: 10px; }
.finder-more-body label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.finder-more-body label.chk { flex-direction: row; align-items: center; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); font-weight: 500; min-height: 48px; }
.finder-more-body input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--terracotta); }
.finder-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 18px; }
.finder-status .result-count { margin: 0; }
.reset-btn { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--terracotta); text-decoration: underline; cursor: pointer; padding: 8px; }
@media (max-width: 860px) {
  .finder-bar { grid-template-columns: 1fr; padding: 14px; }
  .fchips { margin: 0 -14px; padding: 0 14px 2px; }
  .finder-more-body { grid-template-columns: 1fr 1fr; }
}
.read-time { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--olive-dark); background: rgba(107, 123, 58, .1); border-radius: 999px; padding: 2px 10px; width: fit-content; white-space: nowrap; }
.article-head .read-time { font-size: .85rem; padding: 3px 12px; }
.curio { counter-reset: cur; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.curio li { counter-increment: cur; position: relative; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-sm); padding: 16px 18px 16px 62px; box-shadow: var(--shadow-sm); }
.curio li::before { content: counter(cur); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.next-cta { margin-top: 40px; background: linear-gradient(135deg, #8e3d20, #b5532f 60%, #d49a3a); color: #fff; border-radius: 22px; padding: 30px 28px; text-align: center; }
.prose .next-cta h2 { color: #fff; margin-top: 0; }
.prose .next-cta h2::before { display: none; }
.next-cta p { color: rgba(255, 255, 255, .9); }
.next-cta .btn { background: #fffdf8; color: var(--ink); box-shadow: none; }
.next-cta .btn-olive { background: var(--olive); color: #fff; }
.reel-box { width: 100%; max-width: 420px; }
.reel-box .instagram-media { margin: 0 auto !important; min-width: 280px !important; width: 100% !important; }
.reel-fallback { font-size: .86rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.article-cover { aspect-ratio: 21 / 6; }
.scheda { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--stone); }
.scheda h2 { font-size: 1.3rem; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.scheda h2 svg { width: 26px; height: 26px; color: var(--gold); }
.scheda dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: .93rem; }
.scheda dt { color: var(--ink-soft); font-weight: 500; }
.scheda dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.scheda .btn { width: 100%; justify-content: center; margin-top: 18px; }
.prose h2 { padding-top: 6px; }
.prose h2::before { content: ""; display: block; width: 46px; height: 3px; background: var(--gold); border-radius: 3px; margin-bottom: 14px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.reel-wrap { display: flex; justify-content: center; margin: 10px 0 30px; gap: 20px; flex-wrap: wrap; }
.reel { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; border: 0; border-radius: var(--radius); background: var(--cream-2); box-shadow: var(--shadow-sm); }
.note { font-size: .88rem; color: var(--ink-soft); background: var(--cream-2); border-radius: var(--radius-sm); padding: 12px 16px; }
.faq details { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-sm); padding: 0; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--terracotta); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }
.sources { font-size: .9rem; }
.sources li { margin-bottom: .3em; overflow-wrap: anywhere; }
.updated { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--stone); padding-top: 14px; margin-top: 30px; }
.nearby { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 10px 0 20px; }
.nearby .card-media { aspect-ratio: 16 / 9; }
.nearby .card-body h3 { font-size: 1.05rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: var(--radius-sm); border: 1px solid var(--stone); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--stone); vertical-align: top; }
th { background: var(--cream-2); font-family: var(--sans); font-weight: 600; font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }

/* ---------- Itinerari / blocks ---------- */
.block { background: var(--white); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-sm); border: 1px solid var(--stone); margin-bottom: 32px; }
.block h2 { margin-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.2em; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.steps li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--stone); }
.steps li:last-child::after { display: none; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
@media (max-width: 600px) { .block { padding: 22px 18px; } }

/* ---------- Video grid ---------- */
.video-card { cursor: pointer; text-align: left; font: inherit; padding: 0; }
.video-card .play { position: absolute; z-index: 2; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 253, 248, .92); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.video-card .play svg { width: 22px; height: 22px; color: var(--terracotta); margin-left: 4px; }
.video-card .card-media { aspect-ratio: 4 / 5; }
.modal { position: fixed; inset: 0; background: rgba(30, 20, 12, .78); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal.open { display: flex; }
.modal-inner { background: var(--cream); border-radius: var(--radius); padding: 16px; width: min(420px, 100%); max-height: 92vh; overflow: auto; position: relative; }
.modal-inner .reel { max-width: 100%; }
.modal-close { position: absolute; right: 10px; top: 6px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); z-index: 3; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--sand); background: var(--white); color: var(--ink); }
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form-msg { display: none; background: var(--gold-soft); border-radius: 10px; padding: 12px 16px; }
.form-msg.show { display: block; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; }
.stat { background: var(--white); border-radius: var(--radius); padding: 24px 12px; border: 1px solid var(--stone); }
.stat b { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--terracotta); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Newsletter / CTA ---------- */
.cta { background: linear-gradient(135deg, #8e3d20, #b5532f 55%, #d49a3a); color: #fff; border-radius: 28px; padding: 50px 40px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 600px; margin: 0 auto 22px; }
.cta form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.cta input { flex: 1 1 220px; padding: 13px 18px; border-radius: 999px; border: 0; font: inherit; }
.cta .btn { background: var(--ink); box-shadow: none; }
.cta .btn:hover { background: #000; }
.cta .form-msg { color: var(--ink); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #2f2218; color: #e9dcc6; padding: 60px 0 30px; margin-top: 80px; font-size: .93rem; }
.site-footer a { color: #f1d9a6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand svg { width: 46px; height: 46px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text small { color: #cdb898; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #bfa98a; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .section { padding: 52px 0; } body { font-size: 16px; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Luoghi famosi / sconosciuti ---------- */
.badge-famous { left: auto !important; right: 12px; background: linear-gradient(135deg, #d49a3a, #b5532f); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.card-media .badge-famous { position: absolute; top: 12px; z-index: 2; }
.pin-famous { width: 36px; height: 36px; border: 3px solid #f1d9a6; box-shadow: 0 0 0 2px #b5532f, 0 3px 10px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; }
.pin-famous span { transform: rotate(45deg); color: #fff; font-size: 15px; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.legend-famous { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); }
.pin-mini { width: 18px; height: 18px; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #f1d9a6; }
.popup-famous { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--terracotta); margin-bottom: 2px; }
.map-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; font-size: .92rem; font-weight: 600; }
.map-tools select { font: inherit; font-weight: 400; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--sand); background: var(--white); min-height: 42px; }
.finder-tipo select { width: 100%; }
/* menu a tendina */
.nav-drop { position: relative; }
.nav-drop-btn { font: inherit; font-size: .93rem; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.nav-drop-btn:hover, .nav-drop.is-current .nav-drop-btn { background: var(--cream-2); color: var(--terracotta); }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--white); border: 1px solid var(--stone); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.nav-drop-menu a { display: block; padding: 10px 12px; }
.nav-drop.open .nav-drop-menu { display: block; }
@media (min-width: 1081px) { .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; } }
@media (max-width: 1080px) {
  .nav-drop-btn { display: block; width: 100%; text-align: left; padding: 12px; font-size: 1.05rem; }
  .nav-drop-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; background: transparent; }
  .nav-drop-menu a { padding: 10px 12px; font-size: 1rem; border-left: 2px solid var(--stone); border-radius: 0; }
}
@media (max-width: 1240px) and (min-width: 1081px) { .nav a, .nav-drop-btn { padding: 8px 7px; font-size: .88rem; } }
@media (max-width: 860px) { .finder-bar { grid-template-columns: 1fr; } }
.social{display:flex;gap:12px;margin:14px 0 0}
.social a{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:1.5px solid currentColor;text-decoration:none;transition:transform .15s,opacity .15s}
.social a:hover,.social a:focus-visible{transform:translateY(-2px);opacity:.8}
.social svg{width:22px;height:22px}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-pop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(47, 34, 24, .6); }
.sent-box { background: var(--cream); border-radius: 20px; padding: 36px 30px 30px; width: min(440px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.sent-box h2 { margin: 14px 0 8px; }
.sent-box p { margin: 0 0 22px; }
.sent-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #5d7a3a; color: #fff; font-size: 2rem; line-height: 64px; font-weight: 700; }
.sent-ic.err { background: var(--terracotta); }
