/*
Theme Name: Garagem da Lapa
Theme URI: https://garagemdalapa.pt/
Author: Garagem da Lapa
Description: Tema à medida para a Garagem da Lapa — oficina auto e moto no Porto desde 1955. Compatível com Elementor e Formidable Forms.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: garagemdalapa
*/

/* ===== 1. Variáveis (as cores do Personalizar entram por CSS inline) ===== */
:root {
	--gl-red: #e10a17;
	--gl-red-dark: #b5070f;
	--gl-dark: #16181b;
	--gl-light: #f3f3f1;
	--gl-line: #e3e3e0;
	--gl-text: #5d6168;
	--gl-head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
	--gl-body: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
	--gl-radius: 14px;
	--gl-pill: 999px;
	--gl-shadow: 0 18px 40px rgba(22, 24, 27, .1);
	--gl-header-h: 84px;
	--gl-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ===== 2. Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--gl-text); font: 16px/1.7 var(--gl-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gl-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gl-red-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--gl-dark); font-family: var(--gl-head); font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 2px solid var(--gl-red); outline-offset: 3px; }
section[id] { scroll-margin-top: 80px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; top: 10px; left: 10px; z-index: 100000; padding: 12px 20px; background: #fff; color: var(--gl-dark); }

.gl-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.gl-narrow { max-width: 860px; }
.gl-center { text-align: center; }
.gl-section { position: relative; padding: 100px 0; }
.gl-section--tight { padding: 60px 0; }
.gl-section--light { background: var(--gl-light); }
.gl-section--dark { background: var(--gl-dark); color: rgba(255, 255, 255, .72); }
.gl-section--dark h2, .gl-section--dark h3 { color: #fff; }
.gl-section--carbon { /* textura de fibra de carbono discreta (cronologia da História) */
	background: #141517;
	background-image: linear-gradient(27deg, #131416 5px, transparent 5px), linear-gradient(207deg, #131416 5px, transparent 5px), linear-gradient(27deg, #1c1d20 5px, transparent 5px), linear-gradient(207deg, #1c1d20 5px, transparent 5px), linear-gradient(90deg, #17181a 10px, transparent 10px), linear-gradient(#18191c 25%, #16171a 25%, #16171a 50%, transparent 50%, transparent 75%, #1e1f22 75%, #1e1f22);
	background-size: 20px 20px;
	background-position: 0 5px, 10px 0, 0 10px, 10px 5px, 0 0, 0 0;
	color: rgba(255, 255, 255, .72);
}
.gl-section--carbon h2 { color: #fff; }
.gl-heading-center { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.gl-heading-center h2::after, .gl-title-line::after { content: ""; display: block; width: 60px; height: 3px; margin: 20px auto 0; border-radius: 2px; background: var(--gl-red); }
.gl-title-line::after { margin-left: 0; }
.gl-lead { font-size: 1.1rem; }

/* ===== 3. Botões — a cor "enche" da esquerda para a direita (como na referência) ===== */
.gl-btn, .wp-block-button__link, input[type="submit"], .frm_forms .frm_submit button {
	--b-bg: var(--gl-red); --b-fill: var(--gl-dark); --b-color: #fff; --b-hover: #fff; --b-border: var(--gl-red); --b-border-hover: var(--gl-dark);
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 54px; padding: 0 34px;
	border: 2px solid var(--b-border); border-radius: var(--gl-pill);
	background: linear-gradient(var(--b-fill), var(--b-fill)) no-repeat left center / 0% 100%, var(--b-bg);
	color: var(--b-color); font: 700 1.05rem/1 var(--gl-head); cursor: pointer;
	transition: background-size .25s ease-out, color .25s ease-out, border-color .25s ease-out;
}
.gl-btn:hover, .gl-btn:focus-visible, .wp-block-button__link:hover, input[type="submit"]:hover {
	background-size: 100% 100%, auto; border-color: var(--b-border-hover); color: var(--b-hover);
}
:is(.gl-hero, .gl-section--dark, .gl-cta, .gl-booking__info) .gl-btn { --b-fill: #fff; --b-hover: var(--gl-dark); --b-border-hover: #fff; }
.gl-btn.gl-btn--light { --b-bg: #fff; --b-border: #fff; --b-color: var(--gl-dark); --b-fill: var(--gl-dark); --b-hover: #fff; --b-border-hover: var(--gl-dark); }
.gl-btn.gl-btn--ghost { --b-bg: transparent; --b-border: rgba(255, 255, 255, .55); --b-color: #fff; --b-fill: #fff; --b-hover: var(--gl-dark); --b-border-hover: #fff; }
.gl-btn.gl-btn--outline { --b-bg: transparent; --b-border: var(--gl-dark); --b-color: var(--gl-dark); --b-fill: var(--gl-dark); --b-hover: #fff; --b-border-hover: var(--gl-dark); }
.gl-btn--sm { min-height: 44px; padding: 0 22px; font-size: .98rem; }
.gl-btn__icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; }
.gl-btn__icon svg { width: 10px; height: 10px; }
.gl-link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gl-red); font: 700 .9rem var(--gl-head); letter-spacing: .08em; text-transform: uppercase; }
.gl-link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--gl-ease); }

/* ===== 4. Barra superior e cabeçalho ===== */
.gl-topbar { background: var(--gl-dark); color: rgba(255, 255, 255, .65); font-size: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gl-topbar .gl-container { display: flex; align-items: center; gap: 26px; max-width: 1440px; min-height: 40px; } /* alinhada com o cabeçalho */
.gl-topbar span { display: inline-flex; align-items: center; gap: 8px; }
.gl-topbar svg { width: 14px; height: 14px; color: var(--gl-red); }
.gl-topbar__hours { margin-left: auto; }

.gl-header { position: relative; z-index: 100; background: var(--gl-dark); }
.gl-has-hero .gl-header { position: absolute; left: 0; right: 0; background: rgba(14, 15, 17, .78); }
.gl-header.is-sticky { position: fixed; top: 0; left: 0; right: 0; background: rgba(14, 15, 17, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: gl-down .4s var(--gl-ease); }
.admin-bar .gl-header.is-sticky { top: 32px; }
@keyframes gl-down { from { transform: translateY(-100%); } }
.gl-header .gl-container { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 48px); max-width: 1440px; height: var(--gl-header-h); }
.gl-logo { flex-shrink: 0; }
.gl-logo img { height: clamp(32px, 2.9vw, 42px); width: auto; }
.gl-logo__text { color: #fff; font: 700 1.6rem var(--gl-head); text-transform: uppercase; }

/* Computador: menu sempre visível; os espaços encolhem com a largura do ecrã. */
.gl-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2.4vw, 46px); min-width: 0; }
.gl-nav ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.gl-nav > ul { margin-inline: auto; } /* menu centrado entre o logótipo e os botões */
.gl-nav li { position: relative; }
.gl-nav li a { display: block; padding: 8px clamp(7px, 1.2vw - 4px, 18px); color: #fff; font: 500 1.03rem var(--gl-head); letter-spacing: .01em; white-space: nowrap; }
.gl-nav > ul > li > a::after { /* listra vermelha por baixo no hover e na página atual */
	content: ""; display: block; height: 2px; margin-top: 3px; background: var(--gl-red); transform: scaleX(0); transition: transform .25s var(--gl-ease);
}
.gl-nav li a:hover, .gl-nav .current-menu-item > a, .gl-nav .current-menu-ancestor > a { color: var(--gl-red); }
.gl-nav > ul > li > a:hover::after, .gl-nav > ul > .current-menu-item > a::after, .gl-nav > ul > .current-menu-ancestor > a::after { transform: scaleX(1); }
.gl-nav .sub-menu { position: absolute; top: 100%; left: 0; display: block; min-width: 220px; padding: 10px 0; background: #fff; border-top: 3px solid var(--gl-red); border-radius: 0 0 10px 10px; box-shadow: var(--gl-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--gl-ease); }
.gl-nav li:hover > .sub-menu, .gl-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.gl-nav .sub-menu a { color: var(--gl-dark); padding: 8px 22px; }
.gl-nav__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.gl-tight .gl-nav > ul > li > a { padding-inline: 5px; font-size: .95rem; } /* textos muito longos: aperta em vez de transbordar */

.gl-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 6px; border: 2px solid rgba(255, 255, 255, .25); border-radius: var(--gl-pill); color: #fff; font: 700 1rem var(--gl-head); white-space: nowrap; background: linear-gradient(#fff, #fff) no-repeat left center / 0% 100%; transition: background-size .25s ease-out, color .25s, border-color .25s; }
.gl-phone:hover { color: var(--gl-dark); border-color: #fff; background-size: 100% 100%; }
.gl-phone__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gl-red); color: #fff; }
.gl-phone__icon svg { width: 15px; height: 15px; }
.gl-phone small { margin-left: 6px; font: 500 .8rem var(--gl-body); opacity: .75; }

.gl-burger { display: none; flex-shrink: 0; position: relative; z-index: 210; margin-left: auto; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--gl-red); cursor: pointer; }
.gl-burger span, .gl-burger span::before, .gl-burger span::after { content: ""; display: block; width: 20px; height: 2px; margin: 0 auto; background: #fff; transition: transform .3s; }
.gl-burger span { position: relative; }
.gl-burger span::before { position: absolute; top: -6px; }
.gl-burger span::after { position: absolute; top: 6px; }
.gl-menu-open .gl-burger span { background: transparent; }
.gl-menu-open .gl-burger span::before { transform: translateY(6px) rotate(45deg); }
.gl-menu-open .gl-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Portáteis pequenos: o botão "Ligue" perde o número e depois o texto; o menu mantém-se. */
@media (min-width: 1025px) and (max-width: 1279px) { .gl-phone small { display: none; } }
@media (min-width: 1025px) and (max-width: 1140px) { .gl-phone { padding: 0 4px; } .gl-phone__label { display: none; } }

/* Tablet e telemóvel: menu lateral (hambúrguer). */
@media (max-width: 1024px) {
	.gl-burger { display: block; }
	.gl-nav { position: fixed; inset: 0 0 0 auto; z-index: 200; width: min(360px, 88vw); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 100px 28px 40px; background: var(--gl-dark); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--gl-ease), visibility 0s .4s; }
	.gl-menu-open .gl-nav { transform: none; visibility: visible; transition: transform .4s var(--gl-ease); box-shadow: -20px 0 60px rgba(0, 0, 0, .4); }
	.gl-nav ul { flex-direction: column; align-items: stretch; }
	.gl-nav > ul { margin-inline: 0; }
	.gl-nav li a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.25rem; white-space: normal; }
	.gl-nav > ul > li > a::after { display: none; }
	.gl-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 0 16px; background: none; border: 0; box-shadow: none; }
	.gl-nav .sub-menu a { color: rgba(255, 255, 255, .75); }
	.gl-nav__actions { flex-direction: column; align-items: stretch; margin-top: 28px; }
}

/* ===== 5. Hero (vídeo de fundo com camada de cor) ===== */
.gl-hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; background: var(--gl-dark); color: #fff; overflow: hidden; }
.gl-hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--gl-dark) center / cover no-repeat; }
.gl-hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.gl-hero__video.is-playing { opacity: 1; }
.gl-hero__video iframe { position: absolute; top: 50%; left: 50%; max-width: none; border: 0; transform: translate(-50%, -50%); pointer-events: none; }
.gl-hero__overlay { position: absolute; inset: 0; }
.gl-hero > .gl-container { position: relative; z-index: 2; }
.gl-hero__content { max-width: 900px; margin: 0 auto; padding: calc(var(--gl-header-h) + 40px) 0 110px; text-align: center; }
.gl-hero__title { color: #fff; font-size: clamp(2.6rem, 6.5vw, 5.6rem); line-height: 1; margin-bottom: 24px; }
.gl-hero__title em { font-style: normal; color: var(--gl-red); }
.gl-hero__text { max-width: 640px; margin: 0 auto 40px; font-size: clamp(1.05rem, 1.35vw, 1.5rem); line-height: 1.55; color: rgba(255, 255, 255, .9); }
.gl-hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 1.1vw, 20px); }
.gl-hero__buttons .gl-btn { justify-content: space-between; min-width: clamp(210px, 15vw, 274px); min-height: clamp(58px, 3.6vw, 66px); font-size: clamp(1.05rem, 1.05vw, 1.22rem); }
.gl-hero .gl-btn--primary { box-shadow: 0 14px 34px rgba(225, 10, 23, .45); } /* CTA principal: vermelho cheio */
.gl-hero .gl-btn--ghost { --b-border: rgba(255, 255, 255, .35); font-weight: 600; } /* secundário: só contorno, mais discreto */
.gl-hero__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 38px; }
.gl-hero__links a { padding-bottom: 4px; border-bottom: 2px solid rgba(255, 255, 255, .35); color: #fff; font: 700 .92rem var(--gl-head); letter-spacing: .12em; text-transform: uppercase; }
.gl-hero__links a:hover { color: #fff; border-color: #fff; }
/* "Lomba" com seta no fundo do hero e dos cabeçalhos de página. No hover a seta fica preenchida a preto. */
.gl-bump { position: absolute; z-index: 3; left: 50%; bottom: -1px; width: 340px; height: 42px; color: #fff; transform: translateX(-50%); }
.gl-bump:hover, .gl-bump:focus { color: #fff; }
.gl-bump__shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.gl-bump__icon { position: absolute; left: 50%; top: 13px; display: grid; place-items: center; width: 20px; height: 20px; margin-left: -10px; border: 1.5px solid var(--gl-dark); border-radius: 50%; color: var(--gl-dark); transition: background-color .25s, color .25s; }
.gl-bump__icon svg { width: 12px; height: 12px; }
.gl-bump:hover .gl-bump__icon, .gl-bump:focus-visible .gl-bump__icon { background: var(--gl-dark); color: #fff; }
.gl-bump:hover .gl-bump__icon svg, .gl-bump:focus-visible .gl-bump__icon svg { animation: gl-nudge .9s var(--gl-ease) infinite; }
@keyframes gl-nudge { 50% { transform: translateY(2px); } }
.gl-anchor { display: block; scroll-margin-top: var(--gl-header-h); }

/* ===== 6. Cabeçalho das páginas interiores ===== */
.gl-page-header { position: relative; padding: 90px 0 120px; background: var(--gl-dark) center / cover; color: rgba(255, 255, 255, .8); text-align: center; }
.gl-has-hero .gl-page-header { padding-top: calc(var(--gl-header-h) + 90px); }
.gl-page-header::before { content: ""; position: absolute; inset: 0; background: rgba(14, 15, 17, .78); }
.gl-page-header .gl-container { position: relative; }
.gl-page-header h1 { color: #fff; margin-bottom: 12px; }
.gl-page-header p { max-width: 640px; margin: 0 auto; }
.gl-page-header__logo { width: auto; max-height: 110px; max-width: min(420px, 80vw); margin: 0 auto 24px; }
.gl-breadcrumbs { margin-top: 16px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.gl-breadcrumbs a { color: #fff; }

/* ===== 7. Sobre nós e destaques ===== */
.gl-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.gl-split__media { position: relative; }
.gl-split__media > img:first-child { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--gl-radius); }
.gl-split__media .gl-seal { position: absolute; right: -36px; bottom: -44px; width: 220px; aspect-ratio: auto; border-radius: 0; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .35)); transform: rotate(-6deg); }
.gl-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0 0 26px; padding: 0; list-style: none; }
.gl-checklist li { display: flex; gap: 10px; color: var(--gl-dark); font-weight: 500; font-size: .95rem; }
.gl-checklist svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; color: var(--gl-red); }
.gl-call { font: 700 1.3rem var(--gl-head); color: var(--gl-dark); }

/* ===== 8. Serviços: cartões, grelha e carrossel ===== */
.gl-service { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border-radius: var(--gl-radius); background: #fff; color: var(--gl-text); transition: transform .3s var(--gl-ease), box-shadow .3s; }
.gl-service:hover { transform: translateY(-6px); box-shadow: 0 25px 50px rgba(0, 0, 0, .25); }
.gl-service__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 16px; background: rgba(225, 10, 23, .08); color: var(--gl-red); }
.gl-service__icon svg { width: 34px; height: 34px; }
.gl-service__tag { margin-bottom: 10px; color: var(--gl-red); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gl-service h3 a { color: var(--gl-dark); }
.gl-service h3 a::after { content: ""; position: absolute; inset: 0; } /* o cartão inteiro é clicável */
.gl-service p { flex: 1; font-size: .93rem; }
.gl-service:hover .gl-link-arrow svg { transform: translateX(4px); }
.gl-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.gl-carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.gl-carousel__head p { margin: 0; }
.gl-carousel__nav { display: flex; gap: 10px; }
.gl-carousel__nav button { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .25s, border-color .25s; }
.gl-carousel__nav button:hover { background: var(--gl-red); border-color: var(--gl-red); }
.gl-carousel__nav svg { width: 16px; height: 16px; }
/* Carrossel: o cartão do meio fica em destaque (maior); os laterais ficam mais pequenos e esbatidos. */
.gl-carousel { overflow-x: auto; scrollbar-width: none; padding: 26px 0 44px; }
.gl-carousel::-webkit-scrollbar { display: none; }
.gl-carousel__track { display: flex; gap: 28px; }
.gl-carousel__track > * { flex: 0 0 calc((100% - 56px) / 3); }
.gl-carousel.is-ready { overflow: hidden; touch-action: pan-y; }
.gl-carousel.is-ready .gl-carousel__track { transition: transform .7s var(--gl-ease); }
.gl-carousel.is-ready .gl-carousel__track > * { transform: scale(.86); opacity: .45; transition: transform .7s var(--gl-ease), opacity .7s; }
.gl-carousel.is-ready .gl-carousel__track > :hover { opacity: .75; }
.gl-carousel.is-ready .gl-carousel__track > .is-active { transform: scale(1.04); opacity: 1; }
.gl-carousel .gl-carousel__track > * { box-shadow: 0 6px 18px rgba(0, 0, 0, .06); } /* cartões do carrossel: sombra muito leve */
.gl-carousel.is-ready .gl-carousel__track.is-jumping, .gl-carousel.is-ready .is-jumping > * { transition: none; }

/* ===== 9. Pedido de orçamento e formulários (inclui Formidable) ===== */
.gl-booking { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--gl-shadow); }
.gl-booking__info { padding: 56px 50px; background: var(--gl-red); color: rgba(255, 255, 255, .9); }
.gl-booking__info h2, .gl-booking__info .gl-checklist li, .gl-booking__info .gl-checklist svg { color: #fff; }
.gl-booking__label { margin: 26px 0 12px; color: #fff; font: 700 .85rem var(--gl-head); letter-spacing: .12em; text-transform: uppercase; }
.gl-booking__phones { display: flex; flex-wrap: wrap; gap: 12px; }
.gl-booking__form { padding: 56px 50px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
	width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--gl-line) !important; border-radius: 12px !important; background: var(--gl-light) !important; color: var(--gl-dark); font: inherit; font-size: .95rem;
}
textarea { min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gl-red) !important; background: #fff !important; }
label, .frm_primary_label { color: var(--gl-dark); font-weight: 600; font-size: .9rem; }
/* Formulários Formidable: aspeto do tema mesmo com os estilos do Formidable desligados (sem .with_frm_style) */
.frm_forms fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.frm_forms .frm_primary_label { display: block; margin: 0 0 6px; padding: 0; }
.frm_forms .frm_required { color: var(--gl-red); }
.frm_forms .frm_description { margin-top: 6px; color: var(--gl-text); font-size: .8rem; }
.frm_forms .frm_error, .frm_forms .frm_error_style { margin-top: 6px; color: var(--gl-red); font-size: .85rem; }
.frm_forms .frm_checkbox label, .frm_forms .frm_radio label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.frm_forms .frm_checkbox input, .frm_forms .frm_radio input { width: auto; min-height: 0; margin-top: 4px; }
.frm_forms .frm_fields_container { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.frm_forms .frm_fields_container > .frm_form_field { grid-column: 1 / -1; margin-bottom: 16px; }
.frm_forms .frm_fields_container > .frm_half { grid-column: auto; }
.frm_forms .frm_submit { grid-column: 1 / -1; }
.frm_forms .frm_submit button { height: auto !important; min-height: 54px; padding: 0 34px !important; border: 2px solid var(--b-border) !important; border-radius: var(--gl-pill) !important; background: linear-gradient(var(--b-fill), var(--b-fill)) no-repeat left center / 0% 100%, var(--b-bg) !important; color: var(--b-color) !important; box-shadow: none !important; font: 700 1.05rem var(--gl-head) !important; }
.frm_forms .frm_submit button:hover { background-size: 100% 100%, auto !important; border-color: var(--b-border-hover) !important; color: var(--b-hover) !important; }
.frm_message { padding: 16px 20px; border-radius: 12px; background: #e9f7ef; color: #1e6b3a; }

/* ===== 10. História: cronologia e números ===== */
.gl-timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.gl-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: rgba(255, 255, 255, .12); }
.gl-timeline__item { position: relative; padding: 0 16px; font-size: .9rem; }
.gl-timeline__year { display: inline-grid; place-items: center; min-width: 90px; height: 68px; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--gl-pill); background: #17181b; color: #fff; font: 700 1.6rem var(--gl-head); }
.gl-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 80px; text-align: center; }
.gl-counter strong { display: block; color: #fff; font: 700 clamp(2.6rem, 5vw, 3.8rem)/1 var(--gl-head); }
.gl-counter sup { color: var(--gl-red); font-size: .5em; }
.gl-counter > span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }

/* ===== 11. Oficinas ===== */
.gl-locations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gl-location { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--gl-radius); background: #fff; box-shadow: var(--gl-shadow); }
.gl-location__map { position: relative; aspect-ratio: 16 / 8; background: var(--gl-light); }
.gl-location__map iframe, .gl-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gl-map__load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 20px; border: 0; background: var(--gl-dark) url("assets/img/mapa.svg") center / cover; color: #fff; font: inherit; cursor: pointer; }
.gl-map__load svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--gl-red); box-sizing: content-box; transition: transform .3s var(--gl-ease); }
.gl-map__load strong { font: 700 1.2rem var(--gl-head); }
.gl-map__load small { font-size: .78rem; opacity: .7; }
.gl-map__load:hover svg { transform: translateY(-4px); }
.gl-location__body { display: flex; flex-direction: column; flex: 1; padding: 32px 34px 36px; }
.gl-location__tag { align-self: flex-start; margin-bottom: 10px; padding: 5px 14px; border-radius: var(--gl-pill); background: rgba(225, 10, 23, .08); color: var(--gl-red); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gl-location__list { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; font-size: .95rem; }
.gl-location__list li { display: flex; gap: 12px; }
.gl-location__list svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; color: var(--gl-red); }
.gl-location__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* ===== 12. Chamada à ação e parceiros ===== */
.gl-cta { position: relative; padding: 70px 0; background: var(--gl-red) center / cover; color: #fff; }
.gl-cta::before { content: ""; position: absolute; inset: 0; background: var(--gl-red); opacity: .9; }
.gl-cta .gl-container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.gl-cta h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.gl-cta p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); }
.gl-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }
.gl-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 70px; }
.gl-partners img { max-height: 64px; width: auto; opacity: .85; transition: opacity .3s; }
.gl-partners img:hover { opacity: 1; }
.gl-partners__text { color: #b8bbc0; font: 700 1.8rem var(--gl-head); text-transform: uppercase; }

/* Marcas de pneus em loop ([gl_marcas_pneus]); o JS abranda-o com o rato por cima */
.gl-marquee { margin: 40px 0; padding: 34px 0; overflow: hidden; border-block: 1px solid var(--gl-line); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.gl-marquee__track { display: flex; width: max-content; animation: gl-marquee 32s linear infinite; }
.gl-marquee ul { display: flex; align-items: center; gap: 70px; margin: 0; padding: 0 35px; list-style: none; }
.gl-marquee li { margin: 0; }
.gl-entry .gl-marquee img, .gl-marquee__logo { display: block; width: auto; height: 34px; max-width: none; margin: 0; border-radius: 0; }
.gl-entry .gl-marquee .gl-marquee__logo--michelin { height: 52px; }
@keyframes gl-marquee { to { transform: translateX(-50%); } }

/* ===== 12a. Avaliações Google ===== */
/* Avaliações: cartão da classificação = 1/3, carrossel = 2/3 (funciona como o dos serviços). */
.gl-reviews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; align-items: stretch; }
.gl-reviews--solo { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
.gl-reviews__summary .gl-carousel__nav { margin-top: 14px; }
.gl-reviews__summary, .gl-review { display: flex; flex-direction: column; margin: 0; padding: 34px 30px; border-radius: var(--gl-radius); background: #fff; box-shadow: var(--gl-shadow); }
.gl-reviews__summary { align-items: center; justify-content: center; gap: 8px; text-align: center; background: var(--gl-dark); color: rgba(255, 255, 255, .75); }
.gl-reviews__summary .gl-stars { align-self: center; }
.gl-reviews__summary strong { color: #fff; font: 700 3.6rem/1 var(--gl-head); }
.gl-reviews__summary p { margin: 0 0 6px; font-size: .9rem; }
.gl-reviews__stores { width: 100%; margin: 4px 0 0; padding: 0; list-style: none; font-size: .85rem; }
.gl-reviews__stores li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); text-align: left; }
.gl-reviews__stores a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gl-reviews__stores span { flex-shrink: 0; color: #f5b301; }
.gl-reviews__summary .gl-btn { --b-border: rgba(255, 255, 255, .5); --b-color: #fff; --b-fill: #fff; --b-hover: var(--gl-dark); --b-border-hover: #fff; }
.gl-reviews__brand { font: 700 .8rem var(--gl-head); letter-spacing: .14em; text-transform: uppercase; }
.gl-stars { --gl-stars: 100%; display: inline-block; align-self: flex-start; width: max-content; font-size: 1.2rem; letter-spacing: 3px; line-height: 1; background: linear-gradient(90deg, #f5b301 var(--gl-stars), rgba(128, 128, 128, .35) var(--gl-stars)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gl-stars::before { content: "★★★★★"; }
.gl-review blockquote { flex: 1; margin: 16px 0 20px; color: var(--gl-text); font-size: .98rem; }
.gl-review figcaption { color: var(--gl-dark); font: 700 1.05rem var(--gl-head); }
.gl-review figcaption span { color: var(--gl-text); font: 400 .82rem var(--gl-body); }

/* ===== 12b. Blog ===== */
.gl-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 28px; margin-bottom: 40px; }
.gl-post { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--gl-radius); background: #fff; box-shadow: var(--gl-shadow); transition: transform .3s var(--gl-ease); }
.gl-post:hover { transform: translateY(-6px); }
.gl-post__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--gl-dark) url("assets/img/brand/selo-1955.png") center / 40% no-repeat; }
.gl-post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-post__body { display: flex; flex: 1; flex-direction: column; padding: 26px 26px 28px; }
.gl-post time { color: var(--gl-red); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gl-post h3 { margin: 10px 0; font-size: 1.35rem; }
.gl-post h3 a { color: var(--gl-dark); }
.gl-post h3 a::after { content: ""; position: absolute; inset: 0; } /* o cartão inteiro é clicável */
.gl-post p { flex: 1; font-size: .93rem; }
.gl-post:hover .gl-link-arrow svg { transform: translateX(4px); }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--gl-line); border-radius: var(--gl-pill); color: var(--gl-dark); }
.nav-links .current { background: var(--gl-red); border-color: var(--gl-red); color: #fff; }

/* ===== 13. Conteúdo das páginas ===== */
.gl-content { padding: 90px 0; }
.gl-entry > *:first-child { margin-top: 0; }
.gl-entry h2 { margin-top: 1.4em; font-size: 2.1rem; }
.gl-entry img, .gl-entry__image { border-radius: 10px; margin-bottom: 30px; }
.gl-entry .alignfull, .gl-entry .gl-section, .gl-entry .gl-cta { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.gl-entry .has-large-font-size { font-size: 1.35rem !important; line-height: 1.6; }
.gl-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; }
.gl-aside { align-self: start; padding: 30px; border-radius: var(--gl-radius); background: var(--gl-light); }
.gl-aside ul { margin: 0; padding: 0; list-style: none; }
.gl-aside li { padding: 8px 0; border-bottom: 1px solid var(--gl-line); }
.gl-aside a { color: var(--gl-dark); font-weight: 500; }
.gl-aside a:hover, .gl-aside a[aria-current] { color: var(--gl-red); }
.gl-results { padding: 0; list-style: none; }
.gl-results li { padding: 20px 0; border-bottom: 1px solid var(--gl-line); }
.gl-results a { font: 700 1.4rem var(--gl-head); }

/* ===== 14. Rodapé ===== */
.gl-footer { background: var(--gl-dark); color: rgba(255, 255, 255, .62); font-size: .93rem; }
.gl-footer a { color: rgba(255, 255, 255, .8); }
.gl-footer a:hover { color: #fff; }
.gl-footer h4 { color: #fff; margin-bottom: 22px; }
.gl-footer ul { margin: 0; padding: 0; list-style: none; }
.gl-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 50px; }
.gl-footer .gl-footer__grid { padding-top: clamp(64px, 8vw, 90px); padding-bottom: 60px; } /* mais específico que .gl-container no telemóvel */
.gl-footer__grid .gl-logo { display: inline-block; margin-bottom: 20px; }
.gl-footer__links li { margin-bottom: 10px; }
.gl-footer__links a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--gl-red); vertical-align: middle; }
.gl-footer__label { margin: 0 0 4px; color: var(--gl-red); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gl-footer .gl-footer__hours { margin-bottom: 20px; }
.gl-footer__hours li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.gl-footer__hours strong { color: #fff; font-weight: 500; }
.gl-footer__contact li { display: flex; gap: 12px; margin-bottom: 16px; }
.gl-footer__contact strong { color: #fff; }
.gl-footer__contact svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; color: var(--gl-red); }
.gl-social { display: flex; gap: 10px; margin-top: 20px; }
.gl-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; transition: background .25s; }
.gl-social a:hover { background: var(--gl-red); }
.gl-social svg { width: 18px; height: 18px; }
.gl-footer__bottom { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.gl-footer__bottom .gl-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.gl-footer__bottom ul { display: flex; gap: 22px; }
.gl-cookies-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.gl-cookies-link:hover { color: #fff; }
.gl-complaints { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; }
.gl-complaints svg { width: 16px; height: 16px; }
.gl-funding { padding: 18px 0; background: #fff; border-top: 1px solid var(--gl-line); }
.gl-funding img { width: 100%; max-width: 760px; margin: 0 auto; }

/* ===== 15. Botões flutuantes ===== */
.gl-float { position: fixed; z-index: 90; bottom: 24px; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; color: #fff; cursor: pointer; }
.gl-float svg { width: 22px; height: 22px; }
.gl-float--whatsapp { left: 24px; background: #25d366; }
.gl-to-top { right: 24px; background: var(--gl-red); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.gl-to-top.is-visible { opacity: 1; visibility: visible; }
.gl-to-top svg { width: 18px; transform: rotate(-90deg); }

/* ===== 16. Responsivo ===== */
@media (max-width: 1024px) {
	.gl-section { padding: 70px 0; }
	.gl-split, .gl-booking, .gl-with-aside { grid-template-columns: 1fr; gap: 50px; }
	.gl-split__media .gl-seal { right: 0; } /* numa só coluna não pode sair do ecrã */
	.gl-booking { gap: 0; }
	.gl-counters, .gl-services, .gl-posts, .gl-footer__grid { grid-template-columns: 1fr 1fr; }
	.gl-carousel__track > * { flex-basis: 48%; }
	.gl-timeline { grid-template-columns: repeat(3, 1fr); gap: 40px 0; }
	.gl-timeline::before { display: none; }
	.gl-cta .gl-container { flex-direction: column; text-align: center; }
}
@media (max-width: 782px) {
	.admin-bar .gl-header.is-sticky { top: 46px; }
	.gl-topbar { display: none; }
}
@media (max-width: 600px) {
	.admin-bar .gl-header.is-sticky { top: 0; } /* aqui a barra de administração do WordPress sobe com a página */
}
@media (max-width: 680px) {
	.gl-reviews { grid-template-columns: 1fr; } /* telemóvel: classificação em cima, avaliação em baixo */
	body { font-size: 15px; }
	.gl-container { padding: 0 16px; }
	.gl-section, .gl-content { padding: 56px 0; }
	.gl-logo img { height: 32px; }
	.gl-hero__buttons .gl-btn { flex: 1 1 100%; min-width: 0; }
	.gl-bump { width: 240px; height: 32px; }
	.gl-bump__icon { top: 9px; }
	.gl-carousel__track > * { flex-basis: 80%; }
	.gl-carousel__track { gap: 16px; }
	.gl-carousel__head { flex-direction: column; align-items: flex-start; }
	.gl-split__media .gl-seal { width: 150px; right: 0; bottom: -36px; }
	.gl-booking__info, .gl-booking__form { padding: 40px 22px; }
	.gl-counters, .gl-services, .gl-posts, .gl-locations, .gl-footer__grid, .gl-checklist, .gl-timeline, .frm_forms .frm_fields_container { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.gl-marquee__track { width: auto; } .gl-marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 30px; } .gl-marquee ul + ul { display: none; }
}
