.ffx-page {
    font-family: system-ui, Arial;
    background: #070a12;
    color: #eaeaea;
    overflow-x: hidden;
}

.ffx-container {
    width: 100%;
    padding: 0 18px;
}

.ffx-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ================= TYPO ================= */
.ffx-h1 { font-size: 34px; margin: 18px 0 10px; font-weight: 800; }
.ffx-h2 { font-size: 26px; margin-bottom: 14px; }
.ffx-lead { font-size: 17px; color: #cfd6e4; }
.ffx-text { font-size: 15px; color: #aab4c0; line-height: 1.6; }

/* ================= HERO SLIDER ================= */

.ffx-hero-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
	padding: 20px 20px;
	scroll-padding: 20px;
    align-items: center;
    scrollbar-width: none;
}

/* ================= SLIDE - MOBILE ================= */
.ffx-slide {
    flex: 0 0 72%;
    height: 74vh;
    min-height: 460px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    scroll-snap-align: center;
	scroll-snap-stop: always;
    transform: scale(0.88);
    opacity: 0.5;
    filter: brightness(0.6) saturate(0.8);
    transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
}

/* SLIDE ATTIVA (solo mobile) */
.ffx-slide.is-active {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1) saturate(1.2);
    z-index: 5;
}

/* ================= DESKTOP: 5 SLIDE VISIBILI ================= */
@media (min-width: 1024px) {

    .ffx-hero-slider {
        gap: 14px;
		padding: 20px 20px;
        overflow-x: visible;           /* rimuoviamo lo scroll */
        justify-content: center;       /* centra le slide */
    }

    .ffx-slide {
        flex: 0 0 calc((100% - (4 * 14px)) / 5);   /* 5 slide con spazi uguali */
        height: 540px;
        min-height: 380px;
        max-width: none;
        transform: scale(1);
        opacity: 1;
        filter: brightness(0.95) saturate(1);
        border-radius: 14px;
        scroll-snap-align: unset;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .ffx-slide:hover {
        transform: translateY(-6px) scale(1.02);
        filter: brightness(1.08) saturate(1.15);
        z-index: 10;
    }

    .ffx-slide-bg {
        transform: scale(1.1);
    }
}

/* Background */
.ffx-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 0.5s ease;
}

/* Overlay */
.ffx-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.22), transparent 45%);
    z-index: 1;
}

/* Tag */
.ffx-slide-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
}

.ffx-slide-title {
    margin-bottom: 80px;
    padding: 7px 18px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    min-width: 130px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.ffx-tag-ayla { background: #007366; }
.ffx-tag-eloa { background: #0079C1; }
.ffx-tag-misty { background: #55367E; }
.ffx-tag-raven { background: #D22333; }
.ffx-tag-solara { background: #F1A148; }

/* ================= WORLD CARDS ================= */
.ffx-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
    text-align: left;
}

.ffx-world-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
	
    transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.ffx-world-card:hover {
    transform: translateY(-6px) scale(1.02);
	filter: brightness(1.08) saturate(1.15);
    z-index: 10;
}

.ffx-world-card:hover .ffx-world-text strong {
    opacity: 1;
}

.ffx-world-ayla { background-image: url('/img/masturs-fantasy/worlds/ayla-forest-warrior-world.jpg'); }
.ffx-world-eloa { background-image: url('/img/masturs-fantasy/worlds/eloa-winged-goddess-world.jpg'); }
.ffx-world-misty { background-image: url('/img/masturs-fantasy/worlds/misty-steam-mistress-world.jpg'); }
.ffx-world-raven { background-image: url('/img/masturs-fantasy/worlds/raven-shadow-sinner-world.jpg'); }
.ffx-world-solara { background-image: url('/img/masturs-fantasy/worlds/solara-fire-sorceress-world.jpg'); }

.ffx-world-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.20));
}

.ffx-world-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    width: 100%;
}

.ffx-world-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
}

.ffx-world-subtitle {
    font-size: 15px;
    text-transform: uppercase;
    opacity: .85;
    margin-top: 4px;
    margin-bottom: 16px;
    color: #fff;
}

.ffx-world-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(241,241,241,0.92);
    margin-bottom: 20px;
    max-width: 85%;
}

.ffx-world-text strong {
    display: block;
    margin-top: 6px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
	opacity: 0.85;
    transition: opacity .25s ease;
}

.ffx-world-btn {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ffx-btn-ayla { background: #007366; }
.ffx-btn-eloa { background: #0079C1; }
.ffx-btn-misty { background: #55367E; }
.ffx-btn-raven { background: #D22333; }
.ffx-btn-solara { background: #F1A148; }

@media (min-width: 1024px) {
    .ffx-grid {
        max-width: 920px;
        margin: 0 auto;
    }
}

/* ================= COLLECTION SECTION ================= */
.ffx-collection { padding: 80px 0; }
.ffx-collection .ffx-h2,
.ffx-collection .ffx-lead,
.ffx-collection .ffx-text { text-align: center; }
.ffx-collection .ffx-lead { max-width: 720px; margin: 0 auto 10px; }
.ffx-collection .ffx-text { max-width: 650px; margin: 0 auto 30px; opacity: 0.9; }

.ffx-collection-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;    
}

.ffx-sigil {
    width: 110px;
    height: 54px;
	
	display: inline-flex;
	flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;    
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
	gap: 3px;
}

.ffx-sigil-name {
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
	text-transform: uppercase;
}

.ffx-sigil-tag {
    font-size: 11px;
    letter-spacing: 1.5px;    
    opacity: 0.65;
    color: #fff;
}

.ffx-sigil:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
	color: #fff;
}

.ffx-ayla { background: #007366; }
.ffx-eloa { background: #0079C1; }
.ffx-misty { background: #55367E; }
.ffx-raven { background: #D22333; }
.ffx-solara { background: #F1A148; }

.ffx-cta-note {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-top: 30px;
    color: #ffffff;
}

body.fantasy-page,
body.fantasy-page #wrapper,
body.fantasy-page main,
body.fantasy-page .page-content {
    background: #070a12;
}

body.fantasy-page .layout-container.my-5 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Desktop typo */
@media (min-width: 1024px) {
    .ffx-h1 { font-size: 38px; }
    .ffx-h2 { font-size: 30px; }
    .ffx-lead { font-size: 19px; }
}

/* ================= FAQ DISCRETA ================= */
.faq-section {
    padding: 50px 0 70px;
    background: #0a0d18;
}

.faq-title {
    font-size: 20px;
    font-weight: 600;
    color: #c5ccd9;
    margin-bottom: 24px;
    text-align: center;
}

.faq-subtitle {
    text-align: center;
    max-width: 520px;
    margin: -10px auto 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #9aa3b5;
    opacity: 0.95;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: #11151f;
    border: 1px solid #1c2230;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #d1d7e3;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 18px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #9aa3b5;
}

/* ================= WORLD TRANSITION ================= */
#world-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    background: #000;
}

#world-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Sfondo del mondo */
#transition-world-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) saturate(1.3);
}

/* Ritratto centrato */
#transition-portrait {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65);
    width: 280px;
    height: 380px;
    background-size: cover;
    background-position: center 22%; /* Focalizza sulla parte alta (viso) */
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    z-index: 5;
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Visibilità ritratto (funziona sia con .active che con opacity diretto) */
#world-transition.active #transition-portrait,
#world-transition[style*="opacity: 1"] #transition-portrait {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
}

/* Nome del personaggio - Stile pill in basso */
#transition-name {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 10;
    transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Colori per personaggio */
#transition-name.ayla  { background: #007366; }
#transition-name.eloa  { background: #0079C1; }
#transition-name.misty { background: #55367E; }
#transition-name.raven { background: #D22333; }
#transition-name.solara { background: #F1A148; }

#world-transition.active #transition-name,
#world-transition[style*="opacity: 1"] #transition-name {
    opacity: 1;
    transform: translate(-50%, 0);
}