    body {
      font-family: "Segoe UI", sans-serif;
      margin: 0; padding: 0;
      background-color: #F5F5F5;
      color: #224869;
    }
    header {
      position: relative;  
      background-color: #224869;
      color: white;
      padding: 1rem 1rem 2rem 1rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-end; /* Empurra o nav para a base */
      align-items: center;
      min-height: 260px; /* Ajuste conforme necessário */      
      padding-bottom: 20px; /* Espaço opcional abaixo do nav */
    }

    .fundamentos-btn {
      padding: 0.6rem 1.2rem;
      background-color: transparent;
      color: white;
      border: 2px solid white;
      border-radius: 30px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .fundamentos-btn:hover {
      background-color: #ffffff;
      color: #224869;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .header-row {
        display: flex;
        align-items: center;      /* Centraliza verticalmente */
        justify-content: center;  /* Centraliza horizontalmente */
        gap: 24px;                /* Espaço entre logo e título */
        margin-top: 0; /* Garante que não há margem extra */
        margin-bottom: 0; /* Ou ajuste conforme necessário */
        padding-bottom: 0;    
    }

    .header-row img {
        max-height: 150px;
        width: auto;
        border-radius: 16px; /* Ajuste o valor para mais ou menos arredondado */
    }

    .header-title-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* ou center, se quiser centralizar o texto */
    }

    .header-row h1 {
    margin: 0;
    font-size: 2rem;          /* Ajuste conforme necessário */
    font-weight: bold;
    }

    .header-subtitle {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 0.5rem;
    }

    .main-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 20px; /* Espaço entre os botões */
        margin-top: 40px; /* Garante que fique na base do header */
    }

    .checkout-btn {
      padding: 0.6rem 1.2rem;
      background-color: transparent;
      color: white;
      border: 2px solid white;
      border-radius: 30px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
    }
    .checkout-btn:hover {
      background-color: #ffffff;
      color: #224869;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .header-links {
        position: absolute;
        top: 20px;    /* Ajuste conforme necessário */
        right: 20px;  /* Ajuste conforme necessário */
        display: flex;
        gap: 10px;    /* Espaço entre os ícones */
        z-index: 2;
    }
    .assert-btn {
      padding: 0.6rem 1.2rem;
      background-color: transparent;
      color: white;
      border: 2px solid white;
      border-radius: 30px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
    }
    .assert-btn:hover {
      background-color: #ffffff;
      color: #224869;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .header-links a.icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background-color: white;
      color: #224869;
      text-decoration: none;
      border-radius: 50%;
      font-size: 1.2rem;
      transition: background-color 0.3s ease;
    }
    .header-links a.icon-btn:hover {
      background-color: #ddd;
    }
    .container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      padding: 2rem;
      max-width: 1200px;
      margin: auto;
    }
    .item {
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza horizontalmente todos os filhos, incluindo img */      
        text-align: center;
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(34, 72, 105, 0.1);        
        transition: transform 0.2s ease;
    }
    .item:hover {
      transform: translateY(-5px);
    }
    .item img {
        display: block;
        margin: 0 auto;
        max-width: 200px;
        height: auto;
        margin-bottom: 1rem;        
    }
    .item h3 {
      margin: 0.5rem 0;
      color: #224869;
    }
    .item p {
      font-size: 0.95rem;
      color: #555;
    }
    .item a {
      display: inline-block;
      margin-top: 1rem;
      padding: 0.6rem 1.2rem;
      background-color: #88AD3C;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
    }
    .item a:hover {
      background-color: #6e912e;
    }
    .main-footer {
        background-color: #224869;
        color: #fff;
        text-align: center;
        padding: 1.2rem 0;
        font-size: 1rem;
        margin-top: 2rem;
        letter-spacing: 1px;
    }    

/* Responsividade básica */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 16px;
    }

    header, nav, section, footer {
        width: 100%;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .container, .content, .main, .wrapper {
        width: 100% !important;
        padding: 10px !important;
    }

    h1, h2, h3 {
        font-size: 1.2em;
    }

    .grid, .row {
        display: block;
    }
}


/* Responsividade para o header */
@media (max-width: 768px) {
    .header-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-row img {
        max-width: 80%;
        height: auto;
        margin-bottom: 10px;
    }

    .header-title-block h1 {
        font-size: 1.4em;
    }

    .header-subtitle p {
        font-size: 1em;
        padding: 0 10px;
    }

    .header-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
    }

    .icon-btn {
        font-size: 1.5em;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
    }

    .main-nav a {
        width: 90%;
        text-align: center;
        padding: 10px;
        border-radius: 5px;
    }
}


/* Correção para evitar sobreposição do logo com ícones */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-row {
        z-index: 1;
        position: relative;
        padding-bottom: 10px;
    }

    .header-links {
        margin-top: 10px;
        position: relative;
        z-index: 0;
    }

    .header-links a {
        margin: 5px;
    }

    .header-row img {
        display: block;
        margin: 0 auto 10px auto;
    }
}
