/* ==========================================================================
   Etta Walk Up — preview redesign (FASE 1: fondamenta consolidate)
   File unico del redesign: ingloba il vecchio preview-ui.css.
   Caricato dopo css/styles.css in tutte le pagine del preview.
   ========================================================================== */

/* 1. Palette unica, estratta dal logo (illustrazione Diletta + lupo):
   cioccolato + rame + cipria + crema. Le variabili legacy di css/styles.css
   (condiviso col sito live, non modificabile) vengono rimappate qui. */
:root {
  --etta-pine: #5c3f34;
  --etta-night: #2e1f19;
  --etta-mist: #ece2d8;
  --etta-light: #f7f2ec;
  --etta-sun: #b45f3f;
  --etta-ink: #33231c;
  --etta-line: #e2d6cc;

  /* Sul rame (--etta-sun) il testo è sempre chiaro. */
  --etta-on-sun: #fdf6ee;
  /* Accento chiaro leggibile sui fondi scuri (cioccolato/quasi nero). */
  --etta-blush: #d7b7a4;
  --etta-taupe: #96705f;

  --brick: var(--etta-pine);
  --brick-dark: var(--etta-night);
  --ink: var(--etta-ink);
  --sand: var(--etta-light);
  --mud: #7a6257;
  --mud-light: var(--etta-line);
  --shadow-soft: 0 18px 40px rgba(46, 31, 25, 0.13);
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-hand: "Caveat", cursive;
}

/* 2. Gerarchia tipografica unica:
   Barlow Condensed maiuscolo per i titoli, Sora per il corpo. */
body { color: var(--etta-ink); }

h1, h2, .section-title, .hero-content h1,
.card h3, .event-card .event-content h3 {
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.card h3, .event-card .event-content h3 { font-weight: 700; }

/* 3. CTA principali: rame con testo crema, ovunque. */
.cta:not(.secondary):not(.subtle):not(.danger):not(.icon-only):not(.cta-icon):not(.cta-whatsapp-inline) {
  background: var(--etta-sun);
  color: var(--etta-on-sun);
}
.cta:not(.secondary):not(.subtle):not(.danger):not(.icon-only):not(.cta-icon):not(.cta-whatsapp-inline):hover,
.cta:not(.secondary):not(.subtle):not(.danger):not(.icon-only):not(.cta-icon):not(.cta-whatsapp-inline):focus {
  background: #a2502f;
  color: var(--etta-on-sun);
}

/* 4. Base UI (dal vecchio preview-ui.css, palette rimappata). */
header { background: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--etta-pine); outline-offset: 3px; }
.cta, .filter-pill, .menu-toggle, .filters-summary { touch-action: manipulation; }
.event-card { border-color: var(--etta-line); box-shadow: none; }
.home-tromso-offer strong { font-size: clamp(1.25rem, 3vw, 1.8rem); }
.home-tromso-book { cursor: default; background: #e6ebe5; color: var(--etta-pine); }
.preview-detail-lead { max-width: 64ch; }
.preview-detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 16px 0 8px; }
.preview-detail-price span { color: #5a6a63; font-size: .86rem; }
.preview-detail-price strong { color: var(--etta-ink); font-size: 1.3rem; letter-spacing: -.03em; }
.preview-detail-price small { color: #64736c; font-size: .72rem; }
.preview-detail-story { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--etta-line); }
.preview-detail-story summary { color: var(--etta-pine); font-weight: 700; cursor: pointer; }
.preview-detail-story > div { max-width: 68ch; padding: 15px 0; line-height: 1.7; }

/* 5. Home: hero editoriale — testo a sinistra, foto "stampa" a destra
   su sfondo crema. Niente full-bleed, niente overlay scuri. */
.preview-home .hero.hero-editorial {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(66px, 8vw, 120px);
  background: var(--etta-light);
  overflow: hidden;
}
.preview-home .hero-editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}
.preview-home .hero-editorial__copy { max-width: 640px; }
.preview-home .hero-eyebrow-cursive {
  color: var(--etta-sun);
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
}
.preview-home .hero-editorial__copy h1 {
  margin: 12px 0 0;
  color: var(--etta-night);
  font-size: clamp(4.2rem, 8.6vw, 8rem);
  line-height: .88;
  letter-spacing: -.03em;
}
.preview-home .hero-editorial__copy h1 span { color: var(--etta-sun); }
.preview-home .hero-editorial__copy p {
  max-width: 46ch;
  margin: 22px 0 26px;
  color: var(--etta-ink);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}
.preview-home .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.preview-home .hero-actions .cta:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--etta-sun);
  color: var(--etta-on-sun);
  box-shadow: 0 14px 30px rgba(46, 31, 25, .2);
  font-weight: 800;
}
.preview-home .hero-actions .cta-icon { display: none; }
.preview-home .hero-editorial__media {
  position: relative;
  margin: 0;
  transform: rotate(-1.5deg);
}
.preview-home .hero-editorial__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 24px;
  box-shadow: 0 26px 55px rgba(46, 31, 25, .2);
}
.preview-home .hero-editorial__media figcaption {
  margin: 12px 6px 0;
  color: var(--etta-taupe);
  font-size: .85rem;
  text-align: center;
}
.preview-home .home-calendar-poster { display: none; }
.preview-home #calendario-preview {
  position: relative;
  padding: 90px 0;
  background: var(--etta-light);
}
.preview-home #calendario-preview .tagline {
  color: var(--etta-pine);
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
}
.preview-home #calendario-preview .section-title {
  max-width: 14ch;
  color: var(--etta-night);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .95;
}
.preview-home .home-quick-filters { margin-top: 26px; }
.preview-home .home-filter { border-radius: 8px; }
.preview-home .event-card { border: 0; box-shadow: 0 18px 32px rgba(46, 31, 25, .12); }

/* 6. Calendario: titolo forte, poi immagini dei viaggi. */
body:not(.preview-home) main.section {
  background: var(--etta-light);
}
body:not(.preview-home) main.section > .container > .tagline { color: var(--etta-sun); text-transform: none; letter-spacing: 0; }
body:not(.preview-home) main.section > .container > .section-title {
  text-transform: uppercase;
}
.event-card .event-content h3 { font-weight: 700; text-wrap: balance; }
.event-card .event-photo { background: var(--etta-mist); }

/* 7. Scheda escursione: hero con la cover dell'evento. */
#detail-hero {
  isolation: isolate;
  background-color: var(--etta-night);
  background-image: linear-gradient(90deg, rgba(6,31,25,.94), rgba(6,31,25,.66) 62%, rgba(6,31,25,.18)), var(--preview-cover);
  background-size: cover;
  background-position: center;
  color: #fff;
}
#detail-hero .section-title {
  color: #fff;
  font-size: clamp(3.5rem, 7vw, 6.4rem);
  line-height: .92;
}
#detail-hero .tagline { color: var(--etta-blush); text-transform: none; letter-spacing: 0; }
#detail-hero .multiday-hero-shell { background: transparent; }
#detail-hero .multiday-hero-subtitle,
#detail-hero .preview-detail-lead { color: #fff; }
#detail-hero .multiday-chip,
#detail-hero .detail-pills .pill { border-color: rgba(255,255,255,.38); color: #fff; background: rgba(9,35,28,.5); }
#detail-hero .multiday-hero-media,
#detail-hero .detail-hero-media { display: none; }

/* Le locandine portano già il titolo stampato: i dettagli stanno accanto o sotto. */
#detail-hero.preview-poster-hero {
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--etta-pine);
}
#detail-hero.preview-poster-hero > .container {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0;
  width: 100%;
  max-width: 1300px;
  padding: 0;
}
#detail-hero.preview-poster-hero .detail-hero-grid { display: contents; }
#detail-hero.preview-poster-hero .detail-hero-media {
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--etta-night);
}
#detail-hero.preview-poster-hero .detail-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
#detail-hero.preview-poster-hero .detail-hero-head {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: clamp(32px, 5vw, 75px) clamp(25px, 5vw, 75px) 15px;
  background: var(--etta-pine);
}
#detail-hero.preview-poster-hero .detail-hero-head .section-title {
  max-width: 14ch;
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: .94;
  overflow-wrap: anywhere;
}
#detail-hero.preview-poster-hero .detail-hero-content {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0 clamp(25px, 5vw, 75px) clamp(32px, 5vw, 75px);
  background: var(--etta-pine);
}
#detail-hero.preview-poster-hero .detail-pills { order: 0; }
#detail-hero.preview-poster-hero .preview-detail-lead { order: 1; max-width: 48ch; margin: 0; line-height: 1.5; }
#detail-hero.preview-poster-hero .detail-cta { order: 2; margin: 0; }
#detail-hero.preview-poster-hero .detail-mini,
#detail-hero.preview-poster-hero .preview-detail-story { order: 3; }
#detail-hero.preview-poster-hero .preview-detail-story { margin: 0; }

/* 8. Mobile (max-width: 820px). Blocco unico: fonde le due media query del
   vecchio preview-ui.css (che si correggevano a vicenda) con quella di
   preview-v2.css; in caso di conflitto valgono le regole più in basso. */
@media (max-width: 820px) {
  html, body { overflow-x: clip; }
  header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--etta-line); }
  header .navbar { min-height: 66px; padding-block: 6px; }
  header .brand img { width: 48px; height: 48px; object-fit: contain; }
  header .brand span { font-size: .9rem; }
  header .navbar > .cta { display: none !important; }
  header .menu-toggle { display: block !important; position: relative !important; top: auto !important; right: auto !important; margin-left: auto; padding: 9px 11px; border: 1px solid var(--etta-line); border-radius: 10px; background: var(--etta-light); box-shadow: none !important; z-index: 2; }
  header .menu-toggle span { background: var(--etta-ink); }
  .side-menu { width: min(340px, 86vw); padding-top: max(26px, env(safe-area-inset-top)); overscroll-behavior: contain; }
  .mobile-fast-nav, .whatsapp-float { display: none !important; }
  body { padding-bottom: 0 !important; }
  .hero-actions { gap: 0; }
  .hero-controls { bottom: 8px; left: 8px; }
  .hero-nav { width: 34px; height: 34px; }
  html.calendar-card-snap-active { scroll-snap-type: none !important; }
  main.section > .container > .tagline { margin-bottom: 8px; font-size: .7rem; letter-spacing: .08em; }
  main.section > .container > .section-title { margin-bottom: 10px; }
  main.section > .container > .lead { margin-bottom: 18px; font-size: .92rem; line-height: 1.5; }
  .filters { margin: 0 0 18px; }
  .filters-summary { min-height: 48px; border-radius: 11px; box-shadow: none; }
  #event-grid.event-grid, .calendar-preview .event-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-auto-flow: row !important; gap: 12px !important; width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
  #event-grid .event-card, .calendar-preview .event-card, .event-card.live-event-card { display: grid !important; grid-template-columns: minmax(0, 1fr) 116px; width: 100% !important; height: auto !important; min-height: 0 !important; border-radius: 13px; scroll-snap-align: none !important; }
  .event-card .event-photo { grid-column: 2; grid-row: 1; display: block !important; align-self: stretch; width: calc(100% - 16px) !important; min-width: 0 !important; max-width: none !important; min-height: 0 !important; height: auto !important; aspect-ratio: auto !important; margin: 8px !important; overflow: hidden; border-radius: 8px; background: var(--etta-light); }
  .event-card .event-photo img, #event-grid .live-event-card .event-photo img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center top; }
  .event-card .event-content, #event-grid .event-content { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 0; padding: 12px 6px 12px 13px; }
  .event-card .event-date-inline { position: static; width: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: var(--etta-pine); }
  .event-card .event-content h3 { display: -webkit-box; min-height: 0; margin: 0; font-size: .94rem; line-height: 1.25; -webkit-line-clamp: 3; text-wrap: pretty; }
  .event-card .event-content p { display: none; }
  .event-card .event-tags { min-height: 0; margin: 0; gap: 4px; }
  .event-card .event-tag { padding: 3px 5px; border-radius: 5px; font-size: .64rem; line-height: 1.2; }
  .event-card .event-tag svg { width: 11px; height: 11px; }
  .event-card .event-tag:nth-child(n+3), .event-card .event-signals { display: none; }
  .event-card .event-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: auto 0 0; }
  .event-card .event-price { min-height: 0; justify-content: flex-start; font-size: .96rem; line-height: 1.1; }
  .event-card .event-price-note { display: none !important; }
  .event-card .event-actions { width: 100%; margin: 0; }
  .event-card .event-actions .cta { min-width: 0; min-height: 34px; padding: 6px 9px; border-radius: 7px; font-size: .72rem; }
  .event-card .event-actions .cta:not(.secondary) { display: none !important; }
  .event-card .event-actions .cta.secondary { display: inline-flex !important; align-items: center; justify-content: center; width: 100%; flex: 1; min-width: 0 !important; }
  #detail-hero { padding: 22px 0 25px; }
  #detail-hero .detail-hero-head { margin: 0 0 13px; }
  #detail-hero .detail-hero-head .tagline { margin-bottom: 7px; font-size: .7rem; letter-spacing: .07em; }
  #detail-hero .detail-hero-head .section-title { font-size: clamp(1.65rem, 7vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; }
  #detail-hero .detail-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 11px; }
  #detail-hero .detail-hero-content { display: contents; }
  #detail-hero .detail-pills { order: 1; margin: 0; gap: 6px; }
  #detail-hero .detail-pills .pill { padding: 5px 8px; font-size: .72rem; }
  #detail-hero .detail-pills .pill:nth-child(n+4) { display: none; }
  #detail-hero .preview-detail-lead { order: 2; margin: 0; font-size: .9rem; line-height: 1.48; }
  #detail-hero .preview-detail-price { order: 3; margin: 0; }
  #detail-hero .detail-cta { order: 4; margin: 0; }
  #detail-hero .detail-cta .cta { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; border-radius: 10px; }
  #detail-hero .detail-hero-media { order: 5; width: 100%; height: 215px; overflow: hidden; border-radius: 12px; }
  #detail-hero .detail-hero-media img, #detail-hero .detail-hero-media video { height: 100%; width: 100%; max-height: none; border-radius: 12px; object-fit: cover; object-position: center 18%; }
  #detail-hero .guide-badge { order: 6; margin: 0; }
  #detail-hero .preview-detail-story { order: 7; margin: 0; }
  #detail-hero .detail-mini, #detail-hero .commercial-signals, #detail-hero .multiday-hero-card { order: 8; }
  #detail-hero .preview-detail-story > div { font-size: .9rem; }
  #detail-hero .multiday-hero-inner { display: block; }
  #detail-hero .multiday-hero-copy { margin: 0 0 10px; }
  #detail-hero .multiday-hero-copy .tagline { font-size: .7rem; letter-spacing: .07em; }
  #detail-hero .multiday-hero-copy .section-title { font-size: clamp(1.65rem, 7vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; }
  #detail-hero .multiday-hero-layout { display: flex; flex-direction: column; align-items: stretch; gap: 11px; }
  #detail-hero .multiday-hero-meta { display: contents; }
  #detail-hero .multiday-hero-subtitle { order: 1; margin: 0; font-size: .9rem; line-height: 1.48; }
  #detail-hero .multiday-hero-subtitle p { margin: 0; }
  #detail-hero .multiday-chip-row { order: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
  #detail-hero .multiday-chip { padding: 5px 8px; font-size: .72rem; }
  #detail-hero .multiday-chip:nth-child(n+4) { display: none; }
  #detail-hero .multiday-hero-meta .preview-detail-price { order: 3; margin: 0; }
  #detail-hero .multiday-hero-actions { order: 4; margin: 0; }
  #detail-hero .multiday-hero-actions .cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 10px; }
  #detail-hero .multiday-hero-media { order: 5; width: 100%; height: 215px; min-height: 0; overflow: hidden; border-radius: 12px; }
  #detail-hero .multiday-hero-media img, #detail-hero .multiday-hero-media video { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 18%; border-radius: 12px; }
  #detail-hero .multiday-hero-meta .guide-badge, #detail-hero .multiday-hero-meta .event-signals { order: 6; margin: 0; }

  /* Home mobile: hero editoriale impilato, foto sotto il testo. */
  .preview-home .hero.hero-editorial { padding: 40px 0 58px; }
  .preview-home .hero-editorial__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    width: calc(100% - 36px);
  }
  .preview-home .hero-editorial__copy { max-width: 100%; }
  .preview-home .hero-eyebrow-cursive { font-size: 1.45rem; }
  .preview-home .hero-editorial__copy h1 {
    font-size: clamp(3.3rem, 14.5vw, 5.4rem);
    line-height: .88;
    letter-spacing: -.025em;
  }
  .preview-home .hero-editorial__copy p { max-width: 34ch; margin: 18px 0 23px; font-size: .97rem; line-height: 1.5; }
  .preview-home .hero-actions .cta:first-child { width: 100%; min-height: 53px; border-radius: 9px; font-size: .94rem; }
  .preview-home .hero-editorial__media { transform: none; }
  .preview-home .hero-editorial__media img { border-width: 7px; border-radius: 18px; }
  .preview-home #calendario-preview { padding: 64px 0; }
  .preview-home #calendario-preview .section-title { font-size: 3.6rem; }

  /* Calendario mobile */
  body:not(.preview-home) main.section { padding: 0 0 60px; }
  body:not(.preview-home) main.section > .container { padding-top: 30px; }
  body:not(.preview-home) main.section > .container > .tagline { color: var(--etta-pine); }
  body:not(.preview-home) main.section > .container > .section-title {
    max-width: 100%;
    color: var(--etta-night);
    font-size: clamp(2.9rem, 12vw, 4rem);
    line-height: .94;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
  }
  body:not(.preview-home) main.section > .container > .lead { max-width: 34ch; }
  #event-grid.event-grid { gap: 20px !important; }
  #event-grid .event-card {
    display: flex !important;
    flex-direction: column;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(16,40,33,.1);
  }
  #event-grid .event-card .event-photo {
    order: 0;
    width: 100% !important;
    height: 225px !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }
  #event-grid .event-card .event-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  #event-grid .event-card .event-content { order: 1; width: 100%; padding: 17px 18px 19px; gap: 7px; }
  #event-grid .event-card .event-date-inline { font-size: .77rem; }
  #event-grid .event-card .event-content h3 { font-size: 1.25rem; line-height: 1.22; }
  #event-grid .event-card .event-tag { font-size: .72rem; padding: 5px 7px; }
  #event-grid .event-card .event-footer { flex-direction: row; align-items: center; gap: 10px; margin-top: 5px; }
  #event-grid .event-card .event-price { font-size: 1.15rem; }
  #event-grid .event-card .event-actions { width: auto; margin-left: auto; }
  #event-grid .event-card .event-actions .cta.secondary { min-width: 105px !important; min-height: 42px; }

  /* Scheda escursione mobile */
  #detail-hero,
  #detail-hero .multiday-hero-shell { min-height: calc(100svh - 70px); }
  #detail-hero { display: flex; align-items: end; padding: 60px 0 28px; background-image: linear-gradient(0deg, rgba(6,31,25,.96), rgba(6,31,25,.6) 55%, rgba(6,31,25,.13)), var(--preview-cover); background-position: center; }
  #detail-hero .multiday-hero-shell { display: flex; align-items: end; width: 100%; padding: 0; }
  #detail-hero .multiday-hero-inner { width: 100%; }
  #detail-hero .multiday-hero-copy .tagline,
  #detail-hero .detail-hero-head .tagline { color: var(--etta-blush); font-size: .82rem; }
  #detail-hero .multiday-hero-copy .section-title,
  #detail-hero .detail-hero-head .section-title {
    max-width: 12ch;
    color: #fff;
    font-size: clamp(3.3rem, 14vw, 5.7rem);
    line-height: .89;
    letter-spacing: -.02em;
  }
  #detail-hero .detail-commercial-signals { display: none; }
  #detail-hero .multiday-hero-subtitle { font-size: .97rem; line-height: 1.45; }
  #detail-hero .multiday-chip-row { margin: 7px 0 0; }
  #detail-hero .multiday-chip { font-size: .72rem; }
  #detail-hero .multiday-hero-actions .cta,
  #detail-hero .detail-cta .cta { min-height: 50px; border-radius: 9px; font-weight: 800; }
  #detail-hero .guide-badge { display: none; }
  #detail-hero .preview-detail-story { color: #fff; }

  /* Scheda con locandina: poster sopra, dettagli sotto. */
  #detail-hero.preview-poster-hero > .container { display: flex; flex-direction: column; }
  #detail-hero.preview-poster-hero .detail-hero-media { order: 0; height: auto; max-height: none; }
  #detail-hero.preview-poster-hero .detail-hero-media img { width: 100%; height: auto; object-fit: contain; }
  #detail-hero.preview-poster-hero .detail-hero-head { order: 1; padding: 25px 18px 12px; }
  #detail-hero.preview-poster-hero .detail-hero-head .section-title {
    max-width: 100%;
    font-size: clamp(2.8rem, 11vw, 4.2rem);
    line-height: .95;
  }
  #detail-hero.preview-poster-hero .detail-hero-content { order: 2; gap: 18px; padding: 0 18px 30px; }
  #detail-hero.preview-poster-hero .detail-pills { display: flex; flex-wrap: wrap; gap: 7px; }
  #detail-hero.preview-poster-hero .preview-detail-lead { font-size: .97rem; }
  #detail-hero.preview-poster-hero .detail-cta .cta { width: 100%; }
}

@media (max-width: 390px) {
  #event-grid .event-card, .event-card.live-event-card { grid-template-columns: minmax(0, 1fr) 104px; }
  .event-card .event-content h3 { font-size: .87rem; }
}

@media (prefers-reduced-motion: reduce) {
  .preview-home .hero *, #detail-hero * { animation: none !important; transition-duration: .01ms !important; }
  .hero-media *, .event-card *, .cta { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   9. FASE 2 — Card evento "biglietto" (data grande sulla foto, guida,
      badge di stato) e filtri per mese sopra la griglia del calendario.
   ========================================================================== */

/* Filtri per mese: pill compatte sopra la griglia. */
.month-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 24px;
}
.month-filters[hidden] { display: none; }
.month-filter {
  border: 1px solid var(--etta-line);
  border-radius: 999px;
  background: #fff;
  color: var(--etta-ink);
  padding: 9px 16px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  cursor: pointer;
  transition: all .2s ease;
}
.month-filter:hover { border-color: var(--etta-pine); color: var(--etta-pine); }
.month-filter.is-active {
  background: var(--etta-pine);
  border-color: var(--etta-pine);
  color: #fff;
  box-shadow: 0 8px 16px rgba(46, 31, 25, .2);
}

/* Calendario desktop: biglietti compatti. Sotto i 1200px una colonna,
   da 1200px due colonne. */
#event-grid.event-grid {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}
@media (min-width: 1200px) {
  #event-grid.event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#event-grid .event-card.live-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--etta-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(46, 31, 25, .1);
}
/* Strappo del biglietto: due tacche circolari sul bordo della "perforazione". */
#event-grid .event-card.live-event-card::before,
#event-grid .event-card.live-event-card::after {
  content: "";
  position: absolute;
  left: 201px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 1px solid var(--etta-line);
  border-radius: 50%;
  background: var(--etta-light);
}
#event-grid .event-card.live-event-card::before { top: -12px; }
#event-grid .event-card.live-event-card::after { bottom: -12px; }
#event-grid .event-card .event-photo {
  margin: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: var(--etta-mist);
}
#event-grid .event-card .event-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 30%;
}

/* Data grande stile biglietto, sopra la foto. */
.ticket-date {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px 7px;
  border-radius: 11px;
  background: var(--etta-sun);
  color: var(--etta-on-sun);
  box-shadow: 0 10px 22px rgba(46, 31, 25, .3);
  font-family: var(--font-display);
  line-height: .92;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}
.ticket-date-weekday { font-size: .7rem; font-weight: 700; letter-spacing: .22em; }
.ticket-date-day { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.ticket-date-month { font-size: .9rem; font-weight: 700; letter-spacing: .14em; }

/* Pannello chiaro a destra con la "perforazione" da biglietto. */
#event-grid .event-card .event-content {
  gap: 8px;
  padding: 18px 20px 16px;
  border-left: 2px dashed var(--etta-line);
}
#event-grid .event-card .event-content h3 {
  font-size: 1.26rem;
  line-height: 1.05;
}
/* Nel biglietto compatto la descrizione non serve: titolo, tag, guida, prezzo. */
#event-grid .event-card .event-content > p { display: none; }
#event-grid .event-card .event-tags { flex-wrap: nowrap; overflow: hidden; }
#event-grid .event-card .event-signals { margin-top: 2px; }
#event-grid .event-card .event-footer { margin-top: auto; padding-top: 4px; }
#event-grid .event-card .event-footer .event-actions a { min-width: 100px; }
#event-grid .event-card .event-price {
  min-height: 0;
  color: var(--etta-night);
  font-size: 1.25rem;
}

/* Riga guida con avatar tondo. */
.ticket-guide {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--etta-pine);
}
.ticket-guide img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--etta-sun);
  background: var(--etta-mist);
}

/* Badge di stato: ultimi posti / confermata / aperta. */
.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 27px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.ticket-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.ticket-badge--confirmed { background: var(--etta-pine); color: var(--etta-on-sun); }
.ticket-badge--last { background: var(--etta-sun); color: var(--etta-on-sun); }
.ticket-badge--open { background: var(--etta-taupe); color: var(--etta-on-sun); }

@media (max-width: 820px) {
  /* FASE 2 mobile: il biglietto resta verticale (foto sopra, info sotto). */
  /* Override del vecchio layout compatto "testo + foto stretta" della sezione 8:
     la card torna una colonna unica con la locandina sopra. */
  #event-grid .event-card.live-event-card::before,
  #event-grid .event-card.live-event-card::after { content: none; }
  #event-grid .event-card .event-content {
    border-left: 0;
    border-top: 2px dashed var(--etta-line);
  }
  #event-grid .event-card, .calendar-preview .event-card, .event-card.live-event-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .event-card .event-photo, #event-grid .event-card .event-photo {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 13px 13px 0 0;
  }
  .event-card .event-content, #event-grid .event-content {
    grid-column: 1;
    grid-row: 2;
    padding: 14px 15px 15px;
  }
  /* Con la card verticale c'è spazio: terzo tag e badge di stato visibili. */
  .event-card .event-tag:nth-child(3) { display: inline-flex; }
  .calendar-preview .event-card .event-signals { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
  .month-filters {
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -4px 16px;
    padding: 0 4px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .month-filters::-webkit-scrollbar { display: none; }
  .month-filter {
    flex: 0 0 auto;
    padding: 8px 13px;
    font-size: .74rem;
  }
  .ticket-date {
    top: 12px;
    left: 12px;
    padding: 8px 12px 7px;
    border-radius: 10px;
  }
  .ticket-date-day { font-size: 1.9rem; }
  .ticket-date-month { font-size: .85rem; }
  .ticket-date-weekday { font-size: .66rem; }
  #event-grid .event-card .event-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 0;
  }
  .ticket-badge {
    min-height: 24px;
    padding: 5px 10px;
    font-size: .64rem;
  }
  #event-grid .event-card .ticket-guide { font-size: .8rem; }
  #event-grid .event-card .ticket-guide img { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .month-filter { transition: none; }
}

/* ==========================================================================
   10. FASE 3 — Manifesto in home + scheda escursione riordinata (stile SGT).
   ========================================================================== */

/* 10a. Manifesto: parola gigante in outline dietro la frase di Diletta. */
.home-manifesto {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 0;
  background: var(--etta-mist);
}
.home-manifesto__word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(6rem, 24vw, 21rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(92, 63, 52, .16);
  user-select: none;
  pointer-events: none;
}
.home-manifesto__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.home-manifesto__text {
  margin: 0;
  color: var(--etta-night);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.home-manifesto__hl {
  background: linear-gradient(transparent 58%, var(--etta-blush) 58%, var(--etta-blush) 92%, transparent 92%);
  padding: 0 .08em;
}
.home-manifesto__signature {
  margin: 26px 0 0;
  color: var(--etta-sun);
  font-family: var(--font-hand);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* 10b. Hero scheda: niente titolo gigante duplicato della locandina.
   Il titolo resta per SEO/screen reader, ma ridotto a etichetta. */
#detail-hero.preview-poster-hero .detail-hero-head .section-title.detail-hero-title {
  max-width: 100%;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
}
#detail-hero.preview-poster-hero .detail-hero-head .detail-keydate {
  margin: 14px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
#detail-hero.preview-poster-hero .detail-hero-head .detail-keyplace {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--etta-blush);
  font-size: 1.02rem;
  font-weight: 600;
}
#detail-hero.preview-poster-hero .detail-hero-head .detail-keyplace svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* 10c. Il racconto: colonna editoriale leggibile, subito dopo l'hero. */
.detail-story-wrap { padding-top: 34px; }
.detail-story {
  max-width: 65ch;
  margin: 0 auto;
  padding: 0 4px;
}
.detail-story > .tagline {
  color: var(--etta-pine);
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
}
.detail-story > h2 {
  margin: 8px 0 20px;
  color: var(--etta-night);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: .95;
}
.detail-story__text {
  color: var(--etta-ink);
  font-size: 1.05rem;
  line-height: 1.78;
}
.detail-story__text p { margin: 0 0 1.15em; }
.detail-story__text strong { color: var(--etta-pine); font-weight: 700; }
.detail-story__text hr {
  width: 130px;
  height: 0;
  margin: 30px auto;
  border: 0;
  border-top: 2px dashed var(--etta-sun);
  background: transparent;
}
.detail-story__text ul { margin: 0 0 1.15em; padding-left: 1.2em; }
.detail-story__text li { margin-bottom: .35em; }

/* 10d. Pannello prenotazione in chiusura: data, prezzo grande, CTA. */
.booking-panel-wrap { padding: 18px 0 8px; }
.booking-panel {
  padding: clamp(26px, 4vw, 44px);
  border-radius: 18px;
  background: var(--etta-pine);
  box-shadow: 0 18px 40px rgba(46, 31, 25, .24);
}
.booking-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
}
.booking-panel__head-copy .tagline {
  color: var(--etta-blush);
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
}
.booking-panel__head-copy h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: .95;
}
.booking-panel__date {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  font-weight: 600;
}
.booking-panel__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.booking-panel__price small {
  color: rgba(255, 255, 255, .65);
  font-size: .78rem;
}
.booking-panel__price strong {
  color: var(--etta-blush);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: .9;
}
.booking-panel .ticket-grid { margin-top: 24px; }
.booking-panel__actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.booking-panel__actions .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(320px, 100%);
  min-height: 56px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .home-manifesto { padding: 64px 0; }
  .home-manifesto__word {
    top: 18px;
    transform: translateX(-50%);
    font-size: clamp(4.6rem, 26vw, 8rem);
  }
  .home-manifesto__inner { padding-top: 52px; }
  .home-manifesto__text { font-size: clamp(1.7rem, 7.6vw, 2.3rem); }
  .home-manifesto__signature { margin-top: 20px; font-size: 1.35rem; }

  #detail-hero.preview-poster-hero .detail-hero-head .section-title.detail-hero-title {
    font-size: .92rem;
  }
  #detail-hero.preview-poster-hero .detail-hero-head .detail-keydate {
    margin-top: 10px;
    font-size: clamp(2rem, 9.4vw, 3rem);
  }
  #detail-hero.preview-poster-hero .detail-hero-head .detail-keyplace {
    margin-top: 10px;
    font-size: .92rem;
  }

  .detail-story-wrap { padding-top: 26px; }
  .detail-story > h2 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .detail-story__text { font-size: .98rem; line-height: 1.72; }

  .booking-panel { border-radius: 16px; }
  .booking-panel__head { flex-direction: column; align-items: flex-start; }
  .booking-panel__price { align-items: flex-start; text-align: left; }
  .booking-panel__price strong { font-size: 3.2rem; }
  .booking-panel__actions .cta { width: 100%; }
}


/* ============================================================
   11) FASE 4 — Schede tecniche sobrie (Percorso / Logistica /
      Equipaggiamento) + font titoli unico
   ============================================================ */

/* --- Tech panels (pagina escursione, flusso standard) --- */

#detail-body .tech-panel__eyebrow {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--etta-sun);
  margin-bottom: 6px;
}

#detail-body .tech-rows {
  display: flex;
  flex-direction: column;
}

#detail-body .tech-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--etta-line);
}

#detail-body .tech-row:first-child {
  border-top: 0;
  padding-top: 6px;
}

#detail-body .tech-row__icon {
  flex: 0 0 auto;
  align-self: center;
  color: var(--etta-sun);
  display: inline-flex;
}

#detail-body .tech-row__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

#detail-body .tech-row__label {
  flex: 0 0 130px;
  font-family: "Sora", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--etta-taupe);
}

#detail-body .tech-row__value {
  font-weight: 600;
  font-size: .95rem;
  color: var(--etta-ink);
  line-height: 1.5;
}

#detail-body .tech-row--note .tech-row__value {
  font-weight: 400;
  line-height: 1.55;
  color: var(--mud);
}

/* Equipaggiamento: due colonne con check lineari, niente emoji */

#detail-body .tech-equip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#detail-body .tech-equip__title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--etta-pine);
  margin-bottom: 8px;
}

#detail-body .tech-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#detail-body .tech-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--etta-ink);
}

#detail-body .tech-check-list li svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--etta-sun);
}

@media (max-width: 640px) {
  #detail-body .tech-equip { grid-template-columns: 1fr; }
  #detail-body .tech-row { flex-wrap: wrap; gap: 4px 10px; }
  #detail-body .tech-row__label { flex: 0 0 auto; }
}

/* --- Font titoli unico: Barlow Condensed ovunque ---
   Copre i titoli che styles.css imposta in "DM Serif Display"
   con selettori class-scoped: l'!important e' voluto. */

h1, h2, h3, h4,
.section-title,
.hero-content h1,
.reviews-page-intro h1,
.reviews-page-cta h2,
.reviews-summary strong,
.archive-story-card h2,
.home-adventure-copy h2,
.home-iceland-copy h2 {
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif !important;
}
