/* Site de exemplo "Viersh Tejo" (marítimo-turístico). Independente do resto do site. */
:root {
    --em-noite: #121a33;
    --em-azul: #1b2547;
    --em-azul-2: #26335f;
    --em-dourado: #f5b72e;
    --em-dourado-2: #ffd47e;
    --em-coral: #e06c6f;
    --em-papel: #fbf7f1;
    --em-cartao: #ffffff;
    --em-texto: #1d2236;
    --em-suave: #5d6480;
    --em-linha: #e8e1d6;
    --em-raio: 18px;
    --em-sombra: 0 10px 30px rgba(18, 26, 51, .10);
    --em-topo: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--em-topo) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: "Montserrat", system-ui, sans-serif; color: var(--em-texto); background: var(--em-papel); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--em-dourado); outline-offset: 3px; border-radius: 6px; }

/* Faixa da demonstração */
.em-faixa { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; align-items: center; padding: 8px 16px;
    background: var(--em-noite); color: #dfe4f5; font-size: 13px; text-align: center; }
.em-faixa a { color: var(--em-dourado-2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.em-faixa a:hover { text-decoration: underline; }

/* Cabeçalho */
.em-topo { position: sticky; top: 0; z-index: 50; height: var(--em-topo); display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 0 clamp(16px, 4vw, 48px); background: rgba(18, 26, 51, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.em-marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.em-marca img { width: 48px; height: auto; flex: none; }
.em-marca span { display: flex; flex-direction: column; line-height: 1.1; }
.em-marca strong { font-size: 17px; letter-spacing: .02em; }
.em-marca small { font-size: 12px; color: var(--em-dourado-2); font-weight: 600; }
.em-menu { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.em-menu a { text-decoration: none; font-weight: 600; font-size: 14px; color: #e6e9f5; }
.em-menu a:not(.em-btn):hover { color: var(--em-dourado-2); }
.em-menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 28px; padding: 6px; cursor: pointer; line-height: 1; }

/* Botões */
.em-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0;
    font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.em-btn:hover { transform: translateY(-2px); }
.em-btn-dourado { background: var(--em-dourado); color: var(--em-noite) !important; box-shadow: 0 6px 18px rgba(245, 183, 46, .35); }
.em-btn-dourado:hover { background: var(--em-dourado-2); }
.em-btn-vidro { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.em-btn-escuro { background: var(--em-azul); color: #fff; }
.em-menu .em-btn { padding: 9px 18px; font-size: 14px; }

/* Banner */
.em-heroi { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.em-heroi-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: em-zoom 24s ease-in-out infinite alternate; }
.em-heroi::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(18, 26, 51, .78) 0%, rgba(18, 26, 51, .35) 55%, rgba(18, 26, 51, 0) 100%),
                linear-gradient(0deg, rgba(18, 26, 51, .55), transparent 40%); }
@keyframes em-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.em-heroi-texto { width: min(640px, 100%); padding: 48px clamp(16px, 6vw, 80px); }
.em-heroi h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.em-heroi-texto > p:not(.em-pre) { font-size: clamp(16px, 2vw, 19px); color: #eef0fa; max-width: 520px; }
.em-pre { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--em-dourado); margin: 0 0 10px; }
.em-heroi .em-pre { color: var(--em-dourado-2); }
.em-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.em-descer { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; font-size: 24px; opacity: .8; animation: em-boia 2.4s ease-in-out infinite; }
@keyframes em-boia { 50% { transform: translate(-50%, 6px); } }

/* Números */
.em-numeros { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1100px; margin: -44px auto 0; position: relative; z-index: 2;
    background: var(--em-cartao); border-radius: var(--em-raio); box-shadow: var(--em-sombra); width: calc(100% - 32px); }
.em-numeros div { padding: 20px 12px; text-align: center; display: flex; flex-direction: column; }
.em-numeros div + div { border-left: 1px solid var(--em-linha); }
.em-numeros strong { font-size: clamp(22px, 3vw, 30px); color: var(--em-azul); }
.em-numeros strong i { color: var(--em-dourado); font-size: .7em; }
.em-numeros span { font-size: 13px; color: var(--em-suave); font-weight: 600; }

/* Secções */
.em-seccao { padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.em-escuro { max-width: none; background: linear-gradient(180deg, var(--em-azul) 0%, var(--em-noite) 100%); color: #fff; }
.em-escuro > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.em-escuro .em-cabeca p:not(.em-pre) { color: #c9cfe6; }
.em-cabeca { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.em-cabeca h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.em-cabeca p:not(.em-pre) { color: var(--em-suave); margin: 0; }

/* Cartões */
.em-cartoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.em-cartao { position: relative; background: var(--em-cartao); border-radius: var(--em-raio); overflow: hidden; box-shadow: var(--em-sombra);
    display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.em-cartao:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18, 26, 51, .16); }
.em-cartao img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.em-cartao-corpo { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.em-cartao h3 { font-size: 20px; }
.em-cartao p { color: var(--em-suave); margin: 0 0 14px; font-size: 15px; }
.em-info { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 600; color: var(--em-azul-2); }
.em-info i { color: var(--em-coral); margin-right: 4px; }
.em-preco { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--em-linha); }
.em-preco span { font-size: 26px; font-weight: 800; color: var(--em-azul); }
.em-preco small { color: var(--em-suave); font-weight: 600; }
.em-destaque { outline: 3px solid var(--em-dourado); }
.em-etiqueta { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--em-dourado); color: var(--em-noite); font-size: 12px; font-weight: 800;
    padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.em-nota { font-size: 13px; color: var(--em-suave); text-align: center; margin: 22px 0 0; }

/* Galeria */
.em-galeria { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.em-foto { position: relative; padding: 0; border: 0; border-radius: var(--em-raio); overflow: hidden; cursor: zoom-in; background: var(--em-azul-2); }
.em-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.em-foto:hover img { transform: scale(1.06); }
.em-foto::after { content: attr(data-legenda); position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; text-align: left;
    color: #fff; font: 600 14px "Montserrat", sans-serif; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); }
.em-foto-grande { grid-row: span 2; grid-column: span 2; }
.em-foto-larga { grid-column: span 3; }
.em-visor { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: #fff; }
.em-visor::backdrop { background: rgba(8, 12, 26, .88); }
.em-visor img { width: 100%; border-radius: var(--em-raio); }
.em-visor p { text-align: center; margin: 12px 0 0; font-weight: 600; }
.em-visor-fechar { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(18, 26, 51, .7); color: #fff; font-size: 18px; }

/* Pedidos */
.em-pedidos { max-width: none; background: radial-gradient(1200px 500px at 0% 0%, #fde7c4 0%, transparent 60%), var(--em-papel); }
.em-pedidos-grelha { max-width: 1144px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.em-pedidos-texto h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.em-pedidos-texto > p:not(.em-pre) { color: var(--em-suave); }
.em-lista { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 600; }
.em-lista i { color: var(--em-coral); margin-right: 8px; }
.em-formulario { background: var(--em-cartao); border-radius: var(--em-raio); box-shadow: var(--em-sombra); padding: clamp(20px, 3vw, 32px); }
.em-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.em-campo { display: flex; flex-direction: column; min-width: 0; }
.em-campo-todo { grid-column: 1 / -1; }
.em-campo > label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.em-campo label small { color: var(--em-suave); font-weight: 500; }
.em-campo input:not([type=checkbox]), .em-campo select, .em-campo textarea {
    width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #d9d2c6; border-radius: 12px; font: inherit; font-size: 15px;
    background: #fff; color: var(--em-texto); transition: border-color .15s, box-shadow .15s; }
.em-campo textarea { resize: vertical; min-height: 110px; }
.em-campo input:focus, .em-campo select:focus, .em-campo textarea:focus { outline: none; border-color: var(--em-dourado); box-shadow: 0 0 0 4px rgba(245, 183, 46, .22); }
.em-campo .input-validation-error { border-color: var(--em-coral) !important; }
.em-erro { color: #c2363a; font-size: 13px; font-weight: 600; margin-top: 4px; }
.em-erro:empty { display: none; }
.em-aceito { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500 !important; cursor: pointer; }
.em-aceito input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--em-azul); flex: none; }
.em-enviar { width: 100%; margin-top: 20px; padding: 14px; font-size: 16px; }
.em-sucesso { text-align: center; padding: 20px 6px; }
.em-sucesso > i { font-size: 52px; color: #2bb673; }
.em-sucesso p { color: var(--em-suave); }

/* Rodapé */
.em-rodape { background: var(--em-noite); color: #c9cfe6; padding: 56px clamp(16px, 4vw, 48px) 24px; font-size: 14px; }
.em-rodape-grelha { max-width: 1144px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.em-rodape h4 { color: #fff; font-size: 15px; }
.em-rodape p { margin: 6px 0; }
.em-rodape i { color: var(--em-dourado); margin-right: 6px; }
.em-assinatura { max-width: 1144px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center;
    justify-content: center; gap: 10px; font-size: 13px; text-align: center; }
.em-assinatura img { width: 30px; height: auto; }
.em-assinatura a { color: var(--em-dourado-2); font-weight: 700; }
.em-creditos { max-width: 1144px; margin: 16px auto 0; font-size: 12px; opacity: .75; text-align: center; }
.em-creditos summary { cursor: pointer; display: inline-block; padding: 4px 8px; }
.em-creditos p { margin: 8px 0; }
.em-creditos ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.em-creditos a { color: inherit; text-decoration: underline; }

/* Âncora: volta ao topo */
.em-ancora { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--em-noite); background: var(--em-dourado);
    box-shadow: 0 8px 24px rgba(18, 26, 51, .35); opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
    transition: opacity .25s, transform .25s, background .15s; }
.em-ancora svg { width: 30px; height: 30px; }
.em-ancora.em-visivel { opacity: 1; transform: none; pointer-events: auto; }
.em-ancora:hover { background: var(--em-dourado-2); }
.em-ancora:hover svg { animation: em-balanco .8s ease-in-out; }
.em-ancora.em-a-subir svg { animation: em-subir .7s ease-in; }
@keyframes em-balanco { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes em-subir { to { transform: translateY(-8px); } }

/* Larguras */
@media (max-width: 980px) {
    .em-cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .em-cartoes .em-cartao:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .em-pedidos-grelha { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .em-menu-btn { display: block; }
    .em-menu { position: absolute; top: var(--em-topo); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
        background: rgba(18, 26, 51, .97); display: none; }
    .em-menu.em-aberto { display: flex; }
    .em-menu a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 16px; }
    .em-menu .em-btn { margin-top: 12px; border-bottom: 0; padding: 12px; }
    .em-galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
    .em-foto-grande { grid-column: span 2; }
    .em-foto-larga { grid-column: span 2; }
}
@media (max-width: 640px) {
    .em-numeros { grid-template-columns: repeat(2, 1fr); }
    .em-numeros div:nth-child(3) { border-left: 0; }
    .em-numeros div:nth-child(n+3) { border-top: 1px solid var(--em-linha); }
    .em-cartoes { grid-template-columns: 1fr; }
    .em-campos { grid-template-columns: 1fr; }
    .em-rodape-grelha { grid-template-columns: 1fr; gap: 20px; }
    .em-heroi { min-height: 78vh; }
    .em-heroi-img { object-position: 64% 50%; }
    .em-heroi::after { background: linear-gradient(0deg, rgba(18, 26, 51, .85) 0%, rgba(18, 26, 51, .35) 70%, rgba(18, 26, 51, .2) 100%); }
    .em-heroi-texto { align-self: flex-end; padding-bottom: 72px; }
    .em-acoes .em-btn { flex: 1 1 auto; }
    .em-galeria { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .em-foto-grande, .em-foto-larga { grid-column: auto; grid-row: auto; }
}
/* No telemóvel a âncora não tapa os créditos do rodapé. */
@media (max-width: 640px) { .em-rodape { padding-bottom: 88px; } }
.em-faixa-ancora { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; color: var(--em-dourado-2); }
