/* Ricci Despachante e Escola Náutica */

:root {
  --noite: #0d2240;
  --noite-2: #142c50;
  --azul: #1d5fa6;
  --laranja: #e2621b;
  --laranja-esc: #c4510f;
  --texto: #142338;
  --suave: #5a6779;
  --linha: #e2e7ee;
  --linha-esc: rgba(255, 255, 255, .14);
  --cinza: #f5f7fa;
  --branco: #fff;
  --fonte: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 8px;
  --topo: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--fonte); color: var(--texto); background: var(--branco); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--noite); font-stretch: 90%; letter-spacing: -.015em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button { font: inherit; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--noite); color: #fff; border-radius: var(--r); text-decoration: none; }
.pular:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; }
.estrelas { color: #f4b400; letter-spacing: .08em; }

/* Botões e links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r); font: 600 1rem/1 var(--fonte); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 19px; height: 19px; }
.btn-prim { background: var(--laranja); color: #fff; }
.btn-prim:hover { background: var(--laranja-esc); }
.btn-sec { background: transparent; color: var(--noite); border-color: #c8d1dd; }
.btn-sec:hover { border-color: var(--noite); }
.btn-p { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--azul); font-weight: 600; text-decoration: none; }
.link svg { width: 16px; height: 16px; transition: transform .15s; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover svg { transform: translateX(2px); }

/* Faixa superior */
.faixa { background: var(--noite); color: rgba(255,255,255,.78); font-size: .84rem; }
.faixa-in { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.faixa-in > * { display: inline-flex; align-items: center; gap: 8px; }
.faixa-in svg { width: 15px; height: 15px; opacity: .8; }
.faixa a { margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; }
.faixa a:hover { text-decoration: underline; }
.status b { color: #fff; font-weight: 600; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #8b97a8; }
.status.aberto .ponto { background: #3ccf7a; }
.status.fechado .ponto { background: #f08a4b; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--linha); }
@supports (backdrop-filter: blur(1px)) { .topo { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); } }
.topo-in { display: flex; align-items: center; gap: 36px; height: var(--topo); }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marca img { width: 44px; height: auto; }
.marca-txt b { display: block; font-size: 1.35rem; font-weight: 800; font-stretch: 85%; color: var(--noite); line-height: 1; letter-spacing: -.01em; }
.marca-txt small { display: block; margin-top: 3px; font-size: .74rem; color: var(--suave); line-height: 1.2; }
.menu { display: flex; gap: 30px; }
.menu a { position: relative; padding: 8px 0; font-size: .97rem; font-weight: 500; color: var(--texto); text-decoration: none; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--laranja); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.menu a:hover::after, .menu a.ativo::after { transform: scaleX(1); }
.menu a.ativo { color: var(--noite); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--linha); border-radius: var(--r); background: #fff; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--noite); transition: transform .2s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Abertura */
.hero { position: relative; overflow: hidden; background: var(--cinza); border-bottom: 1px solid var(--linha); }
.carta { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(29, 95, 166, .13); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; padding-block: 88px 96px; }
.local { margin: 0 0 18px; font-size: .95rem; font-weight: 600; color: var(--azul); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; font-stretch: 80%; line-height: .98; letter-spacing: -.02em; margin-bottom: 24px; max-width: 11ch; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--suave); max-width: 34em; margin-bottom: 32px; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.nota-google { display: inline-flex; align-items: center; gap: 10px; color: var(--suave); font-size: .95rem; text-decoration: none; }
.nota-google b { color: var(--noite); }
.nota-google .g { width: 20px; height: 20px; }
.nota-google:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.hero-logos { margin: 0; background: #fff; border: 1px solid var(--linha); border-radius: 12px; box-shadow: 0 1px 2px rgba(13,34,64,.04), 0 24px 48px -28px rgba(13,34,64,.28); }
.hero-logos-img { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-logos-img img { width: 100%; height: auto; padding: 36px 32px; }
.hero-logos-img img + img { border-left: 1px solid var(--linha); }
.hero-logos figcaption { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linha); font-size: .86rem; font-weight: 600; color: var(--suave); text-align: center; }
.hero-logos figcaption span { padding: 14px 8px; }
.hero-logos figcaption span + span { border-left: 1px solid var(--linha); }

/* Seções */
.sec { padding-block: 112px; }
.sec-cinza { background: var(--cinza); }
.sec-escura { background: var(--noite); color: rgba(255,255,255,.74); }
.cab { margin-bottom: 56px; }
.cab h2 { margin-bottom: 12px; }
.cab p { margin: 0; color: var(--suave); font-size: 1.08rem; }
.cab-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--linha); }
.cab-linha h2 { margin: 0; }
.cab-linha p { max-width: 26em; text-align: right; }

/* Serviços */
.sv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(6, auto) 1fr; column-gap: 56px; }
.sv-item { grid-column: 1; display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 4px 22px 0; border: 0; border-bottom: 1px solid var(--linha); background: none; color: var(--texto); font-size: 1.12rem; font-weight: 600; text-align: left; cursor: pointer; transition: color .15s; }
.sv-item:nth-of-type(1) { grid-row: 1; } .sv-item:nth-of-type(2) { grid-row: 2; } .sv-item:nth-of-type(3) { grid-row: 3; }
.sv-item:nth-of-type(4) { grid-row: 4; } .sv-item:nth-of-type(5) { grid-row: 5; } .sv-item:nth-of-type(6) { grid-row: 6; }
.sv-num { font-size: .82rem; font-weight: 600; color: #9aa6b6; font-variant-numeric: tabular-nums; width: 22px; }
.sv-seta { margin-left: auto; width: 18px; height: 18px; color: #b3bdca; transition: transform .2s, color .2s; }
.sv-item:hover { color: var(--noite); }
.sv-item:hover .sv-seta { color: var(--noite); }
.sv-item[aria-expanded="true"] { color: var(--noite); }
.sv-item[aria-expanded="true"] .sv-num { color: var(--laranja); }
.sv-item[aria-expanded="true"] .sv-seta { color: var(--laranja); transform: translateX(4px); }
.sv-painel { grid-column: 2; grid-row: 1 / -1; align-self: start; padding: 44px 48px; background: var(--cinza); border-radius: 12px; }
.js .sv-painel { display: none; }
.js .sv-painel.aberto { display: block; animation: surgir .25s ease; }
@keyframes surgir { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sv-painel h3 { font-size: 1.75rem; font-stretch: 85%; margin-bottom: 16px; }
.sv-desc { color: var(--suave); font-size: 1.06rem; margin-bottom: 28px; }
.sv-dados { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 32px; padding-top: 24px; border-top: 1px solid var(--linha); }
.sv-dados dt { font-size: .82rem; font-weight: 600; color: var(--azul); margin-bottom: 6px; }
.sv-dados dd { margin: 0; color: var(--texto); }

/* Escola */
.escola { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: center; }
.escola-fotos { position: relative; padding-bottom: 72px; }
.escola-fotos img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.escola-fotos .f1 { width: 76%; aspect-ratio: 4 / 5; }
.escola-fotos .f1 img { object-position: 50% 28%; }
.escola-fotos .f2 { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; padding: 6px; background: var(--noite); border-radius: 14px; }
.escola-fotos .f2 img { object-position: 50% 36%; }
.escola-txt h2 { color: #fff; margin-bottom: 18px; }
.sec-escura .lead { color: rgba(255,255,255,.72); margin-bottom: 36px; }
.escola-lista { margin: 0 0 36px; border-top: 1px solid var(--linha-esc); }
.escola-lista div { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--linha-esc); }
.escola-lista dt { color: #fff; font-weight: 600; }
.escola-lista dd { margin: 0; }
.escola-citacao { margin: 0 0 36px; }
.escola-citacao p { margin: 0 0 10px; color: #fff; font-size: 1.15rem; font-style: italic; line-height: 1.5; }
.escola-citacao footer { font-size: .9rem; color: rgba(255,255,255,.55); }

/* Como funciona */
.etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.etapas li { padding-top: 22px; border-top: 2px solid var(--noite); }
.etapas li:last-child { border-top-color: var(--laranja); }
.etapas span { display: block; margin-bottom: 14px; font-size: .9rem; font-weight: 700; color: var(--laranja); font-variant-numeric: tabular-nums; }
.etapas h3 { margin-bottom: 8px; }
.etapas p { margin: 0; color: var(--suave); }

/* Avaliações */
.aval { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 80px; align-items: start; }
.aval-resumo { position: sticky; top: calc(var(--topo) + 32px); }
.aval-resumo h2 { margin-bottom: 28px; }
.aval-nota { display: flex; align-items: baseline; gap: 14px; margin: 0 0 6px; }
.aval-nota b { font-size: 4.2rem; font-weight: 800; font-stretch: 80%; color: var(--noite); line-height: 1; letter-spacing: -.03em; }
.aval-nota .estrelas { font-size: 1.25rem; }
.aval-total { display: flex; align-items: center; gap: 8px; color: var(--suave); margin-bottom: 20px; }
.aval-total .g { width: 18px; height: 18px; }
.aval-lista { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.aval-lista figure { margin: 0; padding: 28px 0; border-top: 1px solid #dbe1e9; }
.aval-lista blockquote { margin: 0 0 14px; font-size: 1.04rem; line-height: 1.6; color: var(--texto); }
.aval-lista figcaption { font-size: .92rem; font-weight: 600; color: var(--noite); }
.aval-lista figcaption::before { content: "★★★★★"; margin-right: 10px; color: #f4b400; letter-spacing: .08em; font-size: .82rem; }
.js .aval-lista:not(.todas) .extra { display: none; }
.aval-mais { grid-column: 2; justify-self: start; margin-top: 12px; }

/* Dúvidas */
.duvidas { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 80px; }
.faq { border-top: 1px solid var(--linha); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font-size: 1.1rem; font-weight: 600; color: var(--noite); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--azul); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--laranja); }
.faq summary:hover { color: var(--azul); }
.faq details p { margin: -6px 0 24px; padding-right: 48px; color: var(--suave); max-width: 46em; }

/* Atendimento */
.atend { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; padding: 40px; background: #fff; border: 1px solid var(--linha); border-radius: 12px; }
.form h3, .form-nota, .campo-largo, .form .btn { grid-column: 1 / -1; }
.form h3 { font-size: 1.4rem; }
.form-nota { margin: -8px 0 4px; color: var(--suave); font-size: .95rem; }
.campo { display: grid; gap: 8px; align-content: start; }
.campo label { font-size: .92rem; font-weight: 600; color: var(--noite); }
.campo label span { margin-left: 4px; font-weight: 400; color: #8a95a5; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 13px 14px; font: 400 1rem/1.4 var(--fonte); color: var(--texto); background: #fff; border: 1px solid #ccd5e0; border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.campo select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6779' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: #a9b5c4; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(29,95,166,.15); }
.campo.erro input, .campo.erro select { border-color: #c2410c; }
.campo-erro { margin: 0; font-size: .86rem; color: #c2410c; }
.campo-erro:empty { display: none; }
.form .btn { justify-self: start; margin-top: 4px; }
.contato { display: grid; gap: 0; background: #fff; border: 1px solid var(--linha); border-radius: 12px; }
.contato-bloco { padding: 28px 32px; }
.contato-bloco + .contato-bloco { border-top: 1px solid var(--linha); }
.contato-bloco h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1rem; font-stretch: 100%; letter-spacing: 0; }
.contato-bloco h3 svg { width: 18px; height: 18px; color: var(--laranja); }
.contato-bloco p { margin: 0 0 10px; color: var(--suave); }
.contato-bloco p:last-child { margin-bottom: 0; }
.contato-bloco p a { color: var(--noite); font-weight: 600; text-decoration: none; white-space: nowrap; }
.contato-bloco p a:hover { text-decoration: underline; }
.horas { width: 100%; border-collapse: collapse; font-size: .97rem; }
.horas th, .horas td { padding: 7px 0; text-align: left; font-weight: 400; color: var(--suave); }
.horas td { text-align: right; color: var(--noite); font-weight: 600; }
.horas tr.hoje th, .horas tr.hoje td { color: var(--laranja); }
.mapa { position: relative; height: 440px; background: #e7ecf2; border-top: 1px solid var(--linha); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* Rodapé */
.rodape { background: var(--noite); color: rgba(255,255,255,.66); font-size: .95rem; }
.rodape-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 48px; padding-block: 72px 56px; }
.rodape-marca { display: flex; align-items: flex-start; gap: 14px; }
.rodape-marca img { width: 56px; height: auto; padding: 4px; background: #fff; border-radius: 50%; }
.rodape-marca p { margin: 4px 0 0; line-height: 1.4; }
.rodape-marca b { color: #fff; font-size: 1.2rem; font-stretch: 85%; }
.rodape h4 { margin-bottom: 16px; font-size: .95rem; font-stretch: 100%; letter-spacing: 0; color: #fff; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rodape-fim { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--linha-esc); font-size: .88rem; }
.rodape-fim p { margin: 0; }

/* WhatsApp */
.wa-flut { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); transition: transform .15s; }
.wa-flut:hover { transform: scale(1.05); }
.wa-flut svg { width: 28px; height: 28px; }
.barra { display: none; }

/* Tablet */
@media (max-width: 1024px) {
  .wrap { padding-inline: 24px; }
  .menu { position: fixed; top: var(--topo-real, 112px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px 24px 20px; background: #fff; border-bottom: 1px solid var(--linha); box-shadow: 0 24px 32px -24px rgba(13,34,64,.3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s; }
  .menu.aberto { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: 16px 0; border-bottom: 1px solid var(--linha); font-size: 1.05rem; }
  .menu a:last-child { border-bottom: 0; }
  .menu a::after { display: none; }
  .menu-btn { display: block; }
  .topo-cta { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; padding-block: 64px 72px; }
  .hero-logos { max-width: 560px; }
  .sec { padding-block: 88px; }
  .escola { grid-template-columns: 1fr; gap: 56px; }
  .escola-fotos { order: 2; max-width: 560px; }
  .aval, .duvidas { grid-template-columns: 1fr; }
  .aval-resumo { position: static; margin-bottom: 32px; }
  .aval-mais { grid-column: 1; }
  .duvidas .cab { margin-bottom: 32px; }
  .atend { grid-template-columns: 1fr; }
  .etapas { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .rodape-grid { grid-template-columns: 1fr 1fr; }
}

/* Serviços viram lista sanfona */
@media (max-width: 860px) {
  .sv { display: block; border-top: 1px solid var(--linha); }
  .sv-item { padding: 20px 0; }
  .sv-item[aria-expanded="true"] { border-bottom-color: transparent; }
  .sv-item[aria-expanded="true"] .sv-seta { transform: rotate(90deg); }
  .sv-painel { padding: 4px 0 28px 40px; background: none; border-radius: 0; border-bottom: 1px solid var(--linha); }
  .sv-painel h3 { display: none; }
}

/* Celular */
@media (max-width: 640px) {
  :root { --topo: 64px; }
  body { font-size: 1rem; padding-bottom: 76px; }
  .wrap { padding-inline: 18px; }
  .faixa-in { gap: 16px; min-height: 36px; font-size: .8rem; }
  .faixa-in > span:first-child { display: none; }
  .marca img { width: 38px; }
  .marca-txt b { font-size: 1.2rem; }
  .marca-txt small { font-size: .7rem; }
  .hero-in { padding-block: 44px 52px; gap: 40px; }
  .hero h1 { font-size: 2.75rem; }
  .lead { font-size: 1.05rem; }
  .hero-acoes .btn { flex: 1 1 100%; }
  .hero-logos-img img { padding: 22px 18px; }
  .sec { padding-block: 64px; }
  .cab { margin-bottom: 32px; }
  .cab-linha { display: block; padding-bottom: 20px; }
  .cab-linha h2 { margin-bottom: 8px; }
  .cab-linha p { text-align: left; }
  .sv-painel { padding-left: 0; }
  .sv-dados { grid-template-columns: 1fr; gap: 16px; }
  .sv-painel .btn { width: 100%; }
  .escola-lista div { grid-template-columns: 1fr; gap: 4px; }
  .escola-fotos { padding-bottom: 48px; }
  .escola-txt .btn { width: 100%; }
  .etapas { grid-template-columns: 1fr; gap: 28px; }
  .aval-lista { grid-template-columns: 1fr; }
  .aval-nota b { font-size: 3.4rem; }
  .aval-mais { width: 100%; }
  .faq summary { font-size: 1.02rem; padding: 20px 0; }
  .faq details p { padding-right: 0; }
  .form { grid-template-columns: 1fr; padding: 28px 20px; }
  .form .btn { width: 100%; }
  .contato-bloco { padding: 24px 20px; }
  .mapa { height: 320px; }
  .rodape-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 52px 36px; }
  .rodape-fim { flex-direction: column; }
  .wa-flut { display: none; }
  .barra { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linha); }
  .barra a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r); font-weight: 600; text-decoration: none; color: var(--noite); border: 1px solid #ccd5e0; }
  .barra svg { width: 19px; height: 19px; }
  .barra .barra-wa { background: #25d366; border-color: #25d366; color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .faixa, .topo, .wa-flut, .barra, .mapa, .form { display: none !important; }
  .js .sv-painel { display: block !important; }
}

/* Ajustes finos */
#como .cab-linha { border-bottom: 0; padding-bottom: 0; }
.rodape-fim { position: relative; border-top: 0; }
.rodape-fim::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; border-top: 1px solid var(--linha-esc); }
@media (min-width: 641px) { .rodape-fim a { margin-right: 76px; } }
@media (max-width: 1024px) { .rodape-fim::before { left: 24px; right: 24px; } }
@media (max-width: 640px) { .rodape-fim::before { left: 18px; right: 18px; } }
@media (max-width: 860px) { #servicos .cab-linha { border-bottom: 0; padding-bottom: 0; } }
@media (max-width: 640px) {
  .faixa-in { justify-content: center; }
  .faixa-in a { display: none; }
  .status { white-space: nowrap; }
}

/* ---------- Abertura: barco abrindo a tela ---------- */
.abertura { --bw: 640px; position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; transition: opacity .35s ease; }
.sem-abertura .abertura { display: none; }
.abertura.fim { opacity: 0; }
.ab-metade { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--noite); will-change: transform; }
.ab-cima { top: 0; box-shadow: 0 1px 0 rgba(140,200,240,.4); background: linear-gradient(180deg, #0a1b34, var(--noite)); animation: ab-cima 1s cubic-bezier(.76, 0, .24, 1) 3.15s forwards; }
.ab-baixo { bottom: 0; box-shadow: 0 -1px 0 rgba(140,200,240,.4); background: linear-gradient(0deg, #0a1b34, var(--noite)); animation: ab-baixo 1s cubic-bezier(.76, 0, .24, 1) 3.15s forwards; }
@keyframes ab-cima { to { transform: translate3d(0, -101%, 0); } }
@keyframes ab-baixo { to { transform: translate3d(0, 101%, 0); } }

.ab-marca { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: translate(-50%, -50%); opacity: 0; animation: ab-marca 2.1s ease forwards; }
.ab-marca img { width: 88px; height: auto; padding: 6px; background: #fff; border-radius: 50%; }
.ab-marca span { color: #fff; font-size: 1.1rem; font-weight: 700; font-stretch: 85%; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; }
@keyframes ab-marca {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(.94); }
  18%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(.98); }
}

.ab-rastro { position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.9)); box-shadow: 0 0 14px rgba(140,200,240,.55); transform: scaleX(0); transform-origin: left; animation: ab-rastro 2s cubic-bezier(.45, .05, .3, 1) 1.4s forwards, ab-some .4s ease 3.25s forwards; }
@keyframes ab-rastro { to { transform: scaleX(1); } }
@keyframes ab-some { to { opacity: 0; } }

.ab-barco { position: absolute; left: 0; top: 50%; width: var(--bw); height: auto; transform: translate3d(calc(var(--bw) * -1), -50%, 0); animation: ab-barco 2s cubic-bezier(.45, .05, .3, 1) 1.4s forwards; will-change: transform; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
@keyframes ab-barco { to { transform: translate3d(100vw, -50%, 0); } }

@media (max-width: 640px) {
  .abertura { --bw: 380px; }
  .ab-marca img { width: 72px; }
}

/* ---------- Entrada da capa ---------- */
.com-abertura { --capa: 3.35s; }
.sem-abertura { --capa: .05s; }
.js .hero-txt > *, .js .hero-logos { animation: subir .8s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--capa, 0s) + var(--i, 0) * 90ms); }
.hero-txt > :nth-child(1) { --i: 0; }
.hero-txt > :nth-child(2) { --i: 1; }
.hero-txt > :nth-child(3) { --i: 2; }
.hero-txt > :nth-child(4) { --i: 3; }
.hero-txt > :nth-child(5) { --i: 4; }
.hero-logos { --i: 3; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Linhas da carta náutica derivando devagar */
.carta g { animation: deriva 26s ease-in-out infinite alternate; }
@keyframes deriva { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-48px, 10px, 0); } }

/* ---------- Revelar ao rolar ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .1, 1); transition-delay: var(--atraso, 0ms); }
.js .rv.visto { opacity: 1; transform: none; }
.escola-fotos img { transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.js .escola-fotos.rv:not(.visto) img { transform: scale(1.06); }

/* Botões: brilho sutil ao passar o mouse */
.btn-prim { position: relative; overflow: hidden; }
.btn-prim::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); transition: left .6s ease; pointer-events: none; }
.btn-prim:hover::after { left: 120%; }

@media (prefers-reduced-motion: reduce) {
  .abertura { display: none; }
  .js .hero-txt > *, .js .hero-logos, .carta g { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}
