/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  min-height: min(calc(100vh - var(--td-nav-h)), 860px);
  min-height: min(calc(100svh - var(--td-nav-h)), 860px);
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(255, 106, 19, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 106, 19, 0.12), transparent 70%),
    var(--td-bg);
}

/* Trama leggera a griglia sullo sfondo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-logo {
  width: min(720px, 92%);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  animation: heroIn 0.9s cubic-bezier(.2,.8,.2,1) both;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  max-width: 640px;
  margin: 28px auto 24px;
  color: var(--td-text);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 32px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
  color: var(--td-cream);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

a.chip:hover {
  border-color: var(--td-orange);
  color: var(--td-cream);
}

.chip i {
  color: var(--td-orange);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--td-muted);
  font-size: 1.3rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* =========================
   ATTIVITÀ
   ========================= */
.activity-card {
  height: 100%;
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.activity-card:hover {
  transform: translateY(-6px);
  border-color: var(--td-orange);
}

.activity-card img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 18px;
}

.activity-card h3 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.activity-card p {
  color: var(--td-muted);
  margin-bottom: 0.6rem;
}

.activity-card p:last-child {
  margin-bottom: 0;
}

/* =========================
   QUANDO E DOVE
   ========================= */
.info-card {
  height: 100%;
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 32px;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.info-row:last-of-type {
  margin-bottom: 2rem;
}

.info-icon {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 106, 19, 0.14);
  color: var(--td-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.info-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--td-cream);
}

/* =========================
   COMMUNITY / CONTATTI
   ========================= */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 20px 22px;
  border-radius: var(--td-radius);
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
  color: var(--td-text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--td-orange);
  color: var(--td-text);
}

.link-card .info-icon {
  font-size: 1.5rem;
}

.link-card strong {
  display: block;
  color: var(--td-cream);
}

.link-card small {
  color: var(--td-muted);
}

.link-card .fa-arrow-right {
  margin-left: auto;
  color: var(--td-muted);
}

.link-card-featured {
  background: linear-gradient(135deg, rgba(255, 106, 19, 0.22), var(--td-surface-2) 70%);
  border-color: rgba(255, 106, 19, 0.5);
}

/* =========================
   FAQ
   ========================= */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--td-cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--td-orange);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--td-muted);
}

/* =========================
   INVITO A GIOCARE
   ========================= */
.invite {
  padding: 56px 0;
  background: var(--td-surface);
  border-top: 1px solid var(--td-border);
  border-bottom: 1px solid var(--td-border);
}

.invite-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 0.6rem;
}

.invite-title span {
  color: var(--td-orange);
}

.invite p {
  max-width: 620px;
  margin: 0 auto 1.4rem;
  color: var(--td-muted);
}

.invite-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  font-weight: 700;
  color: var(--td-cream);
}

.invite-points i {
  color: var(--td-orange);
  margin-right: 0.4rem;
}

/* Icona al posto dell'illustrazione (D&D) */
.activity-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #3a3f4b;
  background: linear-gradient(135deg, #ffb48e, #ffd2a8);
}

.activity-card .more-link {
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   POKÉMON TCG
   ========================= */
.poke-feature {
  display: flex;
  gap: 1rem;
  padding: 22px;
  border-radius: var(--td-radius);
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
}

.poke-feature h3 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.poke-feature p {
  color: var(--td-muted);
  margin: 0;
}

.poke-hero {
  height: 100%;
  padding: 32px;
  border-radius: var(--td-radius);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 203, 5, 0.22), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(255, 106, 19, 0.25), transparent 55%),
    var(--td-surface-2);
  border: 1px solid rgba(255, 106, 19, 0.45);
}

.poke-hero h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.poke-hero p {
  color: var(--td-muted);
}

/* =========================
   CALENDARIO
   ========================= */
.next-card {
  padding: 28px;
  border-radius: var(--td-radius);
  background: linear-gradient(135deg, rgba(255, 106, 19, 0.25), var(--td-surface-2) 70%);
  border: 1px solid rgba(255, 106, 19, 0.5);
  margin-bottom: 1.5rem;
}

.next-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--td-orange);
  color: var(--td-bg);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.next-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--td-cream);
  text-transform: capitalize;
}

.next-title {
  font-weight: 700;
  color: var(--td-orange);
  margin: 0.3rem 0 0.4rem;
}

.cal {
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 22px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-head h3 {
  font-size: 2rem;
  margin: 0;
  text-transform: capitalize;
}

.cal-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--td-border);
  background: var(--td-bg);
  color: var(--td-cream);
}

.cal-nav:hover {
  background: var(--td-orange);
  color: var(--td-bg);
}

.cal-nav:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-weekdays {
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--td-muted);
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--td-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 600;
  color: var(--td-muted);
}

.cal-empty {
  background: transparent;
}

.cal-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0 0.35rem;
  border-radius: 4px;
}

.cal-thursday {
  background: rgba(255, 106, 19, 0.18);
  color: var(--td-cream);
}

.cal-thursday .cal-label {
  background: var(--td-orange);
  color: var(--td-bg);
}

.cal-friday {
  background: rgba(155, 92, 255, 0.2);
  color: var(--td-cream);
}

.cal-friday .cal-label {
  background: #9b5cff;
  color: #fff;
}

.cal-today {
  outline: 2px solid var(--td-cream);
  outline-offset: -2px;
}

.cal-past {
  opacity: 0.35;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--td-muted);
}

.cal-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 0.4rem;
  background: var(--td-orange);
}

.cal-legend .lg-fri::before {
  background: #9b5cff;
}

.cal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
  border-left: 4px solid var(--td-orange);
}

.cal-item-friday {
  border-left-color: #9b5cff;
}

.cal-item-date {
  flex: 0 0 52px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--td-muted);
  line-height: 1.1;
}

.cal-item-date span {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--td-cream);
  line-height: 1;
}

.cal-item-body strong {
  display: block;
  color: var(--td-cream);
}

.cal-item-body small {
  color: var(--td-muted);
}

.cal-add {
  margin-left: auto;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--td-bg);
  color: var(--td-cream);
}

.cal-add:hover {
  background: var(--td-orange);
  color: var(--td-bg);
}

@media (max-width: 575.98px) {
  .cal {
    padding: 14px;
  }

  .cal-weekdays,
  .cal-grid {
    gap: 4px;
  }

  .cal-label {
    font-size: 0.5rem;
    padding: 0 0.2rem;
  }
}

/* =========================
   DOVE SIAMO
   ========================= */
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  display: block;
}

/* =========================
   INSTAGRAM
   ========================= */
.ig-embed {
  max-width: 540px;
  margin: 0 auto;
  border-radius: var(--td-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--td-border);
}

.ig-embed iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

@media (max-width: 575.98px) {
  .ig-embed iframe {
    height: 560px;
  }
}

/* Desktop: prossima serata ed elenco a sinistra, calendario a destra.
   Mobile: prossima serata, calendario, elenco */
.cal-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-areas:
    "next grid"
    "list grid";
  grid-template-rows: auto 1fr;
  gap: 0 1.5rem;
}

.cal-area-next { grid-area: next; }
.cal-area-grid { grid-area: grid; }
.cal-area-list { grid-area: list; }

@media (max-width: 991.98px) {
  .cal-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "next"
      "grid"
      "list";
    gap: 1.5rem;
  }

  .cal-area-next .next-card {
    margin-bottom: 0;
  }
}

/* Tornei Pokémon nel calendario */
.cal-pokemon {
  background: rgba(255, 203, 5, 0.16);
  color: var(--td-cream);
}

.cal-label-pokemon {
  background: #ffcb05;
  color: #1a1a1a;
}

.cal-item-pokemon {
  border-left-color: #ffcb05;
}

.cal-legend .lg-pkmn::before {
  background: #ffcb05;
}

.cal-more {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   EVENTI POKÉMON UFFICIALI
   ========================= */
.poke-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.2rem 0 1.4rem;
}

.poke-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(11, 15, 20, 0.55);
  border: 1px solid var(--td-border);
  color: var(--td-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.poke-event:hover {
  border-color: #ffcb05;
  color: var(--td-text);
  transform: translateX(4px);
}

.poke-event-special {
  border-color: rgba(255, 203, 5, 0.55);
  background: rgba(255, 203, 5, 0.08);
}

.poke-event-date {
  flex: 0 0 46px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--td-muted);
  line-height: 1.1;
}

.poke-event-date span {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--td-cream);
}

.poke-event-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.poke-event-body strong {
  color: var(--td-cream);
}

.poke-event-body small {
  color: var(--td-muted);
}

.poke-event-type {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffcb05;
}

.poke-event .fa-external-link-alt {
  margin-left: auto;
  color: var(--td-muted);
}

.poke-source {
  font-size: 0.8rem;
  color: var(--td-muted);
}

/* =========================
   CONTENUTI ESTERNI (consenso cookie)
   ========================= */
.embed-consent {
  height: 100%;
  min-height: 340px;
  border-radius: var(--td-radius);
  border: 1px solid var(--td-border);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 106, 19, 0.15), transparent 60%),
    var(--td-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 28px;
  text-align: center;
}

.embed-consent > i {
  font-size: 2.6rem;
  color: var(--td-orange);
}

.embed-consent p {
  color: var(--td-muted);
  max-width: 360px;
  margin: 0;
  font-size: 0.92rem;
}

.ig-embed .embed-consent {
  min-height: 420px;
  border: 0;
  border-radius: 0;
}

.poke-events-title {
  margin: 1.5rem 0 0;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-cream);
}

.cal-label-evento {
  background: var(--td-cream);
  color: var(--td-bg);
}

.cal-evento {
  background: rgba(251, 243, 223, 0.12);
  color: var(--td-cream);
}

.cal-item-evento {
  border-left-color: var(--td-cream);
}

/* Due bollini nella stessa casella (giovedì: TCG + PKMN) */
.cal-cell .cal-label + .cal-label {
  margin-top: 1px;
}

.poke-event-cta {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffcb05;
}

/* Elenco serate compatto */
.cal-item {
  padding: 8px 12px;
}

.cal-item-date span {
  font-size: 1.6rem;
}

.cal-item-body small {
  display: block;
  font-size: 0.8rem;
}

.cal-item-body .cal-more {
  margin-top: 0.1rem;
  font-size: 0.8rem;
}

.cal-add {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.cal-toggle {
  width: 100%;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px dashed var(--td-border);
  background: transparent;
  color: var(--td-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.cal-toggle:hover {
  color: var(--td-cream);
  border-color: var(--td-orange);
}

/* Colori dei bollini: valgono anche dentro le caselle colorate del giovedì */
.cal-cell .cal-label-thursday { background: var(--td-orange); color: var(--td-bg); }
.cal-cell .cal-label-friday { background: #9b5cff; color: #fff; }
.cal-cell .cal-label-pokemon { background: #ffcb05; color: #1a1a1a; }
.cal-cell .cal-label-evento { background: var(--td-cream); color: var(--td-bg); }

/* Le colonne non si allargano mai oltre il calendario */
.cal-weekdays,
.cal-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-cell {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .cal-cell {
    aspect-ratio: auto;
    min-height: 44px;
    padding: 3px 0;
  }

  .cal-label {
    max-width: 100%;
  }
}

/* Il giovedì è la serata della Lega Pokémon: giallo come i tornei */
.cal-thursday,
.cal-pokemon {
  background: rgba(255, 203, 5, 0.16);
  color: var(--td-cream);
}

.cal-cell .cal-label-thursday {
  background: #ffcb05;
  color: #1a1a1a;
}

.cal-item-thursday {
  border-left-color: #ffcb05;
}

.cal-legend span.lg-free::before {
  content: "✓";
  width: auto;
  height: auto;
  background: none;
  color: var(--td-orange);
  font-weight: 800;
}

/* =========================
   FAQ: animazioni
   ========================= */
/* Le domande compaiono una dopo l'altra */
.faq details.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease, background 0.25s ease;
}

.faq details.reveal:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.faq details.reveal:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
.faq details.reveal:nth-child(4) { transition-delay: 0.24s, 0.24s, 0s, 0s; }
.faq details.reveal:nth-child(5) { transition-delay: 0.32s, 0.32s, 0s, 0s; }
.faq details.reveal:nth-child(6) { transition-delay: 0.40s, 0.40s, 0s, 0s; }

.faq details:hover,
.faq details[open] {
  border-color: var(--td-orange);
}

.faq details[open] {
  background: linear-gradient(135deg, rgba(255, 106, 19, 0.1), var(--td-surface-2) 60%);
}

.faq summary {
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--td-orange);
}

/* Risposta che scende con una dissolvenza all'apertura */
.faq details[open] p {
  animation: faqOpen 0.35s ease;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
