/* ===== GERAL ===== */
body {
    font-family: 'Nunito', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #e3f2fd;
    color: #000;
}

.logo {
    width: 200px;
    height: auto;
    cursor: pointer;
}

header nav {
    display: flex;
    gap: 15px;
}

header nav a {
    font-family: 'Poppins', sans-serif;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: #0e4eff;
}

/* ===== BANNER ===== */
.banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    aspect-ratio: 16/6;
    background: linear-gradient(135deg, #004aad, #00b938);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.banner h1 {
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.btn-simular {
    padding: 16px 36px;
    background: #fff;
    color: #004aad;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: transform 0.2s, background 0.3s;
}

.btn-simular:hover {
    background: #f1f1f1;
    transform: scale(1.05);
}

/* círculos decorativos */
.banner::before, .banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.banner::before {
    width: 300px; height: 300px;
    top: -80px; left: -80px;
}

.banner::after {
    width: 200px; height: 200px;
    bottom: -60px; right: -60px;
}

/* ===== SEÇÕES ===== */
section {
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

/* ===== CARDS BENEFÍCIOS ===== */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    flex: 1 1 220px;
    max-width: 250px;
    background: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    font-family: 'Nunito', sans-serif;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    margin-top: 10px;
    max-width: 70px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.card .descricao {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #e0e0e0;
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 14px;
}

.card:hover .descricao {
    max-height: 100px;
    padding: 10px;
}

/* ===== SEÇÃO SEGUROS ===== */
#seguros {
    text-align: center;
    padding: 40px 20px;
}

.cards-seguros {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cards-seguros .card {
    flex: 1 1 220px;
    max-width: 250px;
    background: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    font-family: 'Nunito', sans-serif;
}

.cards-seguros .card:hover {
    transform: scale(1.05);
}

.cards-seguros .card .descricao {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #e0e0e0;
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 14px;
}

.cards-seguros .card:hover .descricao {
    max-height: 100px;
    padding: 10px;
}

/* ===== SETA ANIMADA ===== */
.seta-animada {
  animation: moverSeta 1s ease-in-out infinite alternate;
  margin-bottom: 40px;
}

@keyframes moverSeta {
  0%   { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

/* ===== FOOTER ===== */
footer {
    background: #004aad;
    color: #fff;
    padding: 40px 20px 20px;
    font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-info,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 10px;
}

.footer-contact h4,
.footer-social h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.footer-contact a,
.footer-contact a:visited {
    color: #fff;
    text-decoration: none;
}

.footer-social a {
    margin-right: 10px;
    display: inline-block;
}

.footer-social img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.footer-social img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    font-size: 0.8rem;
}

/* ===== FORMULÁRIOS ===== */
.cotacao-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #004aad, #00b938);
    min-height: 100vh;
}

form {
    max-width: 450px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f1f1;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    font-family: 'Nunito', sans-serif;
}

form h1 {
    margin-bottom: 25px;
    color: #004aad;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    text-align: center;
}

.campo {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.campo label {
    display: block;
    text-align: center;
    margin-bottom: 5px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
}

.campo input,
.campo textarea,
.campo select {
    width: 80%;
    max-width: 400px;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    text-align: center;
    display: block;
    margin: 0 auto;
    appearance: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    border-color: #004aad;
    box-shadow: 0 0 5px rgba(0, 74, 173, 0.5);
    outline: none;
}

button {
    width: 100%;
    padding: 14px 0;
    background: #004aad;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

button:hover:enabled {
    background: #00327a;
    transform: scale(1.03);
}

/* ===== SEÇÃO SOBRE ===== */
.sobre {
    padding: 60px 20px;
    background: #f9f9f9;
}

.sobre-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.sobre-img {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
}

.sobre-texto {
    max-width: 600px;
    text-align: left;
}

.sobre-texto h2 {
    font-family: 'Poppins', sans-serif;
    color: #004aad;
    margin-bottom: 20px;
    font-size: 2rem;
}

.sobre-texto p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* ===== SEÇÃO INSTAGRAM ===== */
.instagram-posts {
    padding: 60px 20px;
    background: #fff;
}

.instagram-posts h2 {
    font-family: 'Poppins', sans-serif;
    color: #004aad;
    margin-bottom: 40px;
    font-size: 2rem;
    text-align: center;
}

.posts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.posts-container iframe {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 12px;
}

/* ===== CARROSSEL DE SEGUROS ===== */
.carrossel-container {
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.carrossel-track {
  display: flex;
  gap: 20px;
  animation: scroll 20s linear infinite;
}

.carrossel-track img {
  width: 150px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .logo { width: 120px; }
    .sobre-container { gap: 20px; }
    .sobre-texto { text-align: center; }
    .carrossel-track img { width: 120px; }
    .carrossel-track { gap: 15px; animation-duration: 25s; }
}

@media (max-width: 768px) {
    header { flex-direction: row; align-items: center; }
    .logo { width: 80px; }

    /* Cards benefícios mobile */
    .cards { flex-wrap: wrap; gap: 15px; justify-content: center; }
    .card { flex: 1 1 45%; max-width: 45%; }

    /* Carrossel */
    .carrossel-track img { width: 100px; }
    .carrossel-track { gap: 12px; animation-duration: 30s; }

    /* Banner mobile */
    .banner {
        aspect-ratio: auto;
        min-height: 320px;      /* altura maior para título e botão */
        padding: 40px 20px;     /* espaço interno vertical */
        justify-content: center;
    }
    .banner h1 { font-size: 1.6rem; margin-bottom: 20px; }
    .btn-simular { padding: 14px 32px; font-size: 0.95rem; margin-top: 10px; }
}

@media (max-width: 480px) {
    .banner {
        min-height: 280px;
        padding: 35px 15px;
    }
    .banner h1 { font-size: 1.3rem; margin-bottom: 15px; }
    .btn-simular { padding: 12px 28px; font-size: 0.9rem; margin-top: 10px; }

    /* Cards benefícios pequeno */
    .card { flex: 1 1 90%; max-width: 90%; }
}
