:root {
  --forest: #094b4c;
  --deep: #063738;
  --moss: #71892a;
  --cream: #f4f6f1;
  --paper: #fffef9;
  --ink: #193131;
  --line: rgba(9, 75, 76, 0.14);
  --shadow: 0 18px 50px rgba(6, 55, 56, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f4f6f1, #e9efea);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.serif,
.title,
.card h3,
.footer h3,
.brand-copy strong,
.section-title,
.panel h3 {
  font-family: "Cormorant Garamond", serif;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 241, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(9, 75, 76, 0.1);
}

.header .wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.parco img {
  width: 80%;
  height: 80%;
}

.brand-copy strong {
  display: block;
  font-size: 1.55rem;
  line-height: 0.95;
  color: var(--deep);
}

.brand-copy span,
.nav a,
.kicker,
.pill,
.small,
.lang-toggle {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy span,
.kicker,
.small {
  color: var(--moss);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--deep);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(9, 75, 76, 0.14);
  background: rgba(255, 255, 255, 0.38);
  color: var(--deep);
  padding: 0.3rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(9, 75, 76, 0.24);
}

.lang-option {
  min-width: 44px;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: rgba(6, 55, 56, 0.55);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-option.active {
  background: rgba(113, 137, 42, 0.18);
  color: var(--deep);
  box-shadow: inset 0 0 0 1px rgba(113, 137, 42, 0.16);
}

.hero {
  position: relative;
  min-height: 100vh;
  background: #101914;
  color: #fff;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 55, 56, 0.18), rgba(6, 55, 56, 0.8)),
    linear-gradient(90deg, rgba(6, 55, 56, 0.76), rgba(6, 55, 56, 0.2));
}

.slide.active {
  opacity: 1;
  transform: scale(1.1);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 7rem 0 4rem;
}

.hero-grid,
.two,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 241, 206, 0.9);
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(191, 210, 126, 0.68);
}

.title {
  font-size: clamp(3.6rem, 9vw, 6.8rem);
  line-height: 0.9;
  font-weight: 500;
  max-width: 9ch;
  margin-top: 1rem;
}

.title em {
  font-style: normal;
  color: #bfd27e;
}

.lead {
  max-width: 58ch;
  margin-top: 1.5rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.chips,
.actions,
.resource-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.chips {
  margin-top: 1.6rem;
}

.pill {
  padding: 0.72rem 1rem;
  border: 1px solid rgba(191, 210, 126, 0.28);
  border-radius: 999px;
  background: rgba(113, 137, 42, 0.18);
}

.actions {
  margin-top: 1.7rem;
}

.btn {
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn.primary {
  background: var(--moss);
  color: #f8fcf2;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 210, 126, 0.28);
  color: #fff;
}

.hero-side {
  display: grid;
  gap: 1rem;
  align-self: end;
}

.panel,
.card,
.contact-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.4rem;
  color: var(--ink);
}

.panel h3 {
  font-size: 2rem;
  line-height: 1;
  color: var(--deep);
  margin: 0.45rem 0 0.7rem;
}

.panel p,
.copy p,
.card p,
.contact-box p,
.contact-box a,
.caption {
  line-height: 1.8;
}

.lang-preview {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-preview .pill {
  text-align: center;
  color: #fff;
}

section {
  padding: 5.5rem 0;
}

.head {
  margin-bottom: 2rem;
}

.kicker {
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.96;
  color: var(--deep);
  max-width: 12ch;
}

.copy {
  display: grid;
  gap: 1rem;
}

.stats,
.cards-3,
.cards-4,
.route-cards,
.contact-boxes {
  display: grid;
  gap: 1rem;
}

.stats,
.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat,
.card {
  padding: 1.4rem;
}

.stat {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--deep);
  margin-bottom: 0.35rem;
}

.photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #d7d1c7;
}

.photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(6, 55, 56, 0.78);
  color: rgba(255, 255, 255, 0.92);
}

.band {
  padding-top: 0;
}

.card h3 {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--deep);
  margin-bottom: 0.65rem;
}

.rooms {
  background: linear-gradient(180deg, rgba(9, 75, 76, 0.05), rgba(9, 75, 76, 0));
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--moss);
}

.dark {
  background: #094b4c;
  color: #fff;
}

.dark .section-title {
  color: #f7fbf5;
}

.dark .kicker {
  color: #c6d69b;
}

.dark .copy p {
  color: rgba(255, 255, 255, 0.84);
}

.dark .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.dark .card h3,
.dark .card p {
  color: #fff;
}

.resource-links {
  margin-top: 1.5rem;
}

.resource-links a {
  padding: 0.88rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
}

.contact-boxes {
  margin-top: 1rem;
}

.contact-box {
  padding: 1.25rem 1.35rem;
}

.contact-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--moss);
}

.footer {
  background: #063738;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer h3 {
  font-size: 1.7rem;
  color: #eff7dd;
  margin-bottom: 0.8rem;
}

.footer p,
.footer a {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #edf7d1;
}

.footer-links a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 6px rgba(113, 137, 42, 0.15);
}

.footer-map {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.footer-map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}

@media (max-width: 980px) {
  .hero-grid,
  .two,
  .contact,
  .footer-grid,
  .stats,
  .cards-3,
  .cards-4,
  .route-cards {
    grid-template-columns: 1fr;
  }

  .header {
    position: static;
  }

  .hero-inner {
    padding-top: 6rem;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  section {
    padding: 4.2rem 0;
  }

  .title {
    font-size: 3rem;
  }

  .btn,
  .pill,
  .resource-links a,
  .lang-toggle {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .lang-option {
    flex: 1 1 0;
  }

  .nav {
    width: 100%;
  }
}
/* ── Food slides ── */
.food-slide { background-size: cover; background-position: center; }

/* ── Contact icon list ── */
.contact-list {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(45,106,79,.12);
  color: #2d6a4f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 17px; height: 17px; }
.contact-icon--fb  { background: rgba(24,119,242,.12); color: #1877f2; }
.contact-icon--ig  { background: rgba(193,53,132,.12); color: #c13584; }
.contact-icon--yt  { background: rgba(255,0,0,.10);    color: #ff0000; }
.contact-list a {
  font-size: .88rem;
  color: inherit;
  text-decoration: none;
  transition: opacity .15s;
}
.contact-list a:hover { opacity: .65; }

/* ── Trails slider ── */
.trails-slider-wrap {
  margin: 3rem 0 2rem;
}
.trails-slider-head {
  margin-bottom: 1.5rem;
}
.trails-slider-head .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  margin: .25rem 0 0;
}
.trails-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.trails-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: .5rem .25rem 1rem;
}
.trails-track::-webkit-scrollbar { display: none; }
.trail-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg, #fff);
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
}
.trail-card-img {
  height: 130px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}
.trail-type-badge {
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 20px;
}
.trail-elev {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 6px;
}
.trail-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.trail-card-body h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.trail-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: .75rem;
  color: #666;
}
.diff {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 20px;
}
.diff-easy   { background: #d8f3dc; color: #1b4332; }
.diff-medium { background: #fff3cd; color: #7d4e00; }
.diff-hard   { background: #fde8e8; color: #7f1010; }
.trail-card-body p {
  font-size: .82rem;
  line-height: 1.55;
  color: #555;
  flex: 1;
  margin: 0;
}
.trail-link {
  display: inline-block;
  margin-top: auto;
  font-size: .78rem;
  font-weight: 700;
  color: #2d6a4f;
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .15s;
}
.trail-link:hover { color: #1b4332; }
.trails-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  color: inherit;
}
.trails-arrow:hover { background: #2d6a4f; color: #fff; border-color: #2d6a4f; }
@media (max-width: 600px) {
  .trails-arrow { display: none; }
  .trail-card { flex: 0 0 240px; }
}

.footer-p {
  line-height: 1.2 !important;
}
/* ═══════════════════════════════════════════════════════
   SKIP LINK — Legge Stanca / WCAG 2.4.1
   ═══════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--deep);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #bfd27e;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   FOCUS RING GLOBALE — WCAG 2.4.7
   ═══════════════════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.dark :focus-visible {
  outline-color: #bfd27e;
}

/* ═══════════════════════════════════════════════════════
   SLIDESHOW PAUSE BUTTON — WCAG 2.2.2
   ═══════════════════════════════════════════════════════ */
.slide-pause-btn {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(6,55,56,0.55);
  border: 1.5px solid rgba(191,210,126,0.4);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}
.slide-pause-btn:hover,
.slide-pause-btn:focus-visible {
  background: rgba(6,55,56,0.85);
  outline: 3px solid #bfd27e;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER — GDPR / Provv. Garante 2021
   ═══════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #063738;
  color: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(191,210,126,0.2);
  padding: 1.4rem 1rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.22);
  transform: translateY(0);
  transition: transform 0.35s ease;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.85rem;
  line-height: 1.7;
}
.cookie-banner-text strong {
  display: block;
  font-size: 0.95rem;
  color: #eff7dd;
  margin-bottom: 0.3rem;
}
.cookie-banner-text a {
  color: #c6d69b;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept {
  background: var(--moss);
  color: #f8fcf2;
}
.cookie-btn-reject {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}
.cookie-btn-settings {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.72rem;
}

/* Pannello preferenze granulari */
.cookie-prefs {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  width: 100%;
}
.cookie-prefs.open { display: block; }
.cookie-prefs-grid {
  display: grid;
  gap: 0.7rem;
}
.cookie-pref-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
.cookie-pref-row label {
  flex: 1;
  cursor: pointer;
}
.cookie-pref-row label strong {
  display: block;
  color: #eff7dd;
  font-size: 0.85rem;
}
/* Toggle switch */
.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  margin-top: 2px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-toggle input:checked + .cookie-toggle-track {
  background: var(--moss);
}
.cookie-toggle input:disabled + .cookie-toggle-track {
  background: rgba(113,137,42,0.5);
  cursor: not-allowed;
}
.cookie-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-track::after {
  transform: translateX(18px);
}
.cookie-toggle input:focus-visible + .cookie-toggle-track {
  outline: 3px solid #bfd27e;
  outline-offset: 2px;
}

/* Maps placeholder (quando Maps non è ancora attiva) */
.maps-placeholder {
  width: 100%;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
}
.maps-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}
.maps-placeholder-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(113,137,42,0.3);
  border: 1px solid rgba(113,137,42,0.4);
  color: #c6d69b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.maps-placeholder-btn:hover {
  background: rgba(113,137,42,0.5);
}
