/* ─── San Secondo 12 — Guide Shared Styles ──────────────────────────────
   Design tokens come from shared.css (linked before this file on every
   guide page) — this file intentionally has no :root block of its own,
   so it always tracks the site-wide palette/fonts. ────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  color: var(--charcoal);
}

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

/* ─── Image Placeholder ─────────────────────────────────────────────────── */
.img-ph {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--beige) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--brown);
  width: 100%;
  height: 100%;
}

.img-ph svg {
  width: 32px;
  height: 32px;
  opacity: 0.45;
}

.img-ph span {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ─── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4%;
  transition: background 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(23, 20, 15, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 28px rgba(0, 0, 0, 0.22);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terra-light);
}

.nav-cta {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  transition: all 0.3s;
  cursor: pointer;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero--full {
  height: 100svh;
  min-height: 600px;
}

.hero--short {
  height: 46vh;
  min-height: 320px;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(15, 12, 8, 0.35) 0%, rgba(15, 12, 8, 0.56) 55%, rgba(10, 8, 5, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 860px;
  animation: fadeUp 1.2s ease both;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--terra-light);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--terra-light);
  padding-bottom: 0.3rem;
  transition: gap 0.3s;
}

.hero-cta:hover {
  gap: 1rem;
}

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 0.9rem;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--terra-light);
  margin: 1.5rem 0;
}

.divider-center {
  margin: 1.5rem auto;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Section ───────────────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--cream);
}

.section--dark {
  background: var(--cream);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.section-head p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.9;
  margin-top: 0.8rem;
}

/* ─── Category Showcase (guide homepage) ───────────────────────────────── */
.cat-showcase {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.cat-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.cat-card {
  background: var(--cream);
  padding: 2.5rem 1.2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  display: block;
}

.cat-card:hover {
  background: var(--forest);
  transform: translateY(-2px);
}

.cat-card:hover .cat-card-icon {
  color: var(--terra-light);
}

.cat-card:hover .cat-card-title {
  color: var(--white);
}

.cat-card:hover .cat-card-count {
  color: rgba(255, 255, 255, 0.55);
}

.cat-card-icon {
  margin-bottom: 1.2rem;
  color: var(--green);
}

.cat-card-icon svg {
  width: 28px;
  height: 28px;
  margin: 0 auto;
}

.cat-card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.cat-card-count {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ─── Venue Cards ───────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.card {
  background: var(--cream);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  display: block;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(23, 20, 15, 0.12);
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: 1.5rem;
}

.card-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-light);
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.8rem;
}

.card-badge--star {
  color: var(--brown);
  border-color: var(--brown);
}

.card-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

.card-address svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: var(--green);
  fill: none;
}

.card-link {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown);
  border-bottom: 1px solid var(--beige);
  padding-bottom: 0.2rem;
  transition: all 0.25s;
  display: inline-block;
}

.card-link:hover {
  color: var(--forest);
  border-color: var(--forest);
}

/* ─── Feature Strip ─────────────────────────────────────────────────────── */
.strip {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 2.2rem 1.5rem;
}

.strip p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 6.5rem 0 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--grey);
  font-family: var(--sans);
  letter-spacing: 0.05em;
}

.breadcrumb-inner a {
  transition: color 0.2s;
}

.breadcrumb-inner a:hover {
  color: var(--forest);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--forest);
}

/* ─── Detail Hero ───────────────────────────────────────────────────────── */
.detail-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
}

/* ─── Detail Body ───────────────────────────────────────────────────────── */
.detail-body {
  background: var(--cream);
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  padding: var(--section-pad) 0;
  align-items: start;
}

.detail-content h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.detail-type {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
  display: block;
}

.detail-desc {
  font-size: 1rem;
  line-height: 1.95;
  color: #4A4A4A;
  margin-bottom: 2rem;
}

.highlights-title {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 1rem;
}

.highlights-list {
  list-style: none;
}

.highlights-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.65;
}

.highlights-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.52rem;
}

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.detail-sidebar {
  background: var(--cream);
  padding: 2.5rem;
  position: sticky;
  top: 5rem;
}

.sidebar-title {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cream-dark);
}

.sidebar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
  font-size: 0.85rem;
  color: var(--charcoal);
}

.sidebar-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  stroke: var(--green);
  fill: none;
}

.sidebar-item strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.sidebar-cta {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.9rem 1.5rem;
  background: var(--forest);
  color: var(--white);
  transition: all 0.3s;
  cursor: pointer;
}

.sidebar-cta:hover {
  background: var(--terra);
}

/* ─── Related Section ───────────────────────────────────────────────────── */
.related {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.related-head {
  margin-bottom: 2.5rem;
}

.related-head h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--forest);
}

/* ─── Map Hint ──────────────────────────────────────────────────────────── */
.map-section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.map-wrap {
  aspect-ratio: 16/5;
  background: linear-gradient(135deg, #D6C7B0 0%, #C1440E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.map-wrap svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  stroke: var(--forest);
  fill: none;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem;
}

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

.footer-brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer-brand-tagline {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.2rem;
}

footer h5 {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0;
  transition: color 0.2s;
}

footer li:hover {
  color: var(--white);
}

footer li a {
  color: inherit;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .detail-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid--2 {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cat-cards {
    grid-template-columns: 1fr 1fr;
  }
}
