:root {
  color-scheme: light;
  --rosso: #8b2635;
  --tufo: #dcc7aa;
  --antracite: #2d2d2d;
  --blu-lago: #2c5e6d;
  --blu-lago-700: #204954;
  --tufo-50: #faf6ef;
  --tufo-100: #f3ebdf;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: rgba(45, 45, 45, 0.12);
  --border-strong: rgba(44, 94, 109, 0.22);
  --text-soft: #5c5b59;
  --shadow: 0 12px 36px rgba(45, 45, 45, 0.08);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --container: min(72rem, calc(100% - 1.5rem));
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--antracite);
  line-height: 1.6;
  background: #FAFAFA;
}

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

a {
  color: var(--blu-lago);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--rosso);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(44, 94, 109, 0.45);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p,
ul,
ol,
dl {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--blu-lago);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.nav-shell {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(16px);
}

.header__inner,
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rosso);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  min-width: 0;
}

.nav-toggle {
  display: none;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--antracite);
  font: 700 0.9rem/1 var(--font-body);
  cursor: pointer;
  text-transform: uppercase;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle::before {
  content: "";
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -0.32rem 0 currentColor, 0 0.32rem 0 currentColor;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--blu-lago);
  color: #ffffff;
  border-color: var(--blu-lago);
}

.site-nav {
  display: block;
}

.site-nav ul,
.tag-list,
.hero__highlights,
.plain-list,
.breadcrumb,
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0;
  color: var(--antracite);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--rosso);
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rosso);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  gap: 0.35rem;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--blu-lago);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-switcher a.is-current,
.lang-switcher a:hover {
  background: var(--blu-lago);
  border-color: var(--blu-lago);
  color: #fff;
}

.book-now-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 1.2rem;
  border: 2px solid var(--rosso);
  background: transparent;
  color: var(--rosso);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.book-now-btn:hover {
  background: var(--rosso);
  color: #ffffff;
}

.hero,
.detail-hero {
  padding: 1.25rem 0 0;
}

.hero__grid,
.detail-hero__grid,
.knowledge-grid,
.spoke-grid,
.detail-grid,
.section-grid {
  display: grid;
  gap: 1rem;
}

.hero__panel,
.detail-hero__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(139, 38, 53, 0.92) 0%, rgba(45, 45, 45, 0.38) 48%, rgba(44, 94, 109, 0.9) 100%);
  box-shadow: var(--shadow);
}

.hero__media,
.detail-hero__media {
  min-height: 19rem;
}

.hero__media img,
.detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
}

.detail-hero__media img {
  object-position: center 40%;
  filter: saturate(1) contrast(1.02);
}

.hero__content,
.detail-hero__content {
  position: relative;
  padding: 1.5rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.08) 0%, rgba(14, 17, 22, 0.62) 100%),
    linear-gradient(135deg, rgba(139, 38, 53, 0.14) 0%, rgba(44, 94, 109, 0.16) 100%);
}

.hero__content > * + *,
.detail-hero__content > * + *,
.card > * + *,
.template-note > * + *,
.cta-panel > * + *,
.section__head > * + * {
  margin-top: 0.85rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--rosso);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.3rem);
}

.detail-hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.hero__highlights {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.hero__highlights li {
  position: relative;
  padding-left: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--tufo);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--rosso);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  color: #fff;
}

.button--primary {
  background: var(--rosso);
  color: #fff;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.button--ghost {
  background: rgba(44, 94, 109, 0.08);
  border-color: rgba(44, 94, 109, 0.16);
  color: var(--blu-lago);
}

.weather-widget {
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--tufo-50) 100%);
}

.weather-widget__intro {
  color: var(--text-soft);
}

.weather-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.weather-stats div {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
}

.weather-stats dt {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rosso);
}

.weather-stats dd {
  margin-top: 0.35rem;
  font-weight: 700;
}

.weather-widget__note {
  padding: 1rem;
  border-left: 4px solid var(--rosso);
  border-radius: var(--radius-md);
  background: rgba(44, 94, 109, 0.08);
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.38);
}

.section__head {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.card,
.cta-panel,
.template-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.25rem;
}

.card__eyebrow {
  color: var(--rosso);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 44%;
  color: var(--antracite);
  font-weight: 700;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.plain-list {
  display: grid;
  gap: 0.7rem;
}

/* Consolidated "Continua a esplorare" related block (Sprint F) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2.25rem;
}

.related-col h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.related-col .plain-list {
  gap: 0.55rem;
}

.plain-list li {
  padding-left: 1rem;
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blu-lago);
}

.spoke-card {
  display: grid;
  gap: 0.9rem;
}

.spoke-card.is-priority {
  border-color: rgba(139, 38, 53, 0.3);
  box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.08), var(--shadow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(44, 94, 109, 0.08);
  color: var(--blu-lago);
  font-size: 0.85rem;
  font-weight: 700;
}

.cta-panel {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  align-items: center;
}

.template-note {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #fffaf6 0%, #fff1e8 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.55rem;
}

.detail-hero__content .breadcrumb {
  color: rgba(255, 255, 255, 0.8);
}

.detail-hero__content .breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.detail-hero__content .breadcrumb a:hover {
  color: #ffffff;
}

.detail-hero__content .breadcrumb li:last-child,
.detail-hero__content .breadcrumb li:last-child a {
  color: #ffffff;
}

.detail-hero__content .breadcrumb li + li::before {
  color: rgba(255, 255, 255, 0.58);
}

.summary-list {
  display: grid;
  gap: 0.8rem;
}

.summary-list div {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--tufo-50);
  border: 1px solid rgba(139, 38, 53, 0.08);
}

.summary-list dt {
  color: var(--rosso);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-list dd {
  margin-top: 0.35rem;
  font-weight: 700;
}

.content-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.content-card h3 {
  font-size: 1.3rem;
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.content-stack .media-card-grid {
  margin: 1.5rem 0;
}

.content-stack section {
  display: grid;
  gap: 0.75rem;
}

.map-copy,
.map-note {
  color: var(--text-soft);
}

.map-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f8fdff 0%, #e9f5fa 100%);
  box-shadow: var(--shadow);
}

.map-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.map-copy-wrap {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
  max-width: 62ch;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 32rem;
}

.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 45, 45, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.map-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
}

.dot-crater {
  background: var(--tufo);
  border: 1px solid rgba(45, 45, 45, 0.16);
}

.dot-route {
  background: var(--rosso);
}

.dot-lake {
  background: var(--blu-lago);
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(45, 45, 45, 0.1);
  background: #dfeff5;
}

#map {
  width: 100%;
  min-height: 26rem;
  height: clamp(26rem, 68vh, 47.5rem);
}

.map-powered {
  position: absolute;
  right: 0.625rem;
  bottom: 0.625rem;
  z-index: 650;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--antracite);
  font-size: 0.75rem;
  line-height: 1.2;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
}

.map-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(45, 45, 45, 0.1);
  max-width: 68ch;
}

.poi-icon {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.22);
}

.poi-icon span {
  transform: rotate(45deg);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.poi-cathedral {
  background: linear-gradient(135deg, #5da9c6, #7bc4da);
}

.poi-rocca {
  background: linear-gradient(135deg, #2e7089, #5ba2bb);
}

.poi-francigena {
  background: linear-gradient(135deg, #5e7785, #89a9b8);
}

.popup h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.popup p {
  margin: 0;
  color: #445861;
  font-size: 0.92rem;
  line-height: 1.52;
}

.site-footer {
  margin-top: 2rem;
  background: var(--antracite);
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

.footer__inner {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

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

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    width: auto;
    margin-left: auto;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.9rem;
  }

  .lang-switcher {
    margin-left: 0;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
    align-items: start;
  }

  .hero__panel {
    min-height: 36rem;
  }

  .hero__media {
    min-height: 100%;
  }

  .hero__content {
    position: absolute;
    inset: auto auto 0 0;
    max-width: 42rem;
    padding: 2rem;
  }

  .knowledge-grid,
  .detail-grid,
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-panel {
    grid-template-columns: minmax(0, 1.8fr) auto;
  }

  .footer__inner {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    align-items: start;
  }
}

@media (max-width: 63.99rem) {
  .header__inner,
  .nav-shell {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header__actions {
    order: 2;
    margin-left: auto;
  }

  .lang-switcher {
    order: 2;
    margin-left: 0;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 0;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav li + li {
    border-top: 1px solid var(--border);
  }

  .site-nav a {
    padding: 0.9rem 0.15rem;
  }

  .site-nav a::after {
    left: 0.15rem;
    right: 0.15rem;
  }
}

/* ─── Page Hero (homepage e spoke intro) ─── */
.page-hero {
  padding: 1.5rem 0 1rem;
}

.page-hero__panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(139, 38, 53, 0.92), rgba(44, 94, 109, 0.9)),
    var(--surface-strong);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero__panel--home {
  background:
    linear-gradient(135deg, rgba(139, 38, 53, 0.7), rgba(44, 94, 109, 0.74)),
    var(--hero-bg-image, url("/media/hero-rocca-dei-papi-1600.jpg")) center / cover no-repeat;
}

.page-hero__content {
  padding: 1.5rem;
}

.page-hero__content > * + *,
.page-hero p + p {
  margin-top: 0.85rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-top: 0.75rem;
}

@media (min-width: 48rem) {
  .page-hero {
    padding-top: 2rem;
  }

  .page-hero__content {
    padding: 2.25rem;
    max-width: 48rem;
  }
}

/* ─── Nav Grid (homepage 3-card spoke links) ─── */
.nav-grid {
  display: grid;
  gap: 1rem;
}

.nav-card > * + * {
  margin-top: 0.85rem;
}

.nav-card__eyebrow {
  color: var(--rosso);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-card__link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--blu-lago);
}

.nav-card__link:hover {
  color: var(--rosso);
}

@media (min-width: 48rem) {
  .nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─── Dynamic Panel (weather widget) ─── */
.dynamic-panel {
  border-left: 4px solid var(--rosso);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--tufo-50) 100%);
  color: var(--antracite);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.dynamic-panel h3 {
  color: var(--rosso);
}

.dynamic-panel > * + * {
  margin-top: 0.85rem;
}

/* ─── Association Entries ─── */
.association-stack {
  display: grid;
  gap: 1.25rem;
}

.association-entry {
  display: grid;
  gap: 1rem;
}

.association-entry__media {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--tufo-50) 0%, var(--surface-strong) 100%);
}

.association-entry__media img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.2rem);
}

.association-entry__body {
  display: grid;
  gap: 0.9rem;
}

.association-entry__text > * + * {
  margin-top: 0.85rem;
}

@media (min-width: 48rem) {
  .association-entry {
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
    align-items: start;
  }
}

/* ─── Footer Contact Layout ─── */
.footer__title {
  color: #fff;
}

.contact-card > * + * {
  margin-top: 0.85rem;
}

.footer-list {
  display: grid;
  gap: 0.5rem;
}

/* ─── Section head paragraph ─── */
.section__head > p {
  color: var(--text-soft);
}

/* ─── Utility grid ─── */
.grid--2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Premium Lake & Stone Redesign Additions ─── */

/* Floating Hero Card */
.page-hero__panel--home {
  /* JPG fallback first; modern browsers use the WebP via image-set (matches the <link rel=preload> hero) */
  background: var(--hero-bg-image, url("/media/hero-rocca-dei-papi-1600.jpg")) center / cover no-repeat;
  background: var(--hero-bg-image, image-set(url("/media/hero-rocca-dei-papi-1600.webp") type("image/webp"), url("/media/hero-rocca-dei-papi-1600.jpg") type("image/jpeg"))) center / cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-hero__panel--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-hero__content--floating {
  position: relative;
  z-index: 2;
  background: #ffffff;
  color: var(--antracite);
  max-width: 540px;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(45, 45, 45, 0.15);
  text-align: center;
  margin: 1.5rem;
}

.page-hero__content--floating h1 {
  font-family: var(--font-display);
  color: var(--rosso);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-hero__content--floating p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.page-hero__content--floating .eyebrow {
  color: var(--blu-lago);
  font-weight: 700;
  display: block;
}

.button--hero {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rosso);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.8rem 2.2rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.button--hero:hover {
  background: var(--blu-lago);
  color: #ffffff;
}

/* Two-column Hub Layout */
.hub-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .hub-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr);
    align-items: start;
  }
}

.hub-main .eyebrow {
  color: var(--rosso);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.hub-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--antracite);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hub-description {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.tag-pills {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blu-lago);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Weather Premium Widget */
.weather-widget-premium {
  background: var(--blu-lago);
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.weather-widget-premium h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tufo);
  margin-bottom: 1rem;
}

.weather-current {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.weather-current .temp {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.weather-current .cond {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
}

.weather-advice {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* Essential Data Widget */
.essential-data-widget {
  background: var(--tufo-50);
  border: 1px solid var(--tufo);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.essential-data-widget h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rosso);
  margin-bottom: 1rem;
}

.essential-table {
  width: 100%;
  border-collapse: collapse;
}

.essential-table tr {
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
}

.essential-table tr:last-child {
  border-bottom: none;
}

.essential-table th,
.essential-table td {
  padding: 0.75rem 0;
  text-align: left;
  font-size: 0.95rem;
}

.essential-table th {
  color: var(--rosso);
  font-weight: 700;
  width: 40%;
}

.essential-table td {
  color: var(--antracite);
  font-weight: 600;
}

/* Explore Grid */
.explore-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.explore-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--antracite) var(--bg-img) center / cover no-repeat;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.explore-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: #ffffff;
  z-index: 2;
}

.explore-card__icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tufo);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.explore-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.explore-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.4;
  margin: 0;
  color: #e5e5e5;
}

.explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.explore-card:hover .explore-card__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(139, 38, 53, 0.85) 100%);
}

.explore-card:hover .explore-card__icon {
  background: #ffffff;
  color: var(--rosso);
}

.media-card-grid {
  display: grid;
  gap: 1.25rem;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tufo-50);
}

.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card__body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem 1.1rem;
  border-top: 1px solid var(--border);
}

.media-card__body p {
  color: var(--text-soft);
}

.media-card__body a {
  color: var(--blu-lago);
  font-weight: 700;
}

.meta-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(44, 94, 109, 0.08);
  color: var(--blu-lago);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-links {
  display: grid;
  gap: 1rem;
}

.hub-links a {
  font-weight: 700;
}

.hub-links p {
  color: var(--text-soft);
}

.section-split {
  display: grid;
  gap: 1rem;
}

/* Wineries Spoke Page Components */
.spoke-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .spoke-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr);
    align-items: start;
  }

  .media-card-grid--2,
  .section-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.spoke-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--antracite);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.spoke-description {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.winery-list {
  display: grid;
  gap: 1.5rem;
}

.winery-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.winery-card:hover {
  transform: translateY(-2px);
  border-color: var(--tufo);
}

.winery-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--rosso);
  margin-bottom: 0.75rem;
}

.winery-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.winery-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blu-lago);
  background: rgba(44, 94, 109, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  letter-spacing: 0.05em;
}

/* Fast Facts Sidebar Widget */
.fast-facts-widget {
  background: var(--tufo-50);
  border: 1px solid var(--tufo);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.fast-facts-widget h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rosso);
  margin-bottom: 1.25rem;
}

.fast-facts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.fast-facts-list li {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
}

.fast-facts-list li:last-child {
  border-bottom: none;
}

.fast-facts-list li strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--rosso);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.fast-facts-list li span {
  font-weight: 600;
  color: var(--antracite);
}

.download-guide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rosso);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease;
  width: 100%;
  text-align: center;
}

.download-guide-btn:hover {
  background: var(--blu-lago);
}

/* Vintage Car Card */
.vintage-car-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--antracite) center / cover no-repeat;
  aspect-ratio: 4 / 3;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.vintage-car-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.vintage-car-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  z-index: 2;
}

.vintage-car-card__content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.vintage-car-card__content p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #e5e5e5;
}

.vintage-car-card__link {
  color: var(--tufo);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  transition: color 0.2s ease;
}

.vintage-car-card__link:hover {
  color: #ffffff;
}
