/* =========================================================
   GREEN WORLD — GUIDE & ISPIRAZIONE
   Hub editoriale + funnel viaggi (category.php)
   ========================================================= */

.gw-guides {
  --gw-green: #A9C769;
  --gw-hover-dark: #3F4043;
  --gw-green-dark: #17372d;
  --gw-orange: #e9834f;
  --gw-cream: #f7f3eb;
  --gw-soft: #edf2ed;
  --gw-text: #26332e;
  --gw-muted: #6e7a75;
  --gw-white: #ffffff;
  --gw-border: rgba(35, 75, 61, 0.13);

  width: 100%;
  color: var(--gw-text);
  font-family: inherit;
}

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

.gw-guides a {
  color: inherit;
  text-decoration: none;
}

.gw-guides-container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

/* HERO */

.gw-guides-hero {
  padding: 50px 0 34px;
}

.gw-guides-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gw-orange);
}

.gw-guides-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: .98;
  letter-spacing: -0.045em;
  color: var(--gw-green-dark);
}

.gw-guides-intro {
  max-width: 710px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--gw-muted);
}

.gw-guides-intro p {
  margin: 0;
}

/* CATEGORY NAV */

.gw-guide-categories-wrap {
  margin-top: 30px;
  border-top: 1px solid var(--gw-border);
  border-bottom: 1px solid var(--gw-border);
}

.gw-guide-categories {
  display: flex;
  gap: 9px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gw-guide-categories::-webkit-scrollbar {
  display: none;
}

.gw-guide-category {
  flex: 0 0 auto;
  padding: 10px 17px;
  border: 1px solid var(--gw-border);
  border-radius: 999px;
  background: var(--gw-white);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: .2s ease;
}

.gw-guide-category:hover,
.gw-guide-category.is-active {
  background: var(--gw-green);
  border-color: var(--gw-green);
  color: var(--gw-white);
}

/* FEATURED */

.gw-featured {
  padding: 38px 0 64px;
}

.gw-featured-grid {
  display: grid;
  gap: 18px;
}

.gw-feature-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(
      180deg,
      rgba(14, 38, 30, 0.02) 20%,
      rgba(14, 38, 30, 0.86) 100%
    ),
    var(--gw-feature-image, none) center/cover no-repeat;
  background-color: var(--gw-green-dark);
}

.gw-feature-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px;
  color: var(--gw-white);
}

.gw-card-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gw-orange);
  color: var(--gw-white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gw-feature-card h2 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.gw-feature-card p {
  margin: 12px 0 0;
  max-width: 580px;
  font-size: 15px;
  line-height: 1.55;
  opacity: .9;
}

/* SIDE FEATURES */

.gw-feature-side {
  display: grid;
  gap: 18px;
}

.gw-feature-small {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 15px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--gw-border);
  border-radius: 20px;
  background: var(--gw-white);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gw-feature-small:hover,
.gw-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(32, 61, 50, .09);
}

.gw-feature-small-image {
  min-height: 118px;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  background-color: var(--gw-soft);
}

.gw-feature-small-category {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gw-orange);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gw-feature-small h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--gw-green-dark);
}

/* FUNNEL VERDE */

.gw-guide-funnel {
  margin-bottom: 72px;
  padding: 34px 24px;
  border-radius: 28px;
  background: #5c8f42;
  color: var(--gw-white);
}

.gw-guide-funnel-inner {
  display: grid;
  gap: 26px;
}

.gw-guide-funnel-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gw-guide-funnel h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(29px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.gw-guide-funnel p {
  max-width: 650px;
  margin: 14px 0 0;
  line-height: 1.6;
  opacity: .9;
}

.gw-funnel-links {
  display: grid;
  gap: 9px;
}

.gw-funnel-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.24);
  font-weight: 700;
}

.gw-funnel-link:last-child {
  border-bottom: 0;
}

.gw-funnel-link span:last-child {
  transition: transform .2s ease;
}

.gw-funnel-link:hover span:last-child {
  transform: translateX(4px);
}

/* CATEGORY SECTIONS */

.gw-guide-section {
  padding: 0 0 72px;
  scroll-margin-top: 120px;
}

.gw-guide-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gw-border);
}

.gw-guide-section-number {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gw-orange);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gw-guide-section h2 {
  margin: 0;
  font-size: clamp(29px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--gw-green-dark);
}

.gw-guide-section-all {
  display: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--gw-green) !important;
  transition: color .2s ease;
}

.gw-guide-section-all:hover {
  color: var(--gw-hover-dark) !important;
}

/* ARTICLE GRID */

.gw-article-grid {
  display: grid;
  gap: 26px;
}

.gw-article-card {
  overflow: hidden;
  border: 1px solid var(--gw-border);
  border-radius: 22px;
  background: var(--gw-white);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gw-article-image {
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
  background-color: var(--gw-soft);
}

.gw-article-content {
  padding: 19px;
}

.gw-article-meta {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gw-orange);
  text-transform: uppercase;
  letter-spacing: .055em;
}

.gw-article-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.17;
  letter-spacing: -.02em;
  color: var(--gw-green-dark);
}

.gw-article-card p {
  margin: 11px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gw-muted);
}

.gw-read-more {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gw-green);
  transition: color .2s ease;
}

.gw-article-card:hover .gw-read-more {
  color: var(--gw-hover-dark);
}

/* PAGINAZIONE */

.gw-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.gw-pagination .page-numbers {
  min-width: 44px;
  padding: 10px 17px;
  border: 1px solid var(--gw-border);
  border-radius: 999px;
  background: var(--gw-white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: .2s ease;
}

.gw-pagination a.page-numbers:hover,
.gw-pagination .page-numbers.current {
  background: var(--gw-green);
  border-color: var(--gw-green);
  color: var(--gw-white);
}

.gw-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

/* BOX PROSSIME AVVENTURE */

.gw-trip-callout {
  margin: 0 0 72px;
  padding: 28px 24px;
  border-radius: 26px;
  background: #f3f8ed;
}

.gw-trip-callout-grid {
  display: grid;
  gap: 24px;
}

.gw-trip-callout-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gw-orange);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.gw-trip-callout h2 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(27px, 5vw, 39px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--gw-green-dark);
}

.gw-trip-callout p {
  max-width: 640px;
  margin: 13px 0 0;
  color: var(--gw-muted);
  line-height: 1.6;
}

.gw-trip-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gw-trip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--gw-green);
  color: var(--gw-white) !important;
  font-size: 14px;
  font-weight: 800;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.gw-trip-button:hover {
  background: var(--gw-hover-dark);
  color: var(--gw-white) !important;
}

.gw-trip-button.secondary {
  background: transparent;
  border: 1px solid var(--gw-green);
  color: var(--gw-green) !important;
}

.gw-trip-button.secondary:hover {
  background: var(--gw-hover-dark);
  border-color: var(--gw-hover-dark);
  color: var(--gw-white) !important;
}

/* BOTTOM CTA */

.gw-guides-bottom {
  margin-bottom: 70px;
  padding: 38px 25px;
  border-radius: 28px;
  text-align: center;
  background: var(--gw-orange);
  color: var(--gw-white);
}

.gw-guides-bottom h2 {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(29px, 6vw, 45px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.gw-guides-bottom p {
  max-width: 620px;
  margin: 15px auto 22px;
  line-height: 1.6;
}

.gw-guides-bottom a {
  display: inline-flex;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--gw-white);
  color: var(--gw-green-dark);
  font-weight: 800;
}

/* DESKTOP */

@media (min-width: 720px) {
  .gw-guide-categories {
    flex-wrap: wrap;
    overflow: visible;
  }

  .gw-featured-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  }

  .gw-feature-side {
    grid-template-rows: 1fr 1fr;
  }

  .gw-feature-small {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .gw-feature-small-image {
    min-height: 150px;
  }

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

  .gw-guide-section-all {
    display: block;
  }

  .gw-trip-callout-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .gw-guides-hero {
    padding-top: 70px;
  }

  .gw-guide-funnel {
    padding: 45px;
  }

  .gw-guide-funnel-inner {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
  }

  .gw-article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gw-trip-callout {
    padding: 40px;
  }
}

/* 4 colonne (blocco Guide & Ispirazione della home) */
@media (min-width: 1200px) {
  .gw-article-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
