/* ===== CreaIlTuoGioco - Home Page (Playful Style) ===== */

:root {
    --yellow: #FFD93D;
    --coral: #FF6B6B;
    --blue: #4ECDC4;
    --purple: #C77DFF;
    --green: #6BCB77;
    --dark: #1a1a2e;
    --white: #fff;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    color: var(--dark);
    background: #FFF9F0;
}

/* ---- Navbar ---- */
.navbar {
    background: var(--dark) !important;
    border-bottom: 4px solid var(--yellow);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--yellow) !important;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--coral);
}

/* ---- Hero ---- */
.hero-section {
    background: var(--dark);
    color: #fff;
    padding: 8rem 0 6rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,217,61,0.12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-80 { min-height: 50vh; }

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.text-highlight {
    color: var(--yellow);
    position: relative;
    display: inline-block;
    background: none;
    -webkit-text-fill-color: var(--yellow);
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -4px;
    right: -4px;
    height: 8px;
    background: var(--coral);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 600;
}

/* ---- CTA Button ---- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--yellow);
    color: var(--dark);
    font-family: 'Fredoka One', cursive;
    font-size: 1.15rem;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 3px solid var(--dark);
    box-shadow: 6px 6px 0 var(--dark);
    transition: all 0.15s;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
}

.btn-cta:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--dark);
    background: var(--yellow);
    color: var(--dark);
    border-color: var(--dark);
}

/* ---- Floating emojis ---- */
.floater {
    position: absolute;
    font-size: 2.2rem;
    animation: floatEmoji 4s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.floater:nth-child(1) { top: 12%; left: 6%; animation-delay: 0s; }
.floater:nth-child(2) { top: 18%; right: 8%; animation-delay: 0.8s; }
.floater:nth-child(3) { bottom: 18%; left: 8%; animation-delay: 1.6s; }
.floater:nth-child(4) { bottom: 14%; right: 6%; animation-delay: 2.4s; }

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ---- Section commons ---- */
.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: .5rem;
}

.section-subtitle {
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* ---- Steps section ---- */
.steps-section {
    padding: 6rem 0;
    background: var(--white);
}

.step-card {
    background: var(--white);
    border: 3px solid var(--dark);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 6px 6px 0 var(--dark);
    position: relative;
    transition: all 0.15s;
    height: 100%;
}

.step-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--dark);
}

.col-md-4:nth-child(1) .step-card { background: #FFF0F0; }
.col-md-4:nth-child(2) .step-card { background: #F0FFF4; }
.col-md-4:nth-child(3) .step-card { background: #F0F4FF; }

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--coral);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--dark);
    box-shadow: 3px 3px 0 var(--dark);
}

.step-icon {
    font-size: 2.8rem;
    margin-bottom: .75rem;
}

.col-md-4:nth-child(1) .step-icon { color: var(--coral); }
.col-md-4:nth-child(2) .step-icon { color: var(--green); }
.col-md-4:nth-child(3) .step-icon { color: var(--blue); }

.step-card h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: .6rem;
    color: var(--dark);
}

.step-card p {
    color: #555;
    font-size: .95rem;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.6;
}

/* ---- Features section ---- */
.features-section {
    padding: 5rem 0;
    background: #FFF9F0;
}

.feature-card {
    border: 3px solid var(--dark);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 5px 5px 0 var(--dark);
    transition: all 0.15s;
    height: 100%;
    cursor: default;
}

.col-sm-6:nth-child(1) .feature-card { background: var(--yellow); }
.col-sm-6:nth-child(2) .feature-card { background: var(--coral); color: white; }
.col-sm-6:nth-child(3) .feature-card { background: var(--blue); }
.col-sm-6:nth-child(4) .feature-card { background: var(--purple); color: white; }

.feature-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--dark);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    margin-bottom: .5rem;
    color: var(--dark);
}

.col-sm-6:nth-child(2) .feature-card h5,
.col-sm-6:nth-child(4) .feature-card h5 { color: white; }

.feature-card p {
    font-size: .88rem;
    line-height: 1.5;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 0;
}

/* ---- CTA section ---- */
.cta-section {
    padding: 7rem 0;
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,217,61,0.1) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: .8rem;
    color: var(--white);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

/* ---- Contact section ---- */
.contact-section {
    padding: 7rem 0;
    background: #FFF9F0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(37,211,102,0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(255,217,61,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.contact-section .floater { z-index: 1; }

.contact-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--dark);
    position: relative;
    z-index: 2;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .contact-subtitle { margin-left: auto; margin-right: auto; }
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .contact-features { align-items: center; }
}

.contact-feature {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--white);
    border: 2px solid var(--dark);
    border-radius: 50px;
    padding: .55rem 1.3rem;
    font-weight: 700;
    font-size: .95rem;
    color: var(--dark);
    box-shadow: 3px 3px 0 var(--dark);
    width: fit-content;
}

.contact-feature i {
    color: var(--green);
    font-size: 1.1rem;
}

.contact-card {
    background: var(--white);
    border: 3px solid var(--dark);
    border-radius: 24px;
    padding: 3rem 2.5rem 2.5rem;
    box-shadow: 8px 8px 0 var(--dark);
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}

.contact-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--dark);
}

.contact-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--coral);
    color: var(--white);
    font-family: 'Fredoka One', cursive;
    font-size: .8rem;
    padding: .35rem 1.2rem;
    border-radius: 50px;
    border: 3px solid var(--dark);
    box-shadow: 3px 3px 0 var(--dark);
    white-space: nowrap;
    letter-spacing: .3px;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.2rem;
    background: #25D366;
    border-radius: 50%;
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
}

.contact-card-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    margin-bottom: .6rem;
    color: var(--dark);
}

.contact-card-text {
    color: #666;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #25D366;
    color: #fff;
    font-family: 'Fredoka One', cursive;
    font-size: 1.15rem;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 3px solid var(--dark);
    box-shadow: 6px 6px 0 var(--dark);
    transition: all 0.15s;
    letter-spacing: 0.3px;
}

.btn-whatsapp:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--dark);
    background: #1ebe5d;
    color: #fff;
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* ---- Footer ---- */
.site-footer {
    background: #111;
    color: rgba(255,255,255,0.4);
    padding: 2rem 0;
    font-size: .9rem;
    font-weight: 700;
}

.site-footer i {
    color: var(--yellow);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section { padding: 6rem 0 4rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .steps-section, .features-section, .contact-section { padding: 3.5rem 0; }
    .cta-section { padding: 4rem 0; }
    .contact-card { padding: 2.5rem 1.5rem 2rem; }
    .contact-title { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .btn-cta { padding: .8rem 1.8rem; font-size: 1rem; }
    .navbar { padding: 1rem 1.5rem; }
}
