/* Pagina Chi siamo (/team). Palette e font del sito: crema, giallo GiàLoFly,
   marrone scuro, Satoshi. Mobile first: zig-zag e griglie si aprono da 768px. */

.cs_page {
  --cs-cream: #f5f4ee;
  --cs-brown: #3e1a09;
  --cs-yellow: #febb00;
  --cs-yellow-deep: #e5a800;
  --cs-white: #ffffff;
  --cs-soft: #ece8dc;
  color: var(--cs-brown);
  padding-bottom: 24px;
}

.cs_wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.cs_page p {
  color: var(--cs-brown);
}

.cs_title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cs-brown);
  text-align: center;
  margin: 0 auto 14px;
  max-width: 18em;
}

.cs_sub {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  max-width: 34em;
  margin: 0 auto;
  opacity: 0.85;
}

.cs_center {
  text-align: center;
  margin-top: 32px;
}

/* Bottoni */
.cs_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  border: 2px solid var(--cs-brown);
  cursor: pointer;
  text-align: center;
}

.cs_btn:focus-visible,
.cs_coord_link:focus-visible,
.cs_dep:focus-visible {
  outline: 3px solid var(--cs-brown);
  outline-offset: 3px;
}

.cs_btn--solid {
  background: var(--cs-yellow);
  border-color: var(--cs-yellow);
  color: var(--cs-brown);
}

.cs_btn--solid:hover {
  background: var(--cs-yellow-deep);
  border-color: var(--cs-yellow-deep);
  color: var(--cs-brown);
}

.cs_btn--line {
  background: transparent;
  color: var(--cs-brown);
}

.cs_btn--line:hover {
  background: var(--cs-brown);
  color: var(--cs-cream);
}

.cs_btn--dark {
  background: var(--cs-brown);
  color: var(--cs-cream);
}

.cs_btn--dark:hover {
  background: #2a1106;
  color: var(--cs-cream);
}

/* 1. Hero */
.cs_hero {
  text-align: center;
  padding-top: 132px;
  padding-bottom: 72px;
}

.cs_hero_kicker {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-bottom: 18px !important;
  opacity: 0.8;
}

.cs_hero_title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--cs-brown);
  margin: 0 auto;
  max-width: 13em;
}

.cs_circled {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.cs_circle {
  position: absolute;
  left: -7%;
  top: -24%;
  width: 110%;
  height: 150%;
  overflow: visible;
  pointer-events: none;
}

.cs_circle path {
  fill: none;
  stroke: var(--cs-yellow);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: cs-draw 1.1s 0.3s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}

@keyframes cs-draw {
  to { stroke-dashoffset: 0; }
}

.cs_hero_lead {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  max-width: 36em;
  margin: 28px auto 0 !important;
}

.cs_actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* 2. Come funziona */
.cs_steps {
  padding-top: 40px;
  padding-bottom: 56px;
}

.cs_steps_list {
  position: relative;
  margin-top: 40px;
}

.cs_steps_list ol {
  position: relative;
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0;
}

.cs_steps_line {
  display: none;
}

.cs_step {
  display: grid;
  gap: 28px;
  align-items: center;
}

.cs_step_num {
  display: block;
  font-size: 104px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--cs-yellow);
  margin-bottom: 10px;
}

.cs_step_text h3 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cs_step_text p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 26em;
}

.cs_step_photo {
  position: relative;
  margin: 0 auto;
  width: 78%;
  max-width: 360px;
  transform: rotate(2.5deg);
}

.cs_step--flip .cs_step_photo {
  transform: rotate(-2.5deg);
}

.cs_step_photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cs-yellow);
  border-radius: 28px;
  transform: translate(16px, 16px);
}

.cs_step--flip .cs_step_photo::before {
  transform: translate(-16px, 16px);
}

.cs_step_photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
}

/* 3. Coordinatori */
.cs_team {
  padding-top: 64px;
  padding-bottom: 40px;
  scroll-margin-top: 90px;
}

.cs_label {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 32px !important;
  opacity: 0.7;
}

.cs_team_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
}

.cs_coord.is-extra {
  display: none;
}

.cs_team_grid.is-open .cs_coord.is-extra {
  display: block;
}

.cs_coord_link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cs-soft);
  color: var(--cs-white);
}

.cs_coord_link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cs_coord_link::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, rgba(62, 26, 9, 0), rgba(62, 26, 9, 0.78));
}

.cs_coord_link:hover img {
  transform: scale(1.04);
}

.cs_badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  background: var(--cs-yellow);
  color: var(--cs-brown);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

.cs_coord_name {
  position: absolute;
  left: 14px;
  right: 56px;
  bottom: 14px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cs-white);
  z-index: 1;
}

.cs_coord_arrow {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cs-white);
  color: var(--cs-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s ease;
}

.cs_coord_link:hover .cs_coord_arrow {
  background: var(--cs-yellow);
}

/* 4. Prossime partenze */
.cs_deps {
  padding-top: 64px;
  padding-bottom: 64px;
  scroll-margin-top: 90px;
}

.cs_deps_grid {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
}

.cs_dep {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cs-white);
  border-radius: 22px;
  padding: 22px;
  color: var(--cs-brown);
  border: 1px solid var(--cs-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cs_dep:hover {
  color: var(--cs-brown);
  border-color: var(--cs-yellow);
  transform: translateY(-3px);
}

.cs_dep_dates {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.7;
}

.cs_dep_trip {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}

.cs_dep_leader {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 22px;
}

.cs_dep_leader img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cs-white);
  margin-right: -8px;
}

.cs_dep_leader span {
  margin-left: 18px;
}

.cs_dep_foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cs_dep_price {
  font-size: 15px;
  font-weight: 500;
}

.cs_dep_price strong {
  font-size: 20px;
  font-weight: 900;
}

.cs_dep_spots {
  background: var(--cs-yellow);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
}

/* 5. Dicono di noi */
.cs_reviews_wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}

.cs_reviews {
  background: var(--cs-yellow);
  border-radius: 32px;
  padding: 48px 18px 22px;
}

.cs_noi {
  position: relative;
  display: inline-block;
}

.cs_noi img {
  position: absolute;
  left: -30%;
  top: -18%;
  width: 150%;
  height: 140%;
  pointer-events: none;
}

.cs_review_big {
  display: grid;
  background: var(--cs-white);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 32px;
}

.cs_review_photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cs_review_body {
  padding: 24px 22px 26px;
}

.cs_review_who {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

.cs_review_who strong {
  font-weight: 900;
  font-size: 17px;
}

.cs_review_who span {
  opacity: 0.7;
}

.cs_review_body h3 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}

.cs_review_body blockquote {
  margin: 0 0 24px;
}

.cs_review_body blockquote p {
  font-size: 17px;
  line-height: 1.6;
}

.cs_review_list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
}

.cs_review_small {
  background: var(--cs-white);
  border-radius: 20px;
  padding: 22px;
}

.cs_review_head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.3;
}

.cs_review_head strong {
  font-weight: 900;
}

.cs_review_head small {
  font-size: 13px;
  opacity: 0.7;
}

.cs_avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cs-brown);
  color: var(--cs-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
}

.cs_review_small h3 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 16px 0 8px;
}

.cs_review_small p {
  font-size: 15px;
  line-height: 1.55;
}

/* 6. Chiusura */
.cs_close {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.cs_close_title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cs-brown);
  max-width: 12em;
  margin: 0 auto 28px;
}

/* Tablet */
@media (min-width: 768px) {
  .cs_title { font-size: 44px; }
  .cs_hero { padding-top: 170px; padding-bottom: 96px; }
  .cs_hero_title { font-size: 68px; }
  .cs_actions { flex-direction: row; }

  .cs_steps_list ol { gap: 24px; }
  .cs_step {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    min-height: 460px;
  }
  .cs_step--flip .cs_step_text { order: 2; }
  .cs_step_photo { width: 76%; }
  .cs_step_num { font-size: 150px; }
  .cs_step_text h3 { font-size: 34px; }

  .cs_steps_line {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
  }
  .cs_steps_line path {
    fill: none;
    stroke: var(--cs-yellow);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 2 14;
    vector-effect: non-scaling-stroke;
  }

  .cs_team_grid { gap: 18px; }
  .cs_badge { font-size: 13px; top: 14px; left: 14px; padding: 8px 13px; }
  .cs_coord_name { font-size: 30px; left: 20px; bottom: 20px; }
  .cs_coord_arrow { width: 46px; height: 46px; right: 16px; bottom: 16px; }

  .cs_deps_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cs_reviews { padding: 64px 40px 40px; border-radius: 40px; }
  .cs_review_list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

  .cs_close_title { font-size: 54px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .cs_hero_title { font-size: 84px; }
  .cs_team_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .cs_deps_grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .cs_review_big { grid-template-columns: 5fr 7fr; }
  .cs_review_photo { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .cs_review_body { padding: 44px 48px; align-self: center; }
  .cs_review_body h3 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs_circle path { animation: none; stroke-dashoffset: 0; }
  .cs_coord_link img,
  .cs_dep { transition: none; }
}
