/* Dora Travels — Esplora (schede paese) — brand blu. style.css è già caricato prima (font Manrope + reset). */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --purple: #0189D4;
  --purple-dark: #004CA0;
  --purple-soft: #0175C2;
  --accent: #FE8502;
  --ink: #1E1B2E;
  --muted: #6B6680;
  --card: #FFFFFF;
  --line: rgba(1, 137, 212, 0.14);
  --bg-soft: #F3F8FC;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --shadow-1: 0 2px 8px rgba(30, 27, 46, 0.05);
  --shadow-2: 0 14px 40px -12px rgba(1, 137, 212, 0.22);

  --good: #16A34A; --good-bg: #E9F9EE;
  --ok: #0189D4; --ok-bg: #E7F3FC;
  --warn: #D97706; --warn-bg: #FEF3E2;
  --bad: #DC2626; --bad-bg: #FDE9E9;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -8%, #E7EDFF 0%, transparent 55%),
    radial-gradient(900px 600px at 112% 4%, #E4F1FB 0%, transparent 52%),
    linear-gradient(165deg, #FBFAFF 0%, #F3F0FB 100%);
  min-height: 100dvh;
  padding: 0 0 40px;
}
a { color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.ex-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; max-width: 1080px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(145deg, var(--purple-soft), var(--purple-dark));
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 8px 20px rgba(1, 137, 212, 0.35);
}
.brand .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-header-actions { display: flex; align-items: center; gap: 10px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--purple-dark);
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
  background: rgba(1, 137, 212, 0.09);
  transition: background .15s;
}
.back-link:hover { background: rgba(1, 137, 212, 0.16); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--muted);
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line);
  transition: border-color .15s, color .15s;
}
.lang-switch:hover { border-color: var(--purple); color: var(--purple-dark); }
.webapp-nav-link { color: #fff; background: var(--accent); }
.webapp-nav-link:hover { background: var(--accent); opacity: 0.88; }

/* --- Hero (index) --- */
.ex-hero { text-align: center; padding: 22px 20px 10px; }
.ex-hero h1 { font-size: clamp(28px, 6vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.ex-hero h1 .grad { background: linear-gradient(115deg, var(--purple) 10%, var(--accent) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ex-hero p { margin: 12px auto 0; max-width: 520px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* --- Search + filters --- */
.ex-controls { max-width: 720px; margin: 24px auto 0; padding: 0 20px; }
.search-box { position: relative; }
.search-box input {
  width: 100%; height: 54px; padding: 0 20px 0 46px; border-radius: 16px;
  border: 1.5px solid var(--line); background: #fff; font-size: 16px; font-family: inherit; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 8px 24px rgba(30, 27, 46, 0.05);
}
.search-box input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(1, 137, 212, 0.12); }
.search-box .ic {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 18px; opacity: .55; pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.chip {
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--purple-dark);
  background: rgba(1, 137, 212, 0.09); border: 1.5px solid transparent;
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: rgba(1, 137, 212, 0.16); }
.chip[aria-pressed="true"] {
  background: linear-gradient(145deg, var(--purple-soft), var(--purple-dark));
  color: #fff;
}
.ex-count { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* --- Grid of country cards --- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; margin-top: 22px;
}
.c-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid rgba(1,137,212,0.08); border-radius: 20px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.c-card:hover .c-card-thumb img { transform: scale(1.05); }
.c-card-thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--bg-soft);
  overflow: hidden;
}
.c-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.c-card-thumb-placeholder {
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-dark) 100%);
  display: grid; place-items: center;
}
.c-card-flag {
  font-size: 22px; line-height: 1;
  position: absolute; left: 12px; bottom: 10px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.c-card-thumb-placeholder .c-card-flag {
  position: static; font-size: 40px; filter: none;
}
.c-card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 18px; }
.c-card .name { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.c-card .continent { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.c-card .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  letter-spacing: 0.01em;
}
.badge.cost { background: rgba(254, 133, 2, 0.12); color: #B35E00; }
.badge.safety-good, .badge.rec-good { background: var(--good-bg); color: var(--good); }
.badge.safety-ok, .badge.rec-ok { background: var(--ok-bg); color: var(--ok); }
.badge.safety-warn, .badge.rec-warn { background: var(--warn-bg); color: var(--warn); }
.badge.safety-bad, .badge.rec-bad { background: var(--bad-bg); color: var(--bad); }
.badges.mb { margin-bottom: 14px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; display: none; }
.no-results.show { display: block; }

/* --- Country page — hero fotografico cinematografico (stile PolarSteps) --- */
.c-photo-hero {
  position: relative; margin-top: 18px; height: 380px; border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow-2);
}
.c-photo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-photo-placeholder {
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-dark) 100%);
}
.c-photo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 22, 40, 0.82) 0%, rgba(11, 22, 40, 0.34) 34%, rgba(11, 22, 40, 0) 62%);
  pointer-events: none;
}
.c-photo-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 30px; z-index: 1;
}
.c-photo-title-flag {
  display: inline-block; font-size: 40px; line-height: 1; margin-bottom: 8px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.45));
}
.c-photo-title {
  font-size: clamp(30px, 6.2vw, 50px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.02; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}
.c-photo-continent {
  margin-top: 6px; font-size: 14.5px; font-weight: 700; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9); text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.c-photo-credit {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.38); padding: 5px 10px; border-radius: 999px;
  text-decoration: none; backdrop-filter: blur(2px);
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.c-photo-credit:hover { background: rgba(0,0,0,0.55); }

.c-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 16px;
}
.c-hero .badges { display: flex; flex-wrap: wrap; gap: 8px; }

.estimated-note {
  margin-top: 14px; padding: 12px 16px; border-radius: 14px;
  background: var(--warn-bg); color: #8A5A00; font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}

.official-sources-note {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; line-height: 1.55;
}
.official-sources-note a { color: var(--purple); font-weight: 700; text-decoration: underline; }
.official-sources-note a:hover { color: var(--purple-dark); }

.travel-advisory-box {
  margin-top: 10px; padding: 16px 18px; border-radius: 16px;
  background: var(--warn-bg); border: 1.5px solid var(--warn);
  color: #7A4A00; font-size: 13.5px; line-height: 1.6;
}
.travel-advisory-box .adv-head { font-weight: 800; font-size: 14px; color: #7A4A00; margin-bottom: 8px; }
.travel-advisory-box ul { margin: 0 0 10px; padding-left: 20px; }
.travel-advisory-box li { margin: 4px 0; }
.travel-advisory-box a { color: var(--purple-dark); font-weight: 700; text-decoration: underline; }
.travel-advisory-box a:hover { color: var(--purple); }

.section {
  margin-top: 22px; background: var(--card); border-radius: 22px; padding: 26px 28px;
  box-shadow: var(--shadow-1); border: 1px solid rgba(1,137,212,0.06);
}
.section h2 {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section p { font-size: 14.5px; line-height: 1.65; color: #4A4660; }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.info-item { background: var(--bg-soft); border-radius: 14px; padding: 14px 16px; }
.info-item .label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--purple-dark); opacity: .75; }
.info-item .value { margin-top: 4px; font-size: 14.5px; font-weight: 700; }
.info-item .extra { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.months-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.months-col b { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 8px; }
.month-pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin: 0 6px 6px 0; }
.month-pill.good { background: var(--good-bg); color: var(--good); }
.month-pill.bad { background: var(--bad-bg); color: var(--bad); }

.months-row.climate-row {
  background: var(--bg-soft); border-radius: 16px; padding: 16px; margin-top: 0;
}
.climate-source-note { margin: 6px 0 14px; font-size: 12px; color: var(--muted); font-style: italic; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 4px; }
.price-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--bg-soft); border-radius: 12px; font-size: 13.5px; }
.price-item .k { color: var(--muted); font-weight: 600; }
.price-item .v { font-weight: 800; color: var(--ink); text-align: right; }

.alert-card {
  border-radius: 16px; padding: 14px 16px; margin-top: 10px;
  border-left: 4px solid var(--warn);
  background: var(--warn-bg);
}
.alert-card.sev-high { border-left-color: var(--bad); background: var(--bad-bg); }
.alert-card .a-title { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.alert-card .a-sev { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,0.08); }
.alert-card p { margin-top: 6px; font-size: 13.5px; }
.alert-card .how { margin-top: 6px; font-size: 13px; color: #4A4660; }
.alert-card .how b { color: var(--ink); }

.transport-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.transport-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--bg-soft); border-radius: 14px; }
.transport-item .t-name { font-weight: 800; font-size: 14px; min-width: 130px; }
.transport-item .t-body { flex: 1; }
.transport-item p { font-size: 13px; color: var(--muted); margin-top: 3px; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.pack-col-title { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--purple-dark); opacity: .8; margin-bottom: 8px; }
.pack-list { list-style: none; }
.pack-list li { font-size: 13.5px; padding: 6px 0 6px 22px; position: relative; color: #4A4660; }
.pack-list li::before { content: "🎒"; position: absolute; left: 0; font-size: 12px; }
.checklist-group { margin-bottom: 12px; }
.checklist-group b { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--purple-dark); opacity: .8; margin-bottom: 6px; }
.checklist-group ul { list-style: none; }
.checklist-group li { font-size: 13.5px; padding: 5px 0 5px 22px; position: relative; color: #4A4660; }
.checklist-group li::before { content: "☐"; position: absolute; left: 0; color: var(--purple); }

.highlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hl-card { background: var(--bg-soft); border-radius: 16px; padding: 16px; }
.hl-card .hl-emoji { font-size: 24px; }
.hl-card .hl-title { font-weight: 800; font-size: 14.5px; margin-top: 6px; }
.hl-card .hl-period { font-size: 12px; font-weight: 700; color: var(--purple-dark); margin-top: 2px; }
.hl-card p { font-size: 13px; margin-top: 6px; color: var(--muted); }

/* --- CTA affiliati --- */
.cta-section {
  margin-top: 26px; padding: 26px; border-radius: 22px; text-align: center;
  background: linear-gradient(145deg, var(--purple-soft), var(--purple-dark)); color: #fff;
  box-shadow: 0 14px 32px rgba(1, 137, 212, 0.3);
}
.cta-section h2 { color: #fff; font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 13.5px; margin-bottom: 18px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-affiliate-note { margin-top: 16px; font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,0.72); }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--purple-dark); font-weight: 800; font-size: 14px;
  padding: 13px 22px; border-radius: 14px; text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  transition: transform .14s ease, box-shadow .14s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.22); }
.cta-btn .em { font-size: 17px; }

footer.ex-footer { margin-top: 40px; font-size: 12.5px; color: #9D98AE; text-align: center; padding: 0 20px; }
footer.ex-footer a { color: var(--purple); font-weight: 600; text-decoration: none; }

@media (max-width: 640px) {
  .ex-header { flex-wrap: wrap; }
  .c-photo-hero { height: 260px; border-radius: 20px; }
  .c-photo-overlay { padding: 20px 22px; }
  .c-photo-title-flag { font-size: 32px; }
  .c-photo-credit { font-size: 10px; max-width: 80%; }
  .section { padding: 20px 18px; }
  .transport-item { flex-direction: column; }
  .transport-item .t-name { min-width: 0; }
  .cta-buttons { flex-direction: column; }
  .cta-btn { justify-content: center; }
}
