/* =========================
   RESET / GLOBAL
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html, body{
    max-width:100%;
    overflow-x:hidden;
    font-family:Arial, Helvetica, sans-serif;
    background:#f1f5f9;
}

/* =========================
   LAYOUT
========================= */
.home{
    display:flex;
    flex-direction:column;
    gap:32px;
    width:100%;
}

/* =========================
   HERO
========================= */
.hero{
    background:
        linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
        url("/images/fundo.jpeg") center center / cover no-repeat;
    background-color:#000;
    color:#fff;
    padding:36px 20px;
    border-radius:14px;
}

.hero h1{
    font-size:26px;
    margin-bottom:10px;
}

.hero p{
    font-size:14px;
    color:#e5e7eb;
    margin-bottom:20px;
    line-height:1.5;
}

.cta{
    background:#ff0000;
    color:#000;
    padding:12px 22px;
    border-radius:10px;
    font-weight:bold;
    text-decoration:none;
    display:inline-block;
}

.cta:hover{
    background:#cc0000;
}

/* =========================
   AULAS / SERVICES (GRID FIXO)
========================= */
.services{
    display:flex;
    gap:16px;
}

.service-card{
    flex:1;               /* divide o espaço igualmente */
    min-width:0;          /* evita overflow */
    background:#fff;
    padding:18px;
    border-radius:12px;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
    border-left:5px solid #000;
}
.service-card h3{
    font-size:16px;
    margin-bottom:6px;
}

.service-card p{
    font-size:13px;
    color:#475569;
    line-height:1.4;
}

/* =========================
   COMO FUNCIONA
========================= */
.how h2{
    font-size:20px;
    margin-bottom:12px;
}

.steps{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap:12px;
}

.step{
    display:flex;
    align-items:center;
    gap:12px;
    background:#fff;
    padding:14px;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
}

.step span{
    width:28px;
    height:28px;
    background:#ff0202;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size:13px;
    flex-shrink:0;
}

.step p{
    font-size:13px;
    color:#334155;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp-float{
    position:fixed;
    right:20px;
    bottom:20px;
    width:56px;
    height:56px;
    z-index:9999;
}

.whatsapp-float img{
    width:100%;
    height:100%;
    object-fit:contain;
}

/* =========================
   DESKTOP AJUSTES
========================= */
@media (min-width:1024px){
    .hero{
        padding:60px 40px;
    }

    .hero h1{
        font-size:34px;
    }
}


.services{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:16px;
}



.service-card{
flex:1 1 220px; /* base mínima */
}

.carousel-wrapper{
    width:100%;
    overflow:hidden;
    margin:32px 0;
}

.carousel{
    position:relative;
    width:100%;
    overflow:hidden;
    height:140px;
}

.carousel-track{
    position:absolute;
    left:0;
    top:0;
    display:flex;
    gap:16px;
    animation:scroll 60s linear infinite;
    will-change: transform;
}

.carousel img{
    width:220px;
    height:140px;
    object-fit:contain;
    object-position:center;
    border-radius:12px;
    flex-shrink:0;
    background:#000305;

    /* CORREÇÃO REAL */
    clip-path: inset(0 round 12px);
}

@keyframes scroll{
    from{ transform:translateX(0); }
    to{ transform:translateX(-50%); }
}

@media (max-width:768px){
    .hero h1{
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
        font-size:22px; /* opcional, ajuda a caber */
    }
}

/* MOBILE – 1 CARD POR LINHA */
@media (max-width:768px){
    .services{
        grid-template-columns:1fr;
    }
}