
.site-main .wp-block-image,
.site-main figure {
  margin: 0;
}

.site-main .wp-post-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-archive {
  padding-bottom: 24px;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.category-hero-copy,
.category-hero-panel,
.category-note-box,
.category-section-head {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-hero-copy {
  padding: 28px;
}

.category-hero-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.category-hero-copy .hero-text {
  max-width: 62ch;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
}

.category-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-hero-meta span,
.category-stats-card,
.category-panel-card {
  border-radius: 14px;
  border: 1px solid #dbe3ea;
  background: #ffffff;
}

.category-hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.86rem;
  line-height: 1.2;
  color: #0f172a;
  background: #f8fafc;
}

.category-hero-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.category-panel-card {
  padding: 16px;
}

.category-panel-card strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.05rem;
  color: #0f172a;
}

.category-panel-card p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  font-size: 0.94rem;
}

.category-panel-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0a5953;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-panel-card-primary {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.category-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-stats-card {
  padding: 14px;
  text-align: center;
  background: #ffffff;
}

.category-stats-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.category-stats-label {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.82rem;
}

.category-section-head {
  margin-top: 18px;
  padding: 22px 22px 18px;
}

.category-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  color: #0f172a;
}

.category-section-head .section-intro {
  max-width: 70ch;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.category-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.category-highlights li {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
  color: #0f172a;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.category-post-grid {
  margin-top: 18px;
}

/* ── Esplora anche ─────────────────────────────────────────── */
.category-explore {
  margin-top: 36px;
  padding: 28px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
}

.category-explore-title {
  margin: 0 0 16px;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: #0f172a;
  letter-spacing: -0.01em;
}

.category-explore-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-explore-list li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f6b64;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.category-explore-list li a:hover {
  background: #0f6b64;
  border-color: #0f6b64;
  color: #ffffff;
}

/* ── FAQ categoria ─────────────────────────────────────────── */
.category-faq {
  margin-top: 36px;
  padding: 28px 24px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.category-faq-title {
  margin: 0 0 20px;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: #0f172a;
  letter-spacing: -0.01em;
}

.category-faq-list {
  margin: 0;
  padding: 0;
}

.category-faq-item {
  padding: 16px 0;
  border-top: 1px solid #f1f5f9;
}

.category-faq-item:first-child {
  border-top: none;
  padding-top: 0;
}

.category-faq-item dt {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
  font-size: 0.97rem;
  line-height: 1.5;
}

.category-faq-item dd {
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 0.93rem;
}

.hero-offer-media .wp-post-image,
.hero-offer-media img {
  object-fit: contain !important;
  object-position: center;
  height: auto;
  padding: 12px;
  background: linear-gradient(180deg, rgba(241, 244, 237, 0.95), rgba(255, 255, 255, 0.98));
}

.single-media-wrap .wp-post-image,
.single-media-wrap .thumb-wrap img {
  object-fit: contain !important;
  object-position: center;
  height: auto !important;
  max-height: 560px;
  width: 100% !important;
}

.single-media-wrap .thumb-wrap {
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}

.menu-primary .current-menu-item a,
.menu-primary .current_page_item a {
  background: rgba(15, 118, 110, 0.12);
  color: #0a5953;
}

/* Keep the top navigation bars always reachable while content scrolls below. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
}

.category-strip {
  position: sticky;
  top: 78px;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar .category-strip {
  top: 110px;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-search input[type="search"] {
  width: 220px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.header-search input[type="search"]:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.header-search button {
  border: 1px solid #0f766e;
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 12px;
  cursor: pointer;
}

.header-search button:hover {
  background: #f0fdfa;
}

.mobile-category-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-category-toggle-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-category-toggle-icon::before,
.mobile-category-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-category-toggle-icon::before {
  top: -5px;
}

.mobile-category-toggle-icon::after {
  top: 5px;
}

.mobile-category-toggle[aria-expanded="true"] {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
}

body.mobile-categories-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  z-index: 1180;
}

.deal-cta .deal-disclosure {
  margin: 8px 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #6b7280;
}

.footer-legal-links {
  margin-top: 8px;
  font-size: 0.86rem;
  color: #6b7280;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-links span {
  margin: 0 8px;
  opacity: 0.7;
}

.ov-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  margin: 0 auto;
  max-width: 660px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  padding: 12px 14px;
}

.ov-cookie-banner-text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #374151;
}

.ov-cookie-banner-text a {
  color: #0a5953;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ov-cookie-banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ov-cookie-btn {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ov-cookie-btn-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.ov-cookie-btn-primary:hover {
  background: #0c625b;
  border-color: #0c625b;
}

.ov-cookie-btn-muted {
  background: #ffffff;
  color: #374151;
}

.ov-cookie-btn-muted:hover {
  background: #f3f4f6;
}

@media (max-width: 780px) {
  .hero-slider,
  .hero-layout > .hero-slider,
  aside.hero-slider {
    display: none !important;
  }

  .site-header .nav {
    display: none;
  }

  .mobile-category-toggle {
    display: inline-flex;
  }

  .site-header .header-inner {
    justify-content: center;
    gap: 10px;
  }

  .site-header .brand {
    width: 100%;
    justify-content: center;
  }

  .site-header .header-cta {
    order: 4;
    display: inline-flex;
    flex: 0 1 160px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.86rem;
    line-height: 1;
  }

  .site-header .header-search {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .site-header .mobile-category-toggle {
    order: 4;
    flex: 0 1 160px;
    min-height: 40px;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.86rem;
  }

  /* On mobile keep only the main header sticky to avoid stacked sticky overlap. */
  .category-strip {
    display: none;
    position: fixed;
    top: var(--mobile-category-drawer-top, 88px);
    left: 12px;
    right: 12px;
    z-index: 1190;
    max-height: calc(100vh - var(--mobile-category-drawer-top, 88px) - 12px);
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }

  body.mobile-categories-open .category-strip {
    display: block;
  }

  .category-strip-inner {
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .category-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .category-strip-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .category-strip-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }

  .category-strip-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .category-strip-list li,
  .category-strip-list a {
    width: 100%;
  }

  .category-strip-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .category-strip-list a.is-active,
  .category-strip-list a[aria-current="page"] {
    background: rgba(15, 118, 110, 0.12);
    color: #0a5953;
    border-color: rgba(15, 118, 110, 0.26);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.15);
  }

  .header-search input[type="search"] {
    width: min(100%, 280px);
  }

  .category-hero {
    grid-template-columns: 1fr;
  }

  .category-highlights {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 781px) {
  .category-strip-close {
    display: none;
  }

  .category-strip-list a.is-active,
  .category-strip-list a[aria-current="page"] {
    border-color: #0f766e;
    color: #0f766e;
    background: #f0fdfa;
  }
}

@media (max-width: 640px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .category-strip {
    left: 10px;
    right: 10px;
  }

  .category-strip-list {
    grid-template-columns: 1fr;
  }

  .header-search input[type="search"] {
    width: min(100%, 240px);
    font-size: 0.85rem;
  }

  .header-search button {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .category-hero-copy,
  .category-hero-panel,
  .category-section-head {
    border-radius: 14px;
  }

  .category-hero-copy,
  .category-hero-panel,
  .category-section-head {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ov-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 11px;
  }

  .ov-cookie-banner-actions {
    flex-wrap: wrap;
  }
}
