/* Tiago Serra · kit do demo surf em blocos (PT/EN/FR). Valores só deste site; a estrutura é do tema. */

body {
	--ts-mar: var(--wp--preset--color--mar, #0E3B43);
	--ts-mar-2: var(--wp--preset--color--mar-2, #1F5F66);
	--ts-telha: var(--wp--preset--color--telha, #B8452A);
	--ts-telha-escura: var(--wp--preset--color--telha-escura, #9C3A23);
	--ts-coral: var(--wp--preset--color--coral, #F08A6C);
	--ts-creme: var(--wp--preset--color--creme, #F4ECDF);
	--ts-areia: var(--wp--preset--color--areia, #E7D8C0);
	--ts-suave: var(--wp--preset--color--texto-suave, #4D6468);
	--ts-raio: 20px;
	--ts-ease: cubic-bezier(.22,.61,.36,1);
	background: var(--ts-creme);
	color: var(--ts-mar);
	font-family: var(--wp--preset--font-family--texto);
}
h1, h2, h3, .wp-block-heading { font-family: var(--wp--preset--font-family--titulo); font-weight: 800; text-transform: uppercase; color: inherit; letter-spacing: .01em; text-wrap: balance; }
p { text-wrap: pretty; }
main.fs-pagina-blocos { margin-block: 0 !important; }
.fs-pagina-blocos > * { margin-block: 0 !important; }

.wp-block-button__link { transition: background-color .2s, color .2s, transform .2s var(--ts-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline > .wp-block-button__link { background: transparent !important; color: inherit !important; border: 2px solid currentColor !important; }

/* Peças comuns */
.ts-sec { padding: clamp(72px, 9vw, 120px) var(--wp--preset--spacing--lateral); background: var(--ts-creme); }
.ts-sec--branco { background: #fff; }
.ts-sec--areia { background: var(--ts-areia); }
.ts-sec--mar { background: var(--ts-mar); color: #fff; }
.ts-sec h2, .ts-pagina h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: .95; margin: 14px 0 0; }
.ts-sobretitulo { margin: 0; font-size: .75rem !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ts-telha); }
.ts-sec--mar .ts-sobretitulo { color: var(--ts-coral); }
.ts-intro { color: var(--ts-suave); font-size: 1.125rem; line-height: 1.6; margin-top: 18px; max-width: 46rem; }
.ts-num { margin: 0; font-family: var(--wp--preset--font-family--titulo); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ts-telha); flex: none; }
.ts-pilula { display: inline-block; align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--ts-mar); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ts-pilula--telha { background: var(--ts-telha); }
.ts-chip { margin: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ts-areia); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ts-chip--claro { border-color: rgba(255,255,255,.45); color: #fff; padding: 9px 14px; }
.ts-chips { gap: 10px; }
.ts-foto { margin: 0; border-radius: var(--ts-raio); overflow: hidden; }
.ts-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Cabeçalho (por cima da foto do topo na página inicial) */
.ts-cab { position: relative; z-index: 20; padding: 0 clamp(16px, 4vw, 58px); background: var(--ts-mar); color: #fff; }
body:has(.ts-heroi, .ts-pagina__topo) .ts-cab { position: absolute; left: 0; right: 0; background: transparent; }
.ts-cab__linha { padding: 22px 0; gap: 24px; align-items: center; }
.ts-cab p { margin: 0; }
.ts-cab__nome { font-family: var(--wp--preset--font-family--titulo); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.ts-cab__nome a { color: inherit; text-decoration: none; }
.ts-cab__local { font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.ts-cab__nav { font-weight: 600; font-size: 1rem; color: #fff; }
.ts-cab__nav a { text-decoration: none; }
.ts-cab__nav a:hover { color: var(--ts-coral); }
.ts-cab__acoes { gap: 20px; align-items: center; }
.ts-idiomas { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; }
.ts-idiomas a { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 999px; color: #fff; font-size: .75rem; font-weight: 700; text-decoration: none; }
.ts-idiomas a[aria-current="true"] { background: #fff; color: var(--ts-mar); }
.ts-idiomas a:not([aria-current="true"]):hover { background: rgba(255,255,255,.15); }
.ts-cab__botao .wp-block-button__link { padding: 12px 22px; }
@media (max-width: 781px) {
	.ts-cab__nav { order: 3; }
	.ts-cab__botao { display: none !important; }
	.ts-cab__nome { font-size: 1.375rem; }
	.ts-cab__local { font-size: .625rem; }
	.ts-cab__acoes { margin-left: auto; gap: 8px; }
}

/* Herói */
.ts-heroi { min-height: 100svh !important; padding: 150px clamp(16px, 4vw, 58px) 0 !important; align-items: stretch !important; color: #fff; }
.ts-heroi .ts-capa-picture { position: absolute; inset: 0; display: block; }
.ts-heroi .wp-block-cover__image-background { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; object-position: 60% 40%; }
.ts-heroi > .wp-block-cover__inner-container { max-width: none !important; width: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.ts-heroi > .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.ts-heroi__conteudo { gap: 22px; max-width: 40rem !important; margin-block: auto !important; padding-block: 40px; }
.ts-heroi .ts-sobretitulo { color: var(--ts-areia); }
.ts-heroi__titulo { margin: 0; font-size: clamp(3.2rem, 6.6vw, 5.5rem); line-height: .93; color: #fff; }
.ts-heroi__texto { margin: 0; font-size: 1.25rem; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 34rem; }
.ts-heroi .is-style-outline > .wp-block-button__link { color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.ts-heroi .is-style-outline > .wp-block-button__link:hover { background: #fff !important; color: var(--ts-mar) !important; }
.ts-garantias { gap: 8px 40px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.3); }
.ts-garantia { margin: 0; font-weight: 600; font-size: .9375rem; color: rgba(255,255,255,.9); }
.ts-garantia::before { content: "✓  "; color: var(--ts-coral); }
@media (max-width: 781px) {
	.ts-heroi { padding-top: 110px !important; }
	.ts-heroi .wp-block-cover__image-background { object-position: 50% 30%; }
	.ts-heroi .wp-block-cover__background { background: linear-gradient(180deg, rgba(14,59,67,.45) 0%, rgba(14,59,67,.75) 60%, rgba(14,59,67,.92) 100%) !important; }
	.ts-heroi__titulo { font-size: clamp(2.6rem, 12vw, 3.4rem); }
	.ts-heroi__texto { font-size: 1.0625rem; }
	.ts-garantias { flex-direction: column; gap: 6px; }
}

/* Aulas: cartões ligados à coleção */
.ts-aulas { gap: 20px !important; margin-top: 56px !important; }
.ts-aula { height: 100%; background: #fff; border-radius: var(--ts-raio); overflow: hidden; gap: 0 !important; box-shadow: 0 10px 30px rgba(14,59,67,.06); }
.ts-aula p { margin: 0; }
.ts-aula__foto { position: relative; margin: 0 !important; }
.ts-aula__foto .wp-block-post-featured-image { margin: 0; }
.ts-aula__foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ts-ease); }
.ts-aula:hover .ts-aula__foto img { transform: scale(1.03); }
.ts-aula__etiqueta { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--ts-telha); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ts-aula__texto { padding: 24px 24px 18px; gap: 8px; flex: 1; margin: 0 !important; }
.ts-aula__titulo { margin: 0; font-size: 1.875rem; line-height: 1; }
.ts-aula__titulo a { color: inherit; text-decoration: none; }
.ts-aula__resumo { color: var(--ts-suave); line-height: 1.5; }
.ts-aula__aulas { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px !important; }
.ts-aula__rodape { padding: 18px 24px 24px; border-top: 1px solid var(--ts-creme); gap: 12px; margin: 0 !important; }
.ts-aula__preco { font-family: var(--wp--preset--font-family--titulo); font-weight: 800; font-size: 2rem; line-height: 1; }
.ts-aula__botoes .wp-block-button, .ts-aula__botoes .wp-block-button__link { width: 100%; }
.ts-aula__botoes .wp-block-button__link { padding: 11px 18px; }

/* Para quem */
.ts-paraquem__colunas, .ts-seguranca__colunas { gap: clamp(32px, 6vw, 72px) !important; }
.ts-paraquem__foto img { aspect-ratio: 5 / 6; }
.ts-perfis { margin-top: 32px; }
.ts-perfil { gap: 36px; padding: 26px 0; border-bottom: 1px solid var(--ts-areia); margin: 0 !important; }
.ts-perfil__texto { gap: 8px; flex: 1; }
.ts-perfil h3 { margin: 0; font-size: 1.75rem; }
.ts-perfil p:not(.ts-num) { margin: 0; color: var(--ts-suave); line-height: 1.6; }

/* Como funciona */
.ts-passos { gap: 32px !important; margin-top: 56px !important; }
.ts-passo { gap: 12px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.3); }
.ts-passo .ts-num { color: var(--ts-coral); font-size: 3rem; }
.ts-passo h3 { margin: 6px 0 0; font-size: 1.75rem; line-height: 1; }
.ts-passo p:not(.ts-num) { margin: 0; color: rgba(255,255,255,.78); line-height: 1.6; }
.ts-faixa-mar { margin-top: 56px !important; padding: 32px 40px; border-radius: var(--ts-raio); background: var(--ts-telha); gap: 32px; }
.ts-faixa-mar h3 { margin: 0; font-size: 1.75rem; flex: none; }
.ts-faixa-mar p { margin: 0; line-height: 1.6; }
@media (max-width: 781px) { .ts-faixa-mar { flex-direction: column; align-items: flex-start !important; gap: 10px; padding: 26px; } }

/* Praias (em escada) */
.ts-praias { gap: 28px !important; margin-top: 56px !important; align-items: start; }
.ts-praia { gap: 12px; }
.ts-praia p { margin: 0; }
.ts-praia h3 { margin: 4px 0 0; font-size: 2rem; line-height: 1; }
.ts-praia p:not(.ts-pilula) { color: var(--ts-suave); line-height: 1.6; }
.ts-praia__foto img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .ts-praia:nth-child(2) { margin-top: 64px !important; } .ts-praia:nth-child(3) { margin-top: 128px !important; } }

/* Segurança */
.ts-seguranca__foto img { aspect-ratio: 4 / 5; }
.ts-numeros { gap: 24px !important; margin-top: 28px !important; padding-top: 24px; border-top: 1px solid var(--ts-areia); }
.ts-numero { gap: 4px; }
.ts-numero p { margin: 0; }
.ts-numero__valor { font-family: var(--wp--preset--font-family--titulo); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--ts-telha); }
.ts-numero__legenda { font-size: .875rem; color: var(--ts-suave); }

/* Avaliações */
.ts-avaliacoes { gap: 20px !important; margin-top: 56px !important; }
.ts-avaliacao { padding: 32px; background: #fff; border-radius: var(--ts-raio); gap: 18px; }
.ts-avaliacao p { margin: 0; }
.ts-avaliacao .ts-chip { align-self: flex-start; color: var(--ts-mar); }
.ts-avaliacao__texto { font-size: 1.25rem; line-height: 1.5; flex: 1; }
.ts-avaliacao__autor { font-size: .875rem; font-weight: 700; color: var(--ts-suave); }

/* Perguntas */
.ts-faq__colunas { gap: clamp(32px, 6vw, 80px) !important; }
.ts-faq { border-top: 1px solid var(--ts-areia); }
.ts-faq .wp-block-details { margin: 0; padding: 26px 0; border-bottom: 1px solid var(--ts-areia); }
.ts-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.25rem; }
.ts-faq summary::-webkit-details-marker { display: none; }
.ts-faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .25s var(--ts-ease); }
.ts-faq details[open] summary::after { transform: rotate(45deg); }
.ts-faq details p { margin: 14px 0 0; color: var(--ts-suave); line-height: 1.65; max-width: 44rem; }

/* Marcar + rodapé (parte "Rodapé") */
.ts-marcar { margin: 0 !important; padding: clamp(80px, 10vw, 130px) var(--wp--preset--spacing--lateral); background: var(--ts-telha); color: #fff; text-align: center; }
.ts-marcar__conteudo { gap: 18px; }
.ts-marcar h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: .95; }
.ts-marcar p { margin: 0; }
.ts-marcar__texto { font-size: 1.125rem; }
.ts-marcar__botoes { margin-top: 10px !important; }
.ts-marcar__botoes .wp-block-button__link { background: var(--ts-mar) !important; color: #fff !important; padding: 18px 36px; font-size: 1.0625rem; }
.ts-marcar__botoes .wp-block-button__link:hover { background: #072A30 !important; }
.ts-marcar__nota { font-size: .875rem; opacity: .92; margin-top: 10px !important; }
.ts-rodape { margin: 0 !important; padding: 64px var(--wp--preset--spacing--lateral) 36px; background: var(--ts-mar); color: #fff; }
.ts-rodape p { margin: 0; }
.ts-rodape a { color: inherit; }
.ts-rodape__topo { gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.25); }
.ts-rodape__nome { font-family: var(--wp--preset--font-family--titulo); font-weight: 800; font-size: 2.6rem; line-height: 1; text-transform: uppercase; }
.ts-rodape__nome a { text-decoration: none; }
.ts-rodape__local { font-size: .875rem; color: rgba(255,255,255,.7); margin-top: 6px !important; }
.ts-rodape__contactos { gap: 8px; text-align: right; align-items: flex-end !important; }
.ts-rodape__telefone { font-weight: 700; font-size: 1.125rem; }
.ts-rodape__telefone a { text-decoration: none; }
.ts-rodape__link { font-size: .875rem; color: rgba(255,255,255,.7); }
.ts-rodape__link a { text-decoration: none; }
.ts-rodape__link a:hover { text-decoration: underline; }
.ts-rodape__legal { margin-top: 24px !important; font-size: .75rem; color: rgba(255,255,255,.6); }
.ts-rodape__assinatura { margin-top: 18px !important; text-align: center; font-size: .8125rem; color: rgba(255,255,255,.65); }
.ts-rodape__assinatura a { font-weight: 700; color: #fff; text-decoration: none; }
.fs-barra { background: var(--ts-mar); color: #fff; }

/* Lista de aulas e página da aula */
.ts-pagina__topo { margin: 0 !important; padding: 170px var(--wp--preset--spacing--lateral) 80px; background: var(--ts-mar); color: #fff; }
.ts-pagina__topo h1 { margin: 14px 0 0; font-size: clamp(2.8rem, 5.4vw, 4.6rem); line-height: .93; }
.ts-pagina__topo .ts-sobretitulo { color: var(--ts-areia); }
.ts-pagina__topo .ts-intro { color: rgba(255,255,255,.88); }
.ts-pagina__lista { margin: 0 !important; padding: 0 var(--wp--preset--spacing--lateral) 100px; background: #fff; }
.ts-pagina__lista .ts-aulas { margin-top: 0 !important; transform: translateY(-40px); }
.ts-pagina__lista .ts-aula { border: 1px solid var(--ts-areia); }
.ts-plano__topo { padding-top: 150px; padding-bottom: 88px; }
.ts-plano__colunas { gap: clamp(32px, 6vw, 72px) !important; }
.ts-plano__info > * { margin-block: 0 !important; }
.ts-plano__info { display: flex; flex-direction: column; gap: 18px; }
.ts-plano__titulo { margin: 0 !important; font-size: clamp(3rem, 6vw, 5rem) !important; line-height: .93; }
.ts-plano__resumo { font-size: 1.25rem; color: rgba(255,255,255,.9); margin: 0; }
.ts-plano__valor { gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.3); }
.ts-plano__preco { margin: 0; font-family: var(--wp--preset--font-family--titulo); font-weight: 800; font-size: 3.4rem; line-height: 1; }
.ts-plano__botoes { gap: 12px; }
.ts-plano__botoes .is-style-outline > .wp-block-button__link { color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.ts-plano__foto img { aspect-ratio: 4 / 5; }
.ts-plano__corpo { margin: 0 !important; padding: clamp(64px, 8vw, 104px) var(--wp--preset--spacing--lateral); background: #fff; }
.ts-plano__corpo-colunas { gap: clamp(32px, 6vw, 80px) !important; }
.ts-plano__descricao p { font-size: 1.1875rem; line-height: 1.65; color: var(--ts-suave); }
.ts-plano__inclui-titulo { margin: 0 !important; font-size: 2rem !important; }
.ts-inclui { list-style: none; padding: 0; margin: 18px 0 0; }
.ts-inclui li { padding: 16px 0; border-bottom: 1px solid var(--ts-areia); font-size: 1.0625rem; }
.ts-plano__outras { margin: 0 !important; padding: clamp(72px, 9vw, 120px) var(--wp--preset--spacing--lateral); background: var(--ts-creme); }
.ts-plano__outras .ts-aulas { margin-top: 48px !important; }
@media (max-width: 781px) {
	.ts-pagina__topo { padding-top: 130px; }
	.ts-pagina__lista .ts-aulas { transform: translateY(-24px); }
}

/* Popup de saída */
.ts-popup-saida .fs-popup__box { max-width: 520px; padding: 40px 36px 32px; border-radius: 20px; background: #fff; color: var(--ts-mar); font-family: var(--wp--preset--font-family--texto); }
.ts-popup-saida h2 { font-family: var(--wp--preset--font-family--titulo); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; margin: 8px 0 12px; }
.ts-popup-saida__sobre { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ts-telha); margin: 0; }
.ts-popup-saida__texto { color: var(--ts-suave); line-height: 1.6; margin: 0 0 22px; }
.ts-popup-saida__botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.ts-popup-saida__botoes a { padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ts-areia); color: var(--ts-mar); font-weight: 700; text-decoration: none; }
.ts-popup-saida__botoes a.is-principal { background: var(--ts-telha); border-color: var(--ts-telha); color: #fff; }
.ts-popup-saida__nota { font-size: .75rem; color: var(--ts-suave); margin: 18px 0 0; }

/* Movimento subtil (só com html.ts-mov; nunca com "reduzir movimento") */
@keyframes ts-sobe { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes ts-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes ts-assenta { from { transform: scale(1.045); } to { transform: none; } }
.ts-mov .ts-cab { animation: ts-aparece .8s var(--ts-ease) both; }
.ts-mov .ts-heroi__conteudo > * { animation: ts-sobe .9s var(--ts-ease) both; animation-delay: .15s; }
.ts-mov .ts-heroi__conteudo > :nth-child(2) { animation-delay: .25s; }
.ts-mov .ts-heroi__conteudo > :nth-child(3) { animation-delay: .4s; }
.ts-mov .ts-heroi__conteudo > :nth-child(4) { animation-delay: .52s; }
.ts-mov .ts-garantias { animation: ts-aparece 1s var(--ts-ease) .7s both; }
.ts-mov .ts-heroi .wp-block-cover__image-background { animation: ts-assenta 2.4s var(--ts-ease) both; }
.ts-mov .ts-rev { transition: opacity .9s var(--ts-ease) var(--ts-d, 0ms), transform .9s var(--ts-ease) var(--ts-d, 0ms); }
.ts-mov .ts-rev:not(.is-in) { opacity: 0; transform: translate3d(0, 18px, 0); }
.ts-mov .ts-rev-foto img { transition: transform 1.6s var(--ts-ease) var(--ts-d, 0ms), opacity 1s var(--ts-ease) var(--ts-d, 0ms); }
.ts-mov .ts-rev-foto:not(.is-in) img { opacity: 0; transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
	.ts-mov *, .ts-mov *::before, .ts-mov *::after { animation: none !important; }
	.ts-mov .ts-rev, .ts-mov .ts-rev-foto img { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* Grelhas com o número certo de colunas no computador */
@media (min-width: 900px) {
	.ts-passos { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.ts-praias { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.ts-avaliacoes { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 600px) and (max-width: 899px) { .ts-passos, .ts-praias, .ts-avaliacoes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.ts-rodape__topo > .wp-block-group:first-child { gap: 6px; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.ts-cab__nav, .ts-cab__nav .wp-block-navigation-item { font-size: 1rem !important; }
.ts-rodape__contactos { gap: 6px !important; }
.ts-sec--areia .ts-sobretitulo { color: var(--ts-telha-escura); }
.ts-pagina .ts-aula__titulo { font-size: 1.875rem !important; margin: 0 !important; }
