html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #374C80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: top 0.35s ease;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px;
    width: auto;
    user-select: none;
}

.menu-toggle{
    display:none;
    font-size:28px;
    color:white;
    cursor:pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1002;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.menu-icon {
    font-size: 36px;
    transition: transform 0.3s ease;
}

.menu {
    display: flex;
    gap: 25%;
    margin-right: 25%;
}

.menu a {
    color: #d1d1d1;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.2s;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-box {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.search-box input {
    width: 220px;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.presentation {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    background-color: #374C80;
    margin-top: 70px;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    user-select: none;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dots .dot:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.slider-dots .dot.active {
    opacity: 1;
    transform: scale(1.3);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 600px;
    color: white;
    z-index: 3;
    user-select: none;
}

.slide-text h1 {
    font-size: 48px;
    color: #f5e663;
    user-select: none;
}

.price {
    background: white;
    color: #2c4a7a;
    padding: 10px 20px;
    border-radius: 6px;
    margin: 20px 0;
    display: inline-block;
    font-weight: bold;
    user-select: none;
}

.slide-text h2 {
    font-size: 32px;
    user-select: none;
}

.courses-section {
    width: 100%;
    background-color: #f5f7fa;
    padding: 60px 0;
}

.courses {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.course-card {
    background: white;
    width: 100%;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.course-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.course-card h3 {
    color: #0b3c7a;
    margin: 15px 0 10px;
}

.course-card p {
    font-size: 14px;
    color: #0b3c7a;
    margin-bottom: 10px;
    text-align: left;
}

.btn {
    display: inline-block;
    background-color: #0b3c7a;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1f5fb3;
}

.footer {
    background: #181818;
    color: rgb(214, 208, 208);
    padding: 80px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-text1 h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-text1 p {
    margin-bottom: 5px;
    line-height: 1.6;
}

.footer-text2 h2 {
    font-size: 28px;
}

.footer-text2 a {
    color: #adb92f;
    text-decoration: none;
    font-weight: bold;
}

.footer-text2 p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.form h2 {
    margin-bottom: 20px;
}

.conteiner-form {
    background: #374C80;
    padding: 100px 20px;
    display: block;
    text-align: center;
}

.form-info {
    color: #d1d1d1;
    margin-top: -20px;
    margin-bottom: 5%;
    text-indent: 20px;
}

.form-info > h2 {
    margin-bottom: 40px;
    font-size: 32px;
}

.form-info > p {
    margin-bottom: 10px;
    font-size: 26px;
}

.form {
    background: #eae4e4;
    padding: 30px;
    border-radius: 10px;
    margin-left: 20%;
    margin-right: 20%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form input {
    padding: 12px 15px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
}

.form button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #0b3c7a;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.form button:hover {
    background-color: #1f5fb3;
}

.highlight {
    color: #4da3ff;
    font-weight: 600;
}

.benefits {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.benefits li {
    margin-bottom: 8px;
    font-size: 15px;
}

.footer h2 {
    margin-bottom: 15px;
    position: relative;
}

.footer-text1 h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #e4e4e4;
    margin-top: 8px;
}

.footer-text2 h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #e4e4e4;
    margin-top: 8px;
}

.footer-img {
    grid-column: 1 / -1;
    text-align: center;
    user-select: none;
}

.footer-img img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.copyright {
    text-align: center;
    margin-top: 4%;
    font-size: 12px;
    color: #7b7676;
    user-select: none;
}

.watermark {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    color: #413f3f;
    text-decoration: none;
}



/* ========================================
   RESPONSIVIDADE - SMARTPHONES
   ======================================== */
@media screen and (max-width: 768px) {

    .top-bar {
        padding: 0 20px;
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        position: fixed;
        flex-direction:column;
        align-items:stretch;
        padding:10px 20px;
        height:auto;
    }

    .logo-area{
        display:flex;
        justify-content:space-between;
        align-items:center;
        width: 100%;
    }

    .logo-text {
        font-size: 16px;
    }

    
    .search-box {
        margin-top: 20px;
    }
    /* Ativa o menu hamburguer */
    .menu-toggle{
        display:block;
        position:absolute;
        right:20px;
        top:0px;
        z-index: 1002;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .menu-toggle .menu-icon {
        display: block;
        pointer-events: none;
    }
    
    /* Menu dropdown mobile - TELA CHEIA */
    .menu{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #2d3f6b 0%, #1a2744 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1001;
        margin: 0;
    }

    .menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu section {
        width: 85%;
        max-width: 400px;
        margin: 12px 0;
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    /* Animação dos itens quando o menu abre */
    .menu.active section:nth-child(1) {
        animation: slideIn 0.4s ease forwards 0.1s;
    }
    .menu.active section:nth-child(2) {
        animation: slideIn 0.4s ease forwards 0.2s;
    }
    .menu.active section:nth-child(3) {
        animation: slideIn 0.4s ease forwards 0.3s;
    }
    .menu.active section:nth-child(4) {
        animation: slideIn 0.4s ease forwards 0.4s;
    }

    @keyframes slideIn {
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .menu a{
        display: block;
        width: 100%;
        padding: 20px 25px;
        text-align: center;
        font-size: 20px;
        font-weight: 600;
        color: white;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .menu a:hover,
    .menu a:active {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    /* Search box mobile */
    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    /* Slider mobile */
    .presentation {
        height: 350px;
        margin-top: 70px;
    }

    .slide-text {
        left: 5%;
        right: 5%;
        max-width: 90%;
    }

    .slide-text h1 {
        font-size: 22px;
    }

    .slide-text h2 {
        font-size: 16px;
    }

    .price {
        font-size: 14px;
        padding: 8px 15px;
        margin: 15px 0;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }

    /* Cursos - 1 coluna */
    .courses-section {
        padding: 40px 0;
    }

    .courses {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .course-card {
        padding: 15px;
    }

    .course-card img {
        height: 180px;
    }

    .course-card h3 {
        font-size: 18px;
    }

    /* FORMULÁRIO MOBILE - CORRIGIDO */
    .conteiner-form {
        padding: 60px 15px;
        display: block;
        background-color: #374C80;
    }

    .form-info {
        margin-top: 0;
        margin-bottom: 30px;
        text-indent: 0;
        padding: 0 5px;
    }

    .form-info > h2 {
        font-size: 24px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .form-info > p {
        font-size: 16px;
        line-height: 1.5;
    }

    .form {
        margin-left: 0;
        margin-right: 0;
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form h2 {
        font-size: 22px;
        margin-bottom: 20px;
        color: #0b3c7a;
    }

    .form form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .form input {
        font-size: 16px;
        padding: 14px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .form button {
        font-size: 16px;
        padding: 14px 12px;
        width: 100%;
    }

    /* Footer mobile */
    .footer {
        padding: 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-img {
        grid-column: 1;
        margin-top: 20px;
    }

    .footer-img img {
        max-width: 200px;
    }

    .footer-text1 h2,
    .footer-text2 h2 {
        font-size: 22px;
    }

    .footer-text1 p,
    .footer-text2 p {
        font-size: 14px;
    }

    .benefits li {
        font-size: 14px;
    }

    .watermark {
        margin-top: 30px;
        font-size: 11px;
    }
}

/* ========================================
   RESPONSIVIDADE - SMARTPHONES PEQUENOS
   ======================================== */
@media screen and (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 14px;
    }

    .presentation {
        height: 300px;
    }

    .slide-text h1 {
        font-size: 18px;
    }

    .slide-text h2 {
        font-size: 14px;
    }

    .price {
        font-size: 12px;
        padding: 6px 12px;
        margin: 12px 0;
    }

    .course-card h3 {
        font-size: 16px;
    }

    .course-card p {
        font-size: 13px;
    }

    .course-card img {
        height: 160px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .form-info > h2 {
        font-size: 20px;
    }

    .form-info > p {
        font-size: 14px;
    }

    .form {
        padding: 20px 15px;
    }

    .form h2 {
        font-size: 20px;
    }

    .footer-text1 h2,
    .footer-text2 h2 {
        font-size: 20px;
    }

    .benefits li {
        font-size: 13px;
    }

    .menu a {
        font-size: 18px;
        padding: 18px 20px;
    }
}
