/* Homepage — aligned to Figma frame "Home page" (435:179) */

.page-home {
  --content-w: 1030px;
  --hero-w: 1200px;
  --section-gap: 108px;
  --inner-gap: 48px;
  overflow-x: clip;
}

.page-home .container-hero {
  width: min(var(--hero-w), 100% - (var(--container-pad) * 2));
  margin-inline: auto;
}

.page-home .container-content {
  width: min(var(--content-w), 100% - (var(--container-pad) * 2));
  margin-inline: auto;
}

/* ── Navbar (homepage overrides) ── */
.page-home .navbar-link {
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 400;
  color: #333;
}

.page-home .navbar-link.is-active {
  font-weight: 600;
  color: #fff;
}

.page-home .navbar-links {
  min-height: 65px;
  padding: 10px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ── Hero ── */
.page-home .home-hero {
  margin-top: 0;
  padding-top: 24px;
}

.page-home .home-hero .container {
  max-width: none;
}

.page-home .home-hero-box {
  position: relative;
  max-width: none;
  margin-inline: 0;
  border-radius: 50px;
  min-height: 928px;
  /* Figma hero frame: 1200×928, padding 80 vert / 160 oriz, gap 48 */
  padding: 80px 160px;
  /* Fill (dal basso): Radial 100% → Image acquerello 20% sopra */
  background: var(--gradient-hero);
  background-color: #faf6f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.page-home .home-hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: url("assets/figma/homepage-hero.png") center / cover no-repeat;
  opacity: 0.2;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  max-width: 1040px;
}

.page-home .hero-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.page-home .hero-meta-line {
  width: 1px;
  height: 45px;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.page-home .hero-title-img {
  display: block;
  width: min(100%, 1022px);
  height: auto;
  margin: 0;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  margin: 0;
}

.page-home .hero-subtitle {
  margin: 0;
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
}

.page-home .hero-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
}

/* ── Marquee ── */
.page-home .marquee {
  margin-top: 42px;
  min-height: 99px;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.page-home .marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4rem;
  padding: 10px 0;
  will-change: transform;
}

.page-home .marquee-text {
  margin: 0;
  flex-shrink: 0;
  padding: 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #10767b;
  white-space: nowrap;
  line-height: 1.2;
}

@media (min-width: 769px) {
  .page-home .marquee-track {
    animation: home-marquee 42s linear infinite;
  }
}

@keyframes home-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .marquee-track {
    animation: none;
    width: 100%;
    justify-content: center;
  }

  .page-home .marquee-track .marquee-text:nth-child(2) {
    display: none;
  }
}

/* ── Sections ── */
.page-home .home-section {
  padding: var(--section-gap) 0;
}

.page-home .home-section--experience {
  padding-top: var(--section-gap);
}

.page-home .home-section--last {
  padding-bottom: var(--section-gap);
}

.page-home .home-section-header {
  margin-bottom: var(--inner-gap);
}

.page-home .home-section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-home .home-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 7.68px;
  line-height: 1.05;
  color: #333;
}

.page-home .home-h2--multiline {
  line-height: 0.92;
}

.page-home .home-lead {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: #333;
}

.page-home .c-pink { color: #d75062; }
.page-home .c-orange { color: #dd6b20; }
.page-home .c-teal { color: #10767b; }

/* ── Bento (Figma: 624 | 16 | 390, rows 255 + gap + 255 + gap + 255) ── */
.page-home .bento {
  display: grid;
  grid-template-columns: minmax(0, 624fr) 16px minmax(0, 390fr);
  grid-template-rows: 255px 16px 255px 16px 255px;
}

.page-home .bento-item {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 0;
}

.page-home .bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .bento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(51, 51, 51, 0) 0%,
    rgba(51, 51, 51, 0) 55%,
    rgba(51, 51, 51, 0.88) 100%
  );
  pointer-events: none;
}

.page-home .bento-overlay h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.page-home .bento-item--lg {
  grid-column: 1;
  grid-row: 1 / 4;
}

.page-home .bento-item--lg .bento-overlay h3 {
  font-size: 64px;
}

.page-home .bento-item--workshop {
  grid-column: 3;
  grid-row: 1;
}

.page-home .bento-item--talks {
  grid-column: 3;
  grid-row: 3;
}

.page-home .bento-item--sm .bento-overlay h3 {
  font-size: 48px;
}

.page-home .bento-item--musica {
  grid-column: 1;
  grid-row: 5;
}

.page-home .bento-item--yoga {
  grid-column: 3;
  grid-row: 5;
}

.page-home .bento-item--md .bento-overlay h3 {
  font-size: 48px;
}

/* Food — Figma 435:385: foto + linear gradient sopra + testo */
.page-home .food-figure {
  position: relative;
  margin: var(--inner-gap) 0 0;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 1030 / 387;
  background: #2c2419;
}

.page-home .food-figure__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .food-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--banner-scrim);
}

.page-home .food-figure__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: clamp(28px, 5vw, 52px);
  color: var(--color-white);
}

.page-home .food-figure__icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.page-home .food-figure__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.page-home .food-figure__text {
  margin: 0;
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Tickets (Figma exports) ── */
.page-home .tickets-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
}

.page-home .ticket-figma {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.page-home .ticket-figma__media {
  display: block;
  line-height: 0;
}

.page-home .ticket-figma__media img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .ticket-figma__mobile-pass {
  display: none;
}

.page-home .ticket-figma--wide {
  grid-column: 1 / -1;
  border-radius: 30px;
}

.page-home .ticket-figma--wide .ticket-figma__media img {
  border-radius: 30px;
}

/* Shared Figma export ratios for consistent mobile scaling */
.page-home {
  --ticket-card-ratio: 1095 / 708;
  --artist-card-w: 320px;
  --vendor-banner-ratio: 1088 / 474;
}

/* ── Artists carousel ── */
.page-home .home-section--artists .container-content {
  overflow: visible;
}

.page-home .home-artists {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--container-pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--container-pad));
  padding-inline: var(--container-pad);
  padding-bottom: 4px;
}

.page-home .home-artists::-webkit-scrollbar {
  display: none;
}

.page-home .home-artist-card {
  flex: 0 0 var(--artist-card-w);
  width: var(--artist-card-w);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-home .home-artist-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-home .home-artist-card__head {
  padding: 18px 18px 0;
}

.page-home .home-artist-card__media {
  position: relative;
  margin: 14px 18px 0;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 321 / 304;
  background: #efefef;
}

.page-home .home-artist-card__media--empty {
  background: var(--color-white);
  border: 1px solid rgba(232, 232, 232, 0.9);
}

.page-home .home-artist-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-home .home-artist-card__body {
  padding: 14px 18px 22px;
  flex: 1 1 auto;
}

.page-home .home-artist-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-teal);
}

.page-home .home-artist-card__role {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
}

/* ── Vendor banner: foto + scrim + testo (tutti i breakpoint) ── */
.page-home .vendor-banner {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
  background: #2c2419;
  aspect-ratio: 1088 / 474;
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-home .vendor-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-home .vendor-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.page-home .vendor-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-home .vendor-banner__card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: clamp(28px, 5vw, 52px);
  box-sizing: border-box;
}

.page-home .vendor-banner__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--banner-scrim);
}

.page-home .vendor-banner__icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.page-home .vendor-banner__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.page-home .vendor-banner__title-accent {
  color: var(--color-white);
}

.page-home .vendor-banner__text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.page-home .vendor-banner__cta {
  position: relative;
  z-index: 1;
  flex: none;
  align-self: flex-start;
  width: auto;
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-home {
    --section-gap: 72px;
    --inner-gap: 32px;
  }

  .page-home .navbar-links:not(.is-open) {
    display: none;
  }

  .page-home .navbar-links {
    min-height: 0;
    padding: 16px var(--container-pad) max(24px, env(safe-area-inset-bottom));
    gap: 4px;
    background: var(--color-bg);
    border: none;
    border-radius: 0;
  }

  .page-home .home-hero {
    padding-top: 16px;
  }

  .page-home .home-hero-box {
    min-height: auto;
    padding: 64px 28px;
    border-radius: 28px;
  }

  .page-home .hero-inner {
    gap: 32px;
  }

  .page-home .hero-meta {
    font-size: clamp(14px, 3.8vw, 22px);
    gap: 10px 14px;
  }

  .page-home .hero-meta-line {
    height: 28px;
  }

  .page-home .hero-copy {
    gap: 28px;
  }

  .page-home .hero-subtitle {
    font-size: clamp(16px, 4.2vw, 22px);
    max-width: none;
    line-height: 1.45;
  }

  .page-home .hero-actions {
    margin-top: 28px;
    gap: 12px;
  }

  .page-home .hero-actions .btn-white,
  .page-home .hero-actions .btn-outline-white {
    flex: 1 1 auto;
    justify-content: center;
  }

  .page-home .home-h2 {
    letter-spacing: 0.05em;
    font-size: clamp(30px, 7vw, 48px);
  }

  .page-home .home-section-header--row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .page-home .btn-outline-dark {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .page-home .marquee {
    margin-top: 28px;
    min-height: 72px;
  }

  .page-home .marquee-track {
    animation: home-marquee 58s linear infinite;
    width: max-content;
    flex-wrap: nowrap;
    gap: 3rem;
  }

  .page-home .marquee-track .marquee-text:nth-child(2) {
    display: block;
  }

  .page-home .marquee-text {
    font-size: clamp(22px, 5.5vw, 32px);
    white-space: nowrap;
    text-align: left;
    padding: 12px 0;
  }

  .page-home .tickets-preview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-home .home-artists {
    --artist-card-w: min(300px, calc(100vw - 56px));
  }

  /* Tickets: uniform card height on mobile */
  .page-home .ticket-figma {
    position: relative;
    width: 100%;
    aspect-ratio: var(--ticket-card-ratio);
    line-height: normal;
  }

  .page-home .ticket-figma__media {
    position: absolute;
    inset: 0;
  }

  .page-home .ticket-figma__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .page-home .ticket-figma--wide {
    grid-column: auto;
  }

  .page-home .ticket-figma--wide .ticket-figma__media {
    display: none;
  }

  .page-home .ticket-figma__mobile-pass {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: clamp(18px, 5vw, 28px);
    box-sizing: border-box;
    background: var(--color-white);
    border: 1px solid rgba(214, 158, 46, 0.25);
    border-radius: inherit;
  }

  .page-home .ticket-figma__price {
    font-family: var(--font-display);
    font-size: clamp(44px, 12vw, 64px);
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
  }

  .page-home .ticket-figma__days {
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: clamp(14px, 3.6vw, 18px);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
  }

  .page-home .ticket-figma__name {
    margin: auto 0;
    padding: 12px 0;
    font-family: var(--font-display);
    font-size: clamp(24px, 6.5vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    color: var(--color-text);
  }

  .page-home .ticket-figma__btn {
    align-self: flex-start;
    margin-top: auto;
  }

  .page-home .food-figure,
  .page-home .ticket-figma--wide {
    border-radius: 20px;
  }
  .page-home .home-section--last .container-content {
    padding-inline: var(--container-pad);
  }

  .page-home .vendor-banner {
    aspect-ratio: auto;
    min-height: clamp(300px, 92vw, 360px);
    border-radius: 24px;
  }

  .page-home .vendor-banner__media img {
    object-position: 72% center;
  }

  .page-home .vendor-banner__card {
    padding: 24px 20px;
    justify-content: flex-end;
    gap: 10px;
  }

  .page-home .vendor-banner__title,
  .page-home .vendor-banner__text {
    flex-shrink: 1;
    min-width: 0;
  }

  .page-home .vendor-banner__cta {
    flex-shrink: 0;
  }

  .page-home .vendor-banner__card::before {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.72) 42%,
      rgba(0, 0, 0, 0.28) 62%,
      transparent 82%
    );
  }

  .page-home .vendor-banner__title {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.1;
  }

  .page-home .vendor-banner__text {
    max-width: none;
    font-size: 15px;
    line-height: 1.45;
  }

  .page-home .vendor-banner__cta {
    margin-top: 6px;
  }

  .page-home .food-figure,
  .page-home .ticket-figma--wide {
    border-radius: 20px;
  }

  .page-home .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }

  .page-home .bento-item--lg,
  .page-home .bento-item--workshop,
  .page-home .bento-item--talks,
  .page-home .bento-item--musica,
  .page-home .bento-item--yoga {
    grid-column: auto;
    grid-row: auto;
  }

  .page-home .bento-item {
    min-height: 220px;
    border-radius: 20px;
  }

  .page-home .bento-item--lg {
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .page-home .bento-item--lg .bento-overlay h3 {
    font-size: clamp(32px, 5vw, 56px);
  }

  .page-home .bento-item--sm .bento-overlay h3,
  .page-home .bento-item--md .bento-overlay h3 {
    font-size: clamp(24px, 4vw, 40px);
  }

  .page-home .bento-overlay {
    padding: 16px;
  }
}

@media (max-width: 576px) {
  .page-home {
    --section-gap: 56px;
    --inner-gap: 24px;
    --container-pad: 16px;
  }

  .page-home .navbar-inner {
    min-height: 72px;
  }

  .page-home .home-hero-box {
    padding: 48px 20px;
    border-radius: 24px;
  }

  .page-home .hero-inner {
    gap: 24px;
  }

  .page-home .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .page-home .hero-meta-line {
    display: none;
  }

  .page-home .hero-copy {
    gap: 20px;
  }

  .page-home .hero-subtitle {
    font-size: 16px;
    text-align: left;
  }

  .page-home .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .hero-actions .btn-white,
  .page-home .hero-actions .btn-outline-white {
    width: 100%;
  }

  .page-home .home-h2 {
    font-size: clamp(26px, 8.5vw, 36px);
    letter-spacing: 0.03em;
    line-height: 1.08;
  }

  .page-home .home-h2--multiline {
    line-height: 1.05;
  }

  .page-home .home-lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .page-home .bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-home .bento-item {
    min-height: 200px;
    border-radius: 16px;
  }

  .page-home .bento-item--lg {
    min-height: 240px;
  }

  .page-home .bento-item--lg .bento-overlay h3 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .page-home .bento-item--sm .bento-overlay h3,
  .page-home .bento-item--md .bento-overlay h3 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-home .food-figure,
  .page-home .vendor-banner {
    border-radius: 20px;
  }

  .page-home .vendor-banner {
    min-height: clamp(320px, 105vw, 400px);
  }

  .page-home .vendor-banner__card {
    padding: 20px 16px 18px;
    gap: 8px;
  }

  .page-home .vendor-banner__icon {
    width: 24px;
    height: 24px;
  }

  .page-home .vendor-banner__title {
    font-size: clamp(22px, 6.5vw, 28px);
  }

  .page-home .vendor-banner__text {
    font-size: 14px;
    line-height: 1.4;
  }


  .page-home .ticket-figma {
    border-radius: 16px;
  }

  .page-home .home-artist-card {
    border-radius: 16px;
  }

  .page-home .home-artist-card__media {
    border-radius: 24px;
    margin-inline: 14px;
  }

  .page-home .home-artists {
    --artist-card-w: min(280px, 82vw);
  }

  .page-home .marquee {
    margin-top: 24px;
    min-height: 64px;
  }

  .page-home .marquee-track {
    animation: home-marquee 68s linear infinite;
  }

  .page-home .marquee-text {
    font-size: clamp(20px, 6vw, 26px);
  }

  .page-home .home-section {
    padding: var(--section-gap) 0;
  }
}
