/* ==========================================================================
   Dolomites Mountain Guides — UI Skin
   File: site + activity show
   NOTE: Specificity e selettori invariati. Solo riordinato e commentato.
   ==========================================================================

   INDEX
   - App shell (sticky footer)
   0) Header (vars, base, temi, mega, mobile)
   1) Home interactions
   2) Scroll lock + mobile feedback
   3) Activity Page (vars, layout, components)
      3.1) Layout, sections, titles
      3.2) Glass presets
      3.3) Gallery (hero) + thumbs
      3.4) Sidebar + booking card
      3.5) Quote block
      3.6) Form & buttons
      3.7) Quick facts
      3.8) Highlights
      3.9) Prices
      3.10) Included / Not Included
      3.11) Requirements
      3.12) Itinerary
      3.13) Reviews
      3.14) Lightbox + a11y
      3.15) Gear
      3.16) Badges
      3.17) Summary modal
   ========================================================================== */

/* ==========================================================================
   APP SHELL (sticky footer con header fisso)
   ========================================================================== */

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-offset, 0px);
}

.app-main {
  flex: 1 0 auto;
}

/* ==========================================================================
   0) HEADER
   - Vars + base
   - Logo swap
   - Utility bar
   - Tema SOLID (glass, non bianco pieno)
   - Tema TRANSPARENT (desktop)
   - Mega menu (desktop)
   - Stato "menu open" + variante "menu-open-light"
   - Mobile menu
   ========================================================================== */

/* -- Vars (altezza) + base ------------------------------------------------ */
#site-header {
  --site-header-height: 70px;
  --site-utility-height: 0px;

  /* default: trasparente; JS applica .is-solid/.is-transparent */
  background-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;

  /* evita flash al boot: nascosto fino a rAF che rimuove .pre-hydrate */
}
#site-header.pre-hydrate,
#site-header.pre-hydrate * {
  transition: none !important;
}
#site-header.pre-hydrate {
  opacity: 0;
  visibility: hidden;
}

@media (min-width: 768px) {
  #site-header {
    --site-utility-height: 32px;
  }
}

/* Tipografia utility ------------------------------------------------------ */
#site-header .brand-text {
  letter-spacing: -0.01em;
}
#site-header .nav-link,
#site-header .util-link {
  transition: color 0.15s ease;
  text-decoration: none;
}
#site-header .util-muted {
  color: #475569;
}

/* -- Logo swap (base) ----------------------------------------------------- */
#site-header .logo-dark {
  display: block;
}
#site-header .logo-light {
  display: none;
}

/* -- Utility bar (hairline) ----------------------------------------------- */
#site-header .header-utility {
  border-bottom: 1px solid #e2e8f0;
}

/* -- Tema: SOLID (sempre GLASS, mai #fff pieno) --------------------------- */
#site-header.is-solid {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  border-bottom: 0;
}
#site-header.is-solid .brand-text,
#site-header.is-solid .nav-link,
#site-header.is-solid .util-link {
  color: #0f172a;
}
#site-header.is-solid .logo-dark {
  display: block;
  filter: none;
}
#site-header.is-solid .logo-light {
  display: none;
}

/* -- Tema: TRANSPARENT (desktop only) ------------------------------------- */
@media (min-width: 768px) {
  #site-header.is-transparent {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
  }
  #site-header.is-transparent .header-utility {
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  }
  #site-header.is-transparent .brand-text,
  #site-header.is-transparent .nav-link,
  #site-header.is-transparent .util-link {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  }
  #site-header.is-transparent .util-muted {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  }
  /* swap loghi in trasparente */
  #site-header.is-transparent .logo-dark {
    display: none;
  }
  #site-header.is-transparent .logo-light {
    display: block;
  }
}

/* -- Mega FULL SCREEN glass (desktop) ------------------------------------- */
#site-header #mm-activities-panel {
  border-radius: 0 !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  transition: background 0.18s ease, backdrop-filter 0.18s ease,
    border-color 0.18s ease;
}
#site-header #mm-activities-panel h3 {
  letter-spacing: 0.12em;
}
#site-header #mm-activities-panel a:focus-visible,
#site-header nav[aria-label="Primary"] a:focus-visible,
#site-header #mm-activities-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px inset rgba(255, 255, 255, 0.4);
}

/* -- Stato: menu open (glass dark) ---------------------------------------- */
#site-header.menu-open {
  background: rgba(15, 23, 42, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
@media (min-width: 768px) {
  #site-header.is-transparent.menu-open {
    background: rgba(15, 23, 42, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }
}

/* -- Variante: LIGHT THEME durante menu open ------------------------------ */
#site-header.menu-open.menu-open-light {
  background: rgba(255, 255, 255, 0.85) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
#site-header.menu-open.menu-open-light #mm-activities-panel {
  background: rgba(255, 255, 255, 0.85) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #0f172a !important;
}
#site-header.menu-open.menu-open-light #mm-activities-panel,
#site-header.menu-open.menu-open-light #mm-activities-panel * {
  color: #0f172a !important;
  text-shadow: none !important;
}
#site-header.menu-open.menu-open-light #mm-activities-panel a:hover {
  background: rgba(15, 23, 42, 0.06);
}
#site-header.menu-open.menu-open-light #mm-activities-btn:focus-visible {
  box-shadow: 0 0 0 2px inset rgba(15, 23, 42, 0.35) !important;
}
/* Supporto pannello con classe .is-light */
#site-header.menu-open-light .mm-panel.is-light {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* -- Mobile menu ----------------------------------------------------------- */
#mobile-menu {
  position: fixed !important;
  z-index: 60 !important;
  left: 0;
  right: 0;
  bottom: 0;

  /* top/height basati sull’offset effettivo dell’header */
  top: var(--mm-top, var(--header-offset, 70px));
  height: calc(100dvh - var(--mm-top, var(--header-offset, 70px)));

  /* Light glass stile iOS / DMG */
  background: rgba(248, 250, 252, 0.96); /* slate-50 quasi pieno */
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);

  border-top: 1px solid rgba(148, 163, 184, 0.45); /* slate-400 */
}

#mobile-menu > nav {
  height: 100% !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

#site-header #mobile-menu a {
  font-size: 16px;
}

/* Primary CTA nel mobile menu (Calendar) – semplice, monocromatico */
#mobile-menu .mm-calendar-btn {
  border-radius: 999px;
  border: 1px solid #0f172a; /* dark ink DMG */
  background: #0f172a;
  color: #ffffff;
  padding: 11px 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
}

#mobile-menu .mm-calendar-btn:hover,
#mobile-menu .mm-calendar-btn:active {
  background: #020617; /* un pelo più scuro */
  color: #ffffff;
}

#mobile-menu .mm-calendar-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px inset rgba(15, 23, 42, 0.48),
    0 4px 10px rgba(15, 23, 42, 0.22);
}

/* Spaziatura tra blocco categorie e blocco link/account */
#site-header #mobile-menu nav > div + div {
  margin-top: 14px;
}

@media (max-width: 768px) {
  #site-header #mm-activities-panel {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   1) HOME INTERACTIONS (hero + mega menu)
   ========================================================================== */

.page-home .hero-copy {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mm-open .page-home .hero-copy {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

/* ==========================================================================
   2) SCROLL LOCK + MOBILE LINK FEEDBACK
   ========================================================================== */

/* Scroll lock + touch-action per evitare overscroll su iOS/Android */

html.nav-open,
body.nav-open {
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

/* Link morbidi, pill, ma con colori definiti dalle classi Tailwind */
#mobile-menu a {
  display: block;
  border-radius: 999px;
  padding: 6px 10px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s ease, color 0.16s ease, transform 0.1s ease;
  outline: none;
  color: inherit; /* usa text-* della view */
}

#mobile-menu a:hover,
#mobile-menu a:active {
  background: rgba(15, 23, 42, 0.04);
  transform: translateY(-0.5px);
}

#mobile-menu a:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 0 0 2px inset rgba(15, 23, 42, 0.35);
}

/* link “view all” (testo piccolo sottolineato) */
#mobile-menu .text-\[11px\]\.font-semibold.underline:hover,
#mobile-menu .text-\[11px\]\.font-semibold.underline:active {
  background: rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

#mobile-menu .text-\[11px\]\.font-semibold.underline:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 0 0 2px inset rgba(15, 23, 42, 0.35);
}

/* Bottoni già sky-600: lasciamo a Tailwind il controllo del colore */
#mobile-menu a.bg-sky-600:hover,
#mobile-menu a.bg-sky-600:active,
#mobile-menu a.bg-sky-600:focus-visible {
  background-color: rgb(2 132 199 / 1);
  color: #fff;
  box-shadow: none;
}

/* ==========================================================================
   3) ACTIVITY PAGE (page-activity)
   ========================================================================== */

/* -- Vars + reset ---------------------------------------------------------- */
.page-activity {
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-hair: rgba(15, 23, 42, 0.12);
  --muted: #475569;
  --muted-2: #64748b;
  --focus: #0ea5e9;
}
.page-activity * {
  border-radius: 0 !important;
}

/* 3.1) Layout, sections, titles ------------------------------------------ */
.page-activity .layout-2col {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .page-activity .layout-2col {
    grid-template-columns: minmax(0, 2fr) 1fr;
  }
}
.page-activity .content-stack > section {
  padding-block: 6px;
}

/* Divider */
.page-activity .section-sep {
  border: 0;
  height: 1px;
  margin: 36px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 23, 42, 0.16),
    transparent
  );
}

/* Titles & text */
.page-activity .sec-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.page-activity .sec-sub {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-activity .title-block .title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.page-activity .title-block .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #334155;
  margin-top: 6px;
}
.page-activity .lead {
  margin-top: 0.25rem;
  font-size: 1.075rem;
  line-height: 1.85;
  color: #334155;
}

/* 3.2) Glass presets ------------------------------------------------------- */
.page-activity .glass-elev {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-hair);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.page-activity .glass-elev-sm {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-hair);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

/* 3.3) Gallery (hero) + thumbs ------------------------------------------- */
.page-activity .media-frame {
  position: relative;
}
.page-activity .media-frame--bare {
  background: transparent !important;
  border: 0 !important;
}
.page-activity .media-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.page-activity .media-controls .ctrl {
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: 0;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Thumbs overlay */
.page-activity .thumbs--overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-hair);
  padding: 8px 10px;
}
.page-activity .thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.page-activity .thumbs-row::-webkit-scrollbar {
  height: 6px;
}
.page-activity .thumbs-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}
.page-activity .thumb {
  height: 64px;
  width: 114px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: #fff;
  padding: 0;
  cursor: pointer;
}
.page-activity .thumb.is-active {
  outline: 2px solid rgba(15, 23, 42, 0.65);
  outline-offset: -2px;
}

/* 3.4) Sidebar + booking card -------------------------------------------- */
.page-activity .sidebar.align-top {
  position: sticky;
  top: 88px;
}
.page-activity .card {
  padding: 22px;
}
.page-activity .card-title {
  font-size: 1.25rem;
  font-weight: 800;
}
.page-activity .card-sub {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}
.page-activity .calendar-glass {
  margin-top: 16px;
  padding: 14px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-hair);
}
.page-activity .calendar-glass button:hover {
  filter: saturate(1.05);
}

/* 3.5) Quote block --------------------------------------------------------- */
.quote-block {
  padding: 14px;
  border: 1px solid var(--glass-hair);
  background: #fff;
}
.quote-block .qb-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: baseline;
}
@media (min-width: 480px) {
  .quote-block .qb-row {
    grid-template-columns: 1fr 1fr;
  }
}
.qb-cell {
  display: flex;
  align-items: baseline;
}
.qb-amount {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
}
.qb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.qb-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: #fff;
  color: #0f172a;
}

/* 3.6) Form & buttons ------------------------------------------------------ */
.page-activity .form-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.page-activity .btn-wide {
  width: 100%;
}

.btn-primary-cta {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #0ea5e9;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.25);
  min-height: 48px;
}
.btn-primary-cta:hover {
  filter: brightness(0.95);
}
.btn-primary-cta:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: 2px;
}
.btn-primary-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-hair);
  padding: 10px 14px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  min-height: 44px;
}

/* 3.7) Quick facts --------------------------------------------------------- */
.page-activity .facts-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .page-activity .facts-grid {
    grid-template-columns: 1fr;
  }
}
.page-activity .fact {
  border: 1px solid var(--glass-hair);
  background: #fff;
  padding: 16px;
}
.page-activity .fact-k {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}
.page-activity .fact-v {
  margin-top: 6px;
  font-weight: 800;
  font-size: 1.2rem;
}
.page-activity .fact-sub {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.page-activity .fact.span2 {
  grid-column: span 2;
}

/* 3.8) Highlights ---------------------------------------------------------- */
.page-activity .hl-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 740px) {
  .page-activity .hl-grid {
    grid-template-columns: 1fr;
  }
}
.page-activity .hl-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--glass-hair);
}
.page-activity .hl-icn svg {
  display: block;
  width: 18px;
  height: 18px;
  color: #0f172a;
  opacity: 0.9;
  margin-top: 2px;
}
.page-activity .hl-text {
  color: #0f172a;
}

/* 3.9) Prices (dashed) ----------------------------------------------------- */
.page-activity #prices .prices-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 14px;
  list-style: none;
  border: 1px solid var(--glass-hair);
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
  background: #fff !important;
}
.page-activity #prices .price-li {
  padding: 12px 8px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.18);
  background: transparent;
}
.page-activity #prices .price-li:last-child {
  border-bottom: none;
}
.page-activity #prices .pc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.page-activity #prices .pc-pax {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.page-activity #prices .pc-pax-num {
  font-weight: 800;
  font-size: 1.1rem;
}
.page-activity #prices .pc-pax-lbl {
  color: var(--muted);
  font-size: 0.9rem;
}
.page-activity #prices .pc-price {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.page-activity #prices .pc-amount {
  font-weight: 900;
  font-size: 1.4rem;
}
.page-activity #prices .pc-unit {
  font-size: 0.85rem;
  color: var(--muted-2);
}
.page-activity #prices .pc-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* Neutralizza vecchi box prices */
.page-activity .prices-panel,
.page-activity .price-card {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* 3.10) Included / Not included ------------------------------------------ */
.page-activity .inc-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .page-activity .inc-grid {
    grid-template-columns: 1fr;
  }
}
.page-activity .inc-col {
  padding: 14px;
  border: 1px solid var(--glass-hair);
  background: var(--glass-bg);
}
.page-activity .inc-list {
  margin-top: 6px;
  padding-left: 18px;
  line-height: 1.75;
}
.page-activity .inc-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  margin-top: 8px;
}
.page-activity .inc-item {
  list-style: disc;
}
.page-activity .inc-chip {
  border: 1px solid var(--glass-hair);
  background: #fff;
  padding: 6px 10px;
  font-size: 0.92rem;
}
.page-activity .optional-wrap {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--glass-hair);
}

/* 3.11) Requirements ------------------------------------------------------- */
.page-activity .req-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .page-activity .req-cards {
    grid-template-columns: 1fr;
  }
}
.page-activity .req-card {
  padding: 14px;
  border: 1px solid var(--glass-hair);
  background: #fff;
}
.page-activity .req-card-head {
  font-weight: 800;
}
.page-activity .req-card-body {
  margin-top: 6px;
  color: #334155;
  line-height: 1.7;
}

/* 3.12) Itinerary ---------------------------------------------------------- */
.page-activity .it-cable {
  --it-left: 120px;
  position: relative;
  margin-top: 8px;
}
.page-activity .it-cable::before {
  content: "";
  position: absolute;
  left: calc(var(--it-left) * 0.45);
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(30, 41, 59, 0.25);
}
.page-activity .it-row {
  display: grid;
  grid-template-columns: var(--it-left) 1fr;
  gap: 16px;
  position: relative;
  list-style: none;
  padding: 8px 0;
}
.page-activity .it-left {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 16px;
}
.page-activity .it-daylbl {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  background: #fff;
  padding: 4px 8px;
  border: 1px solid var(--glass-hair);
}
.page-activity .it-right {
  border: 1px solid var(--glass-hair);
  background: #fff;
  padding: 12px;
}
.page-activity .it-right .it-title {
  font-weight: 800;
  margin-bottom: 4px;
}
.page-activity .it-right .it-text {
  color: #334155;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .page-activity .it-cable {
    --it-left: 88px;
  }
}
@media (max-width: 520px) {
  .page-activity .it-cable {
    --it-left: 72px;
  }
}

/* 3.13) Reviews ------------------------------------------------------------ */
.page-activity .reviews {
  display: grid;
  gap: 12px;
}
.page-activity .review-dashed {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: transparent;
  padding: 12px 14px;
}
.page-activity .rev-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #0f172a;
}
.page-activity .rev-author {
  margin-top: 4px;
  color: #475569;
  font-weight: 600;
}

/* 3.14) Lightbox + a11y ---------------------------------------------------- */
.page-activity .lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}
.page-activity .lb.lb--blur {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.page-activity .lb-img {
  max-height: 85vh;
  max-width: 92vw;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.page-activity .lb-close,
.page-activity .lb-prev,
.page-activity .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
}
.page-activity .lb-close {
  top: 24px;
  right: 24px;
}
.page-activity .lb-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.page-activity .lb-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.page-activity .thumb:focus-visible,
.page-activity .lb-close:focus-visible,
.page-activity .lb-prev:focus-visible,
.page-activity .lb-next:focus-visible,
.page-activity .media-controls .ctrl:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

/* 3.15) Gear --------------------------------------------------------------- */
.page-activity .gear-cats {
  display: grid;
  gap: 14px;
}
.page-activity .gear-cat {
  padding: 14px;
  border: 1px solid var(--glass-hair);
  background: var(--glass-bg);
}
.page-activity .gear-check {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.page-activity .gear-row {
  padding: 8px 10px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: #fff;
}
.page-activity .gear-row-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.page-activity .gear-name {
  font-weight: 800;
}
.page-activity .gear-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.page-activity .gear-notes {
  margin-top: 6px;
  color: #334155;
  line-height: 1.6;
}

/* 3.16) Badges ------------------------------------------------------------- */
.page-activity .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--glass-hair);
  background: #fff;
  white-space: nowrap;
}
.page-activity .tag-req {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.06);
  color: #7f1d1d;
}
.page-activity .tag-prov {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.07);
  color: #064e3b;
}
.page-activity .tag-opt {
  border-color: rgba(100, 116, 139, 0.45);
  background: rgba(100, 116, 139, 0.07);
  color: #334155;
}
.page-activity .tag-rent {
  border-color: rgba(2, 132, 199, 0.5);
  background: rgba(2, 132, 199, 0.07);
  color: #0c4a6e;
}
.page-activity .gear-legend {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-activity .gear-legend .legend-sep {
  opacity: 0.6;
}

/* 3.17) Summary Modal ------------------------------------------------------ */
.summary-modal {
  --modal-glass: var(--glass-bg);
  --modal-hair: var(--glass-hair);
  --modal-ink: #0f172a;
  --modal-muted: #334155;
  width: min(880px, 96vw);
  padding: 22px;
  background: var(--modal-glass);
  border: 1px solid var(--modal-hair);
  color: var(--modal-ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.summary-head {
  margin-bottom: 8px;
}
.summary-sub {
  color: var(--modal-muted);
  margin-top: 2px;
}

/* layout colonne */
.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .summary-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* definition list (riepilogo) */
.summary-dl {
  display: grid;
  gap: 10px;
}
.summary-dl .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  align-items: start;
}
.summary-dl dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  padding-top: 4px;
}
.summary-dl dd {
  color: var(--modal-ink);
}

/* box total */
.summary-total {
  padding: 14px;
  border: 1px solid var(--modal-hair);
  background: #fff;
}
.summary-total .line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}
.summary-total .line + .line {
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
}
.summary-total .line.small span:first-child {
  font-size: 0.85rem;
  color: #475569;
}
.summary-total strong {
  font-size: 1.05rem;
}

/* azioni */
.summary-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* Banner esito */
.summary-banner {
  border: 1px solid var(--modal-hair);
  background: #fff;
  border-left-width: 6px;
  border-radius: 0;
}
.summary-banner .summary-head {
  margin-bottom: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.summary-banner .summary-body {
  padding: 0 14px 14px 14px;
}

/* Successo */
.summary-banner.is-success {
  border-color: rgba(5, 150, 105, 0.45);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.summary-banner.is-success .badge {
  background: #059669;
  color: #fff;
}
.summary-banner.is-success .summary-head h3,
.summary-banner.is-success .summary-sub,
.summary-banner.is-success .summary-body {
  color: #000;
}

/* Errore */
.summary-banner.is-error {
  border-color: rgba(220, 38, 38, 0.4);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.summary-banner.is-error .badge {
  background: #dc2626;
  color: #fff;
}
.summary-banner.is-error .summary-head h3,
.summary-banner.is-error .summary-sub,
.summary-banner.is-error .summary-body {
  color: #000;
}

/* Badge tondo per icona ✓ / ! */
.summary-banner .badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Spinner grande (vetro + accento focus) */
.summary-spinner {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 4px solid #cbd5e1;
  border-top-color: var(--focus);
  animation: summary-spin 0.9s linear infinite;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@keyframes summary-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Overlay (coerenza vetro) */
.page-activity .lb.lb--blur {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.78);
}

/* ==========================================================================
   4) ACTIVITY TYPE PAGE (page-atype)
   - Stile coerente con Activity Show (glass, no rounded)
   - Hero sopra, titolo sotto
   - Griglia attività + “Potrebbe interessarti”
   ========================================================================== */
/* Vars + reset */
.page-atype {
  --atype-glass: rgba(255, 255, 255, 0.58);
  --atype-hair: rgba(15, 23, 42, 0.12);
  --atype-ink: #0f172a;
  --atype-muted: #475569;
  --atype-muted-2: #64748b;
  --atype-focus: #0ea5e9;
  --atype-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  --atype-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.page-atype * {
  border-radius: 0 !important;
}

/* Layout */
.page-atype .atype-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .page-atype .atype-layout {
    grid-template-columns: minmax(0, 2fr) 1fr;
  }
}

/* Hero */
.page-atype .atype-hero {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid var(--atype-hair);
  box-shadow: var(--atype-shadow);
}
.page-atype .atype-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header */
.page-atype .atype-header .atype-title {
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-top: 10px;
  color: var(--atype-ink);
}
.page-atype .atype-header .meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #334155;
  margin-top: 4px;
}

/* Right column glass */
.page-atype .atype-desc {
  background: var(--atype-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--atype-hair);
  padding: 16px;
  color: var(--atype-ink);
  box-shadow: var(--atype-shadow);
}
.page-atype .atype-desc p {
  margin: 0;
  line-height: 1.75;
  color: #334155;
}

/* Sections + divider */
.page-atype .atype-sec {
  margin-top: 28px;
}
.page-atype .atype-sec-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--atype-ink);
}
.page-atype .atype-sep {
  border: 0;
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 23, 42, 0.16),
    transparent
  );
}

/* Grid — larger cards */
.page-atype .grid-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .page-atype .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .page-atype .grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1320px) {
  .page-atype .grid-cards.grid-cards--lg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Card base (glass + shadow) */
.page-atype .card.card--flat.card--glass {
  display: grid;
  grid-template-rows: 220px 1fr; /* bigger media */
  background: #fff;
  border: 1px solid var(--atype-hair);
  box-shadow: var(--atype-shadow);
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  will-change: transform;
}
@media (max-width: 420px) {
  .page-atype .card.card--flat.card--glass {
    grid-template-rows: 200px 1fr;
  }
}

/* .page-atype .card.card--flat.card--glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--atype-shadow-lg);
  border-color: rgba(15, 23, 42, 0.16);
} */

/* Media */
.page-atype .card .card-media {
  overflow: hidden;
  background: #e5e7eb;
  position: relative;
}
.page-atype .card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.page-atype .card.group:hover .card-media img {
  transform: scale(1.06);
}

/* Small chip over media */
.page-atype .card .card-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--atype-hair);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
}

/* Body */
.page-atype .card .card-body {
  padding: 14px;
}
.page-atype .card .card-top {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--atype-muted);
  margin-bottom: 6px;
  font-size: 12px;
}
.page-atype .card .dot {
  opacity: 0.65;
}

/* Title & sub (line clamp for mobile) */
.page-atype .card .card-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--atype-ink);
}
.page-atype .card .card-sub {
  margin-top: 6px;
  color: var(--atype-muted-2);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Line clamp utility (no Tailwind plugin requirement) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Months badges */
.page-atype .months-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.page-atype .month-chip {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  border: 1px solid var(--atype-hair);
  background: #fff;
  color: var(--atype-ink);
  letter-spacing: 0.02em;
}

/* Load more */
.page-atype .atype-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.page-atype .atype-loadmore .btn {
  background: transparent;
  border: 1px solid var(--atype-hair);
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--atype-ink);
  cursor: pointer;
  min-height: 46px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.page-atype .atype-loadmore .btn:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* Suggestions */
.page-atype .atype-suggest {
  margin-top: 34px;
}
.page-atype .atype-suggest .atype-sec-title {
  margin-bottom: 10px;
}

/* Focus */
.page-atype .card:focus-visible,
.page-atype a:focus-visible,
.page-atype button:focus-visible {
  outline: 2px solid var(--atype-focus);
  outline-offset: 2px;
}

/* Touch feedback (mobile) */
@media (hover: none) {
  .page-atype .card.card--flat.card--glass:active {
    transform: translateY(-1px);
    box-shadow: var(--atype-shadow-lg);
  }
}

/* (Opzionale) container un po' più largo */
.page-atype.page-atype--wide {
  /* il max-w-7xl di Tailwind resta, ma questo aumenta un filo lo spazio utile */
  --atype-maxw: 92rem;
}
.page-atype.page-atype--wide .mx-auto.max-w-7xl {
  max-width: var(--atype-maxw, 80rem);
}

/* Griglia XL: 1 col (mobile) → 2 col (>=1024px) → 3 col solo su schermi enormi */
.page-atype .grid-cards.grid-cards--xl {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .page-atype .grid-cards.grid-cards--xl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1536px) {
  /* 3 colonne SOLO su schermi molto larghi */
  .page-atype .grid-cards.grid-cards--xl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card: media molto più alta, responsiva con clamp */
.page-atype .card.card--flat.card--glass {
  grid-template-rows: clamp(200px, 28vw, 340px) 1fr; /* ← più grande su desktop */
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* Media hover sempre morbido */
.page-atype .card .card-media img {
  transition: transform 0.55s ease;
}
.page-atype .card.group:hover .card-media img {
  transform: scale(1.065);
}

/* Tipografia più presente */
.page-atype .card .card-title {
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  font-weight: 900;
}
.page-atype .card .card-sub {
  margin-top: 8px;
  font-size: clamp(0.95rem, 0.9vw, 1rem);
}

/* Body con più respiro su desktop */
.page-atype .card .card-body {
  padding: clamp(12px, 1.4vw, 18px);
}

/* Chip su media leggermente più grande */
.page-atype .card .card-chip {
  font-size: 12px;
  padding: 3px 7px;
}

/* “Load more” allineato al nuovo look */
.page-atype .atype-loadmore .btn {
  padding: 14px 22px;
  font-weight: 900;
}

/* Safety: se qualche vecchia regola rimette 3 col a 1024px, questa vince */
@media (min-width: 1024px) {
  .page-atype .grid-cards.grid-cards--xl {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
