/* Nasconde l'header/nav di Astra solo su questa pagina: esperienza
   immersiva a sé, senza dover ridefinire l'intero documento HTML. */
#masthead, .ast-above-header-wrap, .ast-below-header-wrap { display: none !important; }
#colophon, .site-footer, .ast-footer-wrap, .ast-small-footer { display: none !important; }
/* Il nostro contenuto non passa da #primary (niente sidebar): reset
   completo di #content/.ast-container altrimenti restano le regole di
   Astra pensate per il layout a due colonne (contenuto + sidebar),
   che comprimono/spostano la pagina invece di farla occupare tutto
   lo schermo — bug reale trovato dall'utente ("tutto decentrato"). */
#content, .ast-container, .ast-container > .ast-row { display: block !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.rc-page { position: relative; overflow: hidden; }
html.rc-lock-scroll, html.rc-lock-scroll body { overflow: hidden !important; }

/* ---- blob sfumati fissi dietro tutta la pagina ---- */
.rc-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* wrapper separato dal blob vero: il wrapper segue dito/cursore (JS),
   il blob dentro continua a fluttuare per conto suo (CSS) — due
   trasformazioni indipendenti che si compongono, senza scontrarsi
   sulla stessa proprietà transform. */
.rc-blob-wrap { position: absolute; inset: 0; transition: transform .35s cubic-bezier(.22,.75,.32,1); will-change: transform; }
.rc-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .38; will-change: transform; animation: rc-float 26s ease-in-out infinite; }
:root[data-theme="dark"] .rc-blob { opacity: .26; }
.rc-blob-1 { width: 480px; height: 480px; background: var(--accent); top: -10%; left: -8%; animation-duration: 24s; }
.rc-blob-2 { width: 420px; height: 420px; background: var(--brand-soft); top: 55%; right: -10%; animation-duration: 30s; animation-delay: -6s; }
.rc-blob-3 { width: 380px; height: 380px; background: var(--success); bottom: -12%; left: 20%; animation-duration: 34s; animation-delay: -12s; }
.rc-blob-4 { width: 320px; height: 320px; background: #8b5cf6; top: 10%; right: 18%; animation-duration: 28s; animation-delay: -3s; }
@keyframes rc-float { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(30px,-40px) scale(1.08);} 66%{transform:translate(-25px,25px) scale(.94);} }

/* ---- hero ---- */
.rc-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 296px 20px 274px; gap: 12px; }
.rc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--glass-border);
  font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
  opacity: 0; filter: blur(14px); animation: rc-focus-in .8s cubic-bezier(.22,.75,.32,1) .15s forwards;
}
.rc-title {
  font-family: 'Unbounded', var(--font); font-weight: 800; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(48px, 11vw, 128px); margin: 0; text-wrap: balance;
  opacity: 0; filter: blur(24px); animation: rc-focus-in 1.1s cubic-bezier(.22,.75,.32,1) .4s forwards;
}
@keyframes rc-focus-in { to { opacity: 1; filter: blur(0); } }
.rc-title span { display: block; background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rc-shimmer 9s ease-in-out infinite; }
.rc-line1 { background-image: linear-gradient(90deg, var(--ink) 0%, var(--brand-soft) 50%, var(--ink) 100%); }
.rc-line2 { background-image: linear-gradient(90deg, var(--accent-text) 0%, var(--accent) 50%, var(--accent-text) 100%); animation-duration: 11s; animation-direction: reverse; }
@keyframes rc-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* ---- striscia scorrevole ---- */

/* ---- 3 feature card con tilt 3D + numero animato ---- */
.rc-how { max-width: 1040px; margin: 0 auto; padding: 16px 20px 70px; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; perspective: 1000px; }
.rc-feature {
  position: relative; overflow: hidden; border-radius: var(--radius-panel,20px); padding: 28px 22px;
  background: var(--glass-bg-strong); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow-lg, 0 20px 50px rgba(20,30,48,.16));
  --ty: 28px; --rx: 0deg; --ry: 0deg;
  opacity: 0;
  transform: translateY(var(--ty)) rotateX(var(--ry)) rotateY(var(--rx));
  transition: opacity .6s var(--ease,ease), transform .4s var(--ease,ease), box-shadow .3s ease;
}
.rc-feature.rc-visible { opacity: 1; --ty: 0px; }
.rc-feature:hover { box-shadow: 0 26px 60px rgba(var(--fc-rgb),.28); }
.rc-feature-num { position: absolute; top: -6px; right: 4px; font-family: 'Unbounded', var(--font); font-size: 92px; font-weight: 800; color: rgba(var(--fc-rgb),.16); line-height: 1; pointer-events: none; animation: rc-num-pulse 4.5s ease-in-out infinite; }
.rc-feature.f2 .rc-feature-num { animation-delay: -1.5s; }
.rc-feature.f3 .rc-feature-num { animation-delay: -3s; }
@keyframes rc-num-pulse { 0%,100% { color: rgba(var(--fc-rgb),.16); transform: scale(1); } 50% { color: rgba(var(--fc-rgb),.36); transform: scale(1.08); } }
.rc-feature h3 { font-size: 18px; margin: 46px 0 6px; position: relative; }
.rc-feature p { color: var(--ink-soft); font-size: 14px; margin: 0; position: relative; }
.rc-feature.f1 { --fc-rgb: 255,175,0; }   /* #FFAF00 */
.rc-feature.f2 { --fc-rgb: 136,156,181; } /* #889CB5 */
.rc-feature.f3 { --fc-rgb: 191,201,213; } /* #BFC9D5 */

/* ---- classifiche: tab + pannelli ---- */
.rc-rankings { max-width: 920px; margin: 0 auto; padding: 10px 20px 100px; }
.rc-rankings-title {
  position: relative; text-align: center; margin: 0 0 40px; overflow: hidden;
  font-family: 'Unbounded', var(--font); font-size: clamp(32px, 6vw, 50px); font-weight: 800; color: var(--ink);
  clip-path: inset(0 100% 0 0); transform: scale(.82) rotate(-2deg);
  transition: clip-path .9s cubic-bezier(.22,.75,.32,1), transform .8s cubic-bezier(.34,1.32,.64,1);
}
.rc-rankings-title .accent {
  background-image: linear-gradient(100deg, var(--accent-text) 0%, var(--accent) 45%, var(--accent-text) 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-rankings-title.rc-visible { clip-path: inset(0 0% 0 0); transform: scale(1) rotate(0); }
.rc-rankings-title.rc-visible .accent { animation: rc-shimmer 7s linear infinite .9s; }
.rc-rankings-title::after {
  content: ''; display: block; width: 64px; height: 3px; margin: 14px auto 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-text));
  transform: scaleX(0); transition: transform .5s var(--ease,ease) .6s;
}
.rc-rankings-title.rc-visible::after { transform: scaleX(1); }
/* ---- carosello classifiche ---- */
.rc-carousel-wrap { position: relative; }
.rc-car-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.rc-car-dots { display: flex; align-items: center; gap: 8px; }
.rc-car-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 999px; border: none; background: var(--line); cursor: pointer;
  font: 800 12.5px/1 var(--font); color: transparent; overflow: hidden;
  transition: background .25s ease, color .15s ease, width .25s cubic-bezier(.34,1.32,.64,1), height .25s cubic-bezier(.34,1.32,.64,1), padding .25s cubic-bezier(.34,1.32,.64,1), box-shadow .25s ease;
}
.rc-car-dot.active {
  width: auto; height: 24px; padding: 0 13px; color: var(--brand);
  background: linear-gradient(135deg, rgba(255,175,0,.9), rgba(255,175,0,.6));
  box-shadow: 0 4px 14px rgba(var(--accent-rgb),.28);
}
.rc-car-hint { font: 700 11.5px/1 var(--font); color: var(--ink-soft); letter-spacing: .03em; animation: rc-hint-nudge 1.8s ease-in-out infinite; }
@keyframes rc-hint-nudge { 0%,100% { transform: translateX(0); opacity: .7; } 50% { transform: translateX(4px); opacity: 1; } }
.rc-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 2px 10px; cursor: grab; }
.rc-carousel::-webkit-scrollbar { display: none; }
.rc-carousel.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rc-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; min-width: 0; }
.rc-scrolltop {
  position: absolute; bottom: 14px; right: 14px; z-index: 4; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong); backdrop-filter: blur(18px) saturate(160%); color: var(--ink);
  font-size: 16px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(6px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.rc-scrolltop.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.rc-scrolltop:hover { transform: scale(1.08); }
.rc-slide-title { font-family: 'Unbounded', var(--font); font-size: clamp(19px, 3vw, 24px); font-weight: 800; text-align: center; margin: 0 0 14px; line-height: 1.3; }

.rc-method { text-align: center; margin: 0 0 18px; }
.rc-method p { color: var(--ink-soft); font-size: 13px; margin: 0 0 10px; }
.rc-method-btn { padding: 8px 16px !important; font-size: 13px !important; }

.rc-modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(10,14,22,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 20px;
}
.rc-modal-overlay.open { display: flex; }
.rc-modal {
  position: relative; max-width: 440px; width: 100%; height: 50vh; overflow-y: auto;
  background: var(--glass-bg-strong); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border); border-radius: var(--radius-panel,20px); padding: 30px 26px;
}
.rc-modal h3 { font-family: 'Unbounded', var(--font); font-size: 19px; margin: 0 0 12px; }
.rc-modal h3:first-of-type { margin-top: 26px; }
.rc-modal h3.rc-modal-h3-2 { margin-top: 22px; }
.rc-modal p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.rc-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: none; background: transparent;
  color: #ffffff; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: color .15s ease, transform .2s ease;
}
.rc-modal-close:hover { transform: rotate(90deg); }
.rc-modal-close:active { color: var(--accent); }
.rc-rest-scroll { padding-right: 6px; }

.rc-social-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.rc-social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; font: 800 11px/1 var(--font); text-decoration: none; color: var(--ink); background: var(--glass-bg); backdrop-filter: blur(14px) saturate(160%); border: 1px solid var(--glass-border); transition: transform .18s ease; }
.rc-social:hover { transform: translateY(-2px) scale(1.06); }
.rc-social.rc-disabled { opacity: .32; pointer-events: none; }

.rc-panel-card {
  background: var(--glass-bg-strong); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border); border-radius: var(--radius-panel,20px); padding: 28px 22px;
  height: 545px; overflow-y: auto; overscroll-behavior: contain;
}

/* podio */
.rc-podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: 0 0 28px; }
.rc-spot { flex: 1; max-width: 200px; text-align: center; border-radius: var(--radius-panel,20px); padding: 18px 10px 16px; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.rc-spot .medal { font-size: 30px; display: block; margin-bottom: 6px; }
.rc-spot .name { font-weight: 700; font-size: 14px; }
.rc-spot .crit { color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.rc-spot-1 { order: 2; padding-top: 4px; padding-bottom: 26px; background: linear-gradient(160deg, rgba(255,214,121,.35), rgba(255,175,0,.14)); border-color: rgba(255,175,0,.4); }
.rc-spot-1 .medal { font-size: 40px; }
.rc-spot-1 .name { font-size: 16px; }
.rc-spot-2 { order: 1; }
.rc-spot-3 { order: 3; }

.rc-rest { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.rc-rest li { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rc-rest li:last-child { border-bottom: none; }
.rc-rest li .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: rgba(var(--accent-rgb),.16); color: var(--accent-text); }
.rc-rest li .crit { color: var(--ink-soft); font-size: 13px; margin-left: auto; text-align: right; }
.no-episodes { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---- CTA finale ---- */
.rc-cta { max-width: 700px; margin: 0 auto; padding: 20px 20px 100px; text-align: center; }
.rc-cta h2 { font-family: 'Unbounded', var(--font); font-size: clamp(24px,4vw,34px); margin: 0 0 10px; }
.rc-cta p { color: var(--ink-soft); margin: 0 0 20px; }

@media (max-width: 720px) {
  .rc-how { grid-template-columns: 1fr; }
  .rc-hero { padding: 292px 16px 274px; }
  .rc-blob { filter: blur(50px); }
  .rc-podium { flex-wrap: nowrap; }
  .rc-spot { padding: 14px 6px 12px; }
  .rc-spot-1 { padding-bottom: 20px; }
  .rc-panel-card { height: 485px; padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-blob, .rc-title span, .rc-feature-num, .rc-rankings-title, .rc-car-hint, .rc-eyebrow, .rc-title { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .rc-feature, .rc-how .lg-card, .rc-blob-wrap, .rc-rankings-title, .rc-rankings-title::after { transition: none !important; transform: none !important; }
}
