/**
 * Toscana IV – Silvester-Gala 2026; intentionally scoped to the homepage hero.
 * The canvas never catches clicks; only the invitation is interactive.
 */
.toscana-silvester-host {
  position: relative;
}

.toscana-silvester,
.toscana-silvester * {
  box-sizing: border-box;
}

.toscana-silvester {
  --silvester-gold: #e7bd82;
  --silvester-ivory: #f4ebdf;
  position: absolute;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.toscana-silvester[hidden] {
  display: none !important;
}

.toscana-silvester__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.toscana-silvester .toscana-silvester__invitation {
  position: absolute;
  top: 35.5%;
  right: 3.4%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(250px, 23.2%, 350px);
  min-height: 298px;
  padding: clamp(19px, 1.75vw, 29px) clamp(15px, 1.65vw, 26px) 23px;
  overflow: hidden;
  border: 1px solid rgba(236, 189, 127, .78);
  border-radius: 13px;
  background: radial-gradient(ellipse at 50% -30%, rgba(213, 148, 80, .29), transparent 65%), linear-gradient(145deg, rgba(27, 19, 16, .97), rgba(10, 8, 9, .96) 75%);
  box-shadow: 0 14px 38px rgba(11, 8, 7, .52), 0 0 35px rgba(227, 171, 98, .09), inset 0 0 23px rgba(231, 170, 98, .06);
  color: var(--silvester-ivory);
  font-family: Arial, Helvetica, sans-serif;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(27px) scale(.78) rotate(-4deg);
  pointer-events: none;
  transition: transform 850ms cubic-bezier(.16, 1.35, .25, 1), opacity 600ms ease, filter 720ms ease, box-shadow 300ms ease;
}

.toscana-silvester__invitation::after {
  content: '';
  position: absolute;
  inset: -70% auto -70% -125%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 234, 192, .18), transparent);
  transform: rotate(22deg);
  pointer-events: none;
}

.toscana-silvester .toscana-silvester__invitation.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1) rotate(0);
  pointer-events: auto;
}

.toscana-silvester__invitation.is-visible::after {
  animation: toscana-silvester-shimmer 1550ms 500ms ease-out 1 both;
}

.toscana-silvester .toscana-silvester__invitation.is-visible:hover {
  box-shadow: 0 17px 48px rgba(11, 8, 7, .58), 0 0 45px rgba(227, 171, 98, .28), inset 0 0 23px rgba(231, 170, 98, .08);
  transform: translateY(-4px) scale(1.015);
}

.toscana-silvester__invitation:focus-visible {
  outline: 3px solid #fff2c9;
  outline-offset: 4px;
}

.toscana-silvester__title {
  color: #f2d09d;
  font-family: 'Acaro', Georgia, 'Times New Roman', serif;
  font-size: clamp(29px, 2.55vw, 42px);
  line-height: .94;
  letter-spacing: -.03em;
  text-shadow: 0 1px 20px rgba(243, 174, 93, .18);
}
.toscana-silvester__title span {
  display: block;
  margin-top: 1px;
  font-size: 1.09em;
  letter-spacing: -.015em;
}
.toscana-silvester:lang(en) .toscana-silvester__title { font-size: clamp(24px, 2.05vw, 34px); }

.toscana-silvester__year {
  margin: 8px 0 3px .3em;
  color: #f4e9d6;
  font: normal clamp(20px, 1.65vw, 27px)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: .3em;
}

.toscana-silvester__separator {
  display: flex;
  align-items: center;
  width: 82%;
  margin: 12px 0;
}
.toscana-silvester__separator::before,
.toscana-silvester__separator::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #b88550);
}
.toscana-silvester__separator::after { transform: scaleX(-1); }
.toscana-silvester__separator i {
  width: 6px;
  height: 6px;
  margin: 0 9px;
  border: 1px solid #ddb27c;
  transform: rotate(45deg);
}

.toscana-silvester__details {
  color: #d4bc9f;
  font-size: clamp(10px, .77vw, 12px);
  line-height: 1.55;
}
.toscana-silvester__details > span { color: #d59b59; padding: 0 2px; }

.toscana-silvester__performer {
  margin-top: 9px;
  color: #d4bc9f;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.35;
}
.toscana-silvester__performer strong {
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
}

.toscana-silvester__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 17px;
  padding: 12px 10px;
  border-radius: 100px;
  background: linear-gradient(110deg, #e7bd83, #f5d5a0, #e4b478);
  color: #1b1411;
  font-size: clamp(9px, .78vw, 12px);
  font-weight: 700;
  letter-spacing: .09em;
}
.toscana-silvester__invitation:hover .toscana-silvester__cta { background: #ffe4b1; }
.toscana-silvester__cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.toscana-silvester__invitation:hover .toscana-silvester__cta svg { transform: translateX(3px); }

@keyframes toscana-silvester-shimmer {
  from { left: -125%; }
  to { left: 165%; }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .toscana-silvester .toscana-silvester__invitation {
    top: auto;
    right: 4%;
    bottom: 6%;
    width: min(315px, 42vw);
    min-height: 0;
    padding: 19px 19px 18px;
  }
  .toscana-silvester__title { font-size: 36px; }
  .toscana-silvester__year { font-size: 23px; }
  .toscana-silvester__details { font-size: 11px; }
  .toscana-silvester__performer { font-size: 13px; }
  .toscana-silvester__cta { font-size: 10px; }
}

/* Mobile keeps the fireworks but uses a smaller floating card. */
/* Keep the mobile invitation compact; show only title, performer and CTA. */
@media (max-width: 767px) {
  .toscana-silvester .toscana-silvester__invitation {
    top: 18px;
    right: 12px;
    bottom: auto;
    left: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 7px;
    width: auto;
    min-height: 0;
    padding: 13px 15px;
    border-radius: 12px;
  }

  .toscana-silvester__separator,
  .toscana-silvester__details {
    display: none;
  }

  .toscana-silvester__title,
  .toscana-silvester:lang(en) .toscana-silvester__title {
    font-size: 24px;
    line-height: 1;
  }

  .toscana-silvester__title span {
    display: inline;
    margin: 0 0 0 .18em;
    font-size: 1em;
  }

  .toscana-silvester__year {
    margin: 0;
    font-size: 17px;
    letter-spacing: .1em;
  }

  .toscana-silvester__performer {
    flex: 0 0 100%;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.3;
  }
  .toscana-silvester__performer strong {
    font-size: 16px;
  }

  .toscana-silvester__cta {
    flex: 0 0 100%;
    width: auto;
    margin-top: 3px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .toscana-silvester .toscana-silvester__invitation.is-visible:hover {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toscana-silvester .toscana-silvester__invitation { transition: none; }
  .toscana-silvester__invitation.is-visible::after { animation: none; }
  .toscana-silvester__cta svg { transition: none; }
}
