body:not(.page-multiday-detail) #detail-hero.detail-hero {
  padding-top: 34px;
  padding-bottom: 30px;
}

body,
body :where(h1, h2, h3, h4, h5, h6, p, span, a, button, label, input, textarea, select, summary, blockquote, figcaption, strong, small, li, dt, dd) {
  font-family: "Sora", sans-serif !important;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (min-width: 821px) {
  .hero-split-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .hero-content h1 {
    font-size: clamp(2.05rem, 3.7vw, 2.45rem);
  }
}

:where(.container, .card, .banner, .event-card, .event-content, .detail-card, .info-card, .faq-card) > * {
  min-width: 0;
}

body:not(.page-multiday-detail) #detail-hero .detail-hero-head {
  margin-bottom: 16px;
}

@media (min-width: 821px) and (max-width: 1080px) {
  header .nav-links {
    display: none;
  }

  header .menu-toggle {
    position: static;
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  header .navbar {
    justify-content: flex-start;
  }

  header .navbar > .cta {
    flex: 0 0 auto;
  }
}

.page-multiday-detail .multiday-hero-shell {
  padding-top: 34px;
  padding-bottom: 30px;
}

@media (max-width: 820px) {
  body:not(.page-multiday-detail) #detail-hero.detail-hero {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  body:not(.page-multiday-detail) #detail-hero .detail-hero-head {
    margin-bottom: 12px;
  }

  .page-multiday-detail .multiday-hero-shell {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  main > .section:not(#calendario-preview),
  main.section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .hero.hero-split {
    padding-bottom: 42px;
  }

  .section-title {
    margin-bottom: 12px;
  }

  .banner,
  .about-card,
  .info-card,
  .faq-card {
    gap: 18px;
  }

  #community,
  #filosofia,
  #galleria,
  #recensioni {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .page-reviews .reviews-editorial-hero {
    padding-top: 28px;
    padding-bottom: 38px;
  }

  #voce-dal-sentiero {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  #tutte-le-storie {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  footer .footer-grid {
    gap: 16px;
  }

  section p:last-child,
  .event-content > *:last-child {
    margin-bottom: 0;
  }

  #home-event-carousel .event-content h3.event-title--long,
  #event-grid .event-content h3.event-title--long {
    font-size: 0.78rem;
    letter-spacing: -0.018em;
  }

  #home-event-carousel .event-content h3.event-title--very-long {
    font-size: 0.68rem;
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  #event-grid .event-content h3.event-title--very-long {
    font-size: 0.76rem;
    line-height: 1.16;
    letter-spacing: -0.022em;
  }

  .reviews-count-text,
  .reviews-count-text > span {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
  }

  header .navbar > .cta {
    flex: 0 0 auto;
    padding: 9px 13px;
    font-size: 0.78rem;
    line-height: 1.15;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: clamp(1.7rem, 8.5vw, 1.92rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  main.section > .container > h1.section-title {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

@media (max-width: 620px) {
  .terms-table-wrap {
    overflow: visible !important;
  }

  .terms-withdrawal-table,
  .terms-withdrawal-table tbody,
  .terms-withdrawal-table tr,
  .terms-withdrawal-table td {
    display: block;
    width: 100% !important;
  }

  .terms-withdrawal-table thead {
    display: none;
  }

  .terms-withdrawal-table tr {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid rgba(138, 124, 113, 0.22);
    border-radius: 14px;
    background: #fff;
  }

  .terms-withdrawal-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px !important;
    border-bottom: 1px solid rgba(31, 24, 20, 0.08) !important;
    overflow-wrap: anywhere;
  }

  .terms-withdrawal-table td:last-child {
    border-bottom: 0 !important;
  }

  .terms-withdrawal-table td::before {
    color: var(--brick);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .terms-withdrawal-table td:nth-child(1)::before { content: "Quando"; }
  .terms-withdrawal-table td:nth-child(2)::before { content: "Spese"; }
  .terms-withdrawal-table td:nth-child(3)::before { content: "Rimborso"; }
}
