/* Shared visual refinements: existing copy and imagery are preserved. */
:root { --lat-accent: #7ED3F7; --lat-ink: #14242e; }
body { background: #f7fafc; }
#page-title { background: #eaf7fd; border-bottom: 1px solid #d7e9f2; }
#page-title h1 { color: var(--lat-ink); letter-spacing: -.035em; }
.card { border: 1px solid #e1e8e2; border-radius: 16px; box-shadow: 0 10px 32px rgba(25,56,40,.06); overflow: hidden; }
.form-control { border-radius: 8px; min-height: 46px; border-color: #cdd9d0; }
.form-control:focus { border-color: var(--lat-accent); box-shadow: 0 0 0 3px rgba(23,101,78,.14); }
.btn { border-radius: 8px; }
form .btn[type=submit] { min-height: 44px; }
form[aria-busy=true] .btn[type=submit] { opacity: .65; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #1687b7; outline-offset: 3px; }
.form-check { padding-left: 1.8rem; margin-bottom: 1rem; }
.form-check-input { width: 18px; height: 18px; margin-left: -1.8rem; accent-color: var(--lat-accent); }
.form-check-label { line-height: 1.65; cursor: pointer; }
#shop-checkout .col-md-4 .card { position: sticky; top: 100px; border-top: 4px solid var(--lat-accent); }
.table th { white-space: nowrap; }
.table td { vertical-align: middle; }
.table tbody tr:hover { background: #f0f6f1; }
img { max-width: 100%; }
@media(max-width:767px) { #shop-checkout .col-md-4 { margin-top: 24px; } .card-body.p-4 { padding: 24px !important; } #page-title { padding: 40px 0; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }

/* Layout adapted from the Correr Lisboa 2026 reference, in the existing blue palette. */
:root { --lat-blue: #7ED3F7; --lat-dark: #14242e; }
body { color: var(--lat-dark); }
.container { max-width: 1240px; }
h1,h2,h3,h4 { font-weight: 800; letter-spacing: -.035em; }
section { padding: 88px 0; }
#header, #header .header-inner { background: #fff !important; box-shadow: 0 1px 0 #e2ebef; }
#header #mainMenu nav > ul > li > a { color: var(--lat-dark) !important; font-weight: 750; letter-spacing: 0; font-size: 12px; }
#header #mainMenu nav > ul > li:hover > a { color: #16769f !important; }
#header #logo img { max-height: 56px; width: auto; object-fit: contain; }
#mainMenu nav > ul > li:last-child > a { background: var(--lat-blue); border-radius: 999px; padding: 12px 20px !important; line-height: 1.3 !important; }
.lat-hero { min-height: min(800px,88vh); display: flex; align-items: center; position: relative; background-size: cover; background-position: center; color: white; padding: 110px 0 90px; }
.lat-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(7,24,34,.88),rgba(7,24,34,.56) 55%,rgba(7,24,34,.12)); }
.lat-hero-inner { position: relative; z-index: 1; }
.lat-hero-copy { max-width: 900px; }
.lat-hero h1 { color: white; font-size: clamp(58px,8.8vw,118px); line-height: .93; letter-spacing: -.055em; text-transform: uppercase; margin: 0 0 28px; max-width: 850px; }
.lat-hero p { color: #ecf7fc; font-size: clamp(18px,2vw,23px); line-height: 1.55; margin-bottom: 34px; }
.btn.btn-primary, button.btn:not(.btn-light), form button[type=submit] { background: var(--lat-blue); border-color: var(--lat-blue); color: var(--lat-dark); font-weight: 800; }
.btn.btn-primary:hover, form button[type=submit]:hover { background: #a1e1fc; border-color: #a1e1fc; color: var(--lat-dark); }
.lat-hero .btn { padding: 18px 26px; font-size: 14px; border-radius: 999px; }
.lat-hero .btn i { margin-left: 20px; }
.heading-text.heading-section h2 { font-size: clamp(36px,4.5vw,62px); line-height: 1.04; letter-spacing: -.045em; }
.heading-text.heading-section h2::before { background-color: var(--lat-blue); }
.heading-text .lead { font-size: 18px; line-height: 1.8; color: #526572; }
#welcome { padding-bottom: 80px !important; }
.lat-welcome-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lat-welcome-grid .heading-text { margin-bottom: 0 !important; }
.lat-welcome-image img { border-radius: 22px; width: 100%; }
.background-grey { background: #eaf5fb !important; }
.product { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(20,36,46,.08); background: #fff; }
.product-image img { aspect-ratio: 4/3; object-fit: cover; transition: transform .25s ease; }
.product:hover .product-image img { transform: scale(1.035); }
.product .product-overlay { background: rgba(20,36,46,.86); }
.product-run { background: var(--lat-blue); color: var(--lat-dark); font-weight: 800; }
#page-title { padding: 58px 0; }
#page-title .page-title h1 { font-size: clamp(36px,5vw,62px); font-weight: 850; }
#page-title .page-title span { color: #526572; font-size: 17px; }
#footer { background: var(--lat-dark); color: #cfdee7; }
#footer .footer-content { background: var(--lat-dark); }
#footer a, #footer p { color: #cfdee7; }
#footer .widget-title { color: white; font-weight: 800; }
#footer .copyright-content { background: #0d1b24; color: #cfdee7; }
#footer a:hover { color: var(--lat-blue); }
@media(max-width:991px) { .lat-welcome-grid { grid-template-columns: 1fr; gap: 30px; } #header #mainMenu nav > ul > li:last-child > a { display: inline-block; margin: 8px 0; } }
@media(max-width:767px) { section { padding: 56px 0; } .lat-hero { min-height: 620px; min-height: 82svh; padding: 90px 0 70px; background-position: 60% center; } .lat-hero h1 { font-size: clamp(52px,13vw,80px); } .lat-hero p { font-size: 17px; } .lat-hero::before { background: linear-gradient(90deg,rgba(7,24,34,.86),rgba(7,24,34,.4)); } #header #logo img { max-height: 44px; } }

/* Fluid layout: 320px phones through large screens, without clipping content. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.container, .container-fluid { width: 100%; }
.container { padding-left: clamp(16px,3vw,32px); padding-right: clamp(16px,3vw,32px); }
.row > *, .lat-welcome-grid > *, .card, .card-body, .content { min-width: 0; }
img { height: auto; }
video, canvas, iframe { max-width: 100%; }
iframe.video { width: 100%; height: auto; aspect-ratio: 16 / 9; float: none; display: block; }
p, label, .card-body, #footer a { overflow-wrap: anywhere; }
input, select, textarea { max-width: 100%; }
textarea.form-control { min-height: 120px; }
select.form-control { height: auto; }
.btn { white-space: normal; }
.table-responsive, .lat-table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.lat-table-scroll:focus-visible { outline: 3px solid #1687b7; outline-offset: 2px; }
.lat-table-scroll .table { margin-bottom: 0; min-width: 640px; }
.table td { overflow-wrap: anywhere; }
.lat-rules-highlight { padding: 28px 0 0; }
.lat-rules-banner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(24px,4vw,44px); background: #14242e; color: #fff; border-radius: 22px; }
.lat-rules-banner h2 { color: #fff; font-size: clamp(28px,3.4vw,44px); margin: 8px 0 12px; }
.lat-rules-banner p { color: #cfdee7; margin: 0; }
.lat-eyebrow { color: #7ed3f7; font-weight: 700; font-size: 13px; }
.lat-rules-banner .btn { flex-shrink: 0; margin: 0; }
.lat-rules-layout { display: grid; gap: 24px; }
.lat-document-preview iframe { display: block; width: 100%; height: 78vh; min-height: 400px; border: 1px solid #d7e9f2; border-radius: 16px; }
.lat-admin #logo a { font-size: clamp(15px,2vw,22px); font-weight: 850; letter-spacing: -.04em; }
.lat-admin #page-content .icon-box { background: #fff; border: 1px solid #d7e9f2; padding: 28px; border-radius: 18px; height: calc(100% - 24px); }
.lat-admin #page-content .icon-box .icon { position: static; margin-bottom: 20px; }
.lat-admin #page-content .icon-box h3, .lat-admin #page-content .icon-box p { margin-left: 0; }
@media (max-width:1199.98px) {
 #header { height: 80px; }
 #header .header-inner { height: 80px; }
 #header #logo { max-width: calc(100% - 68px); }
 #mainMenu-trigger { position: absolute !important; display: flex !important; align-items: center; right: 20px; top: 0; height: 80px; opacity: 1; visibility: visible; }
 #mainMenu-trigger button { width: 48px; height: 48px; padding: 0; background: transparent; border: 0; cursor: pointer; }
 #header #mainMenu:not(.menu-overlay) { position: absolute; top: 80px; left: 0; width: 100%; min-height: 0 !important; max-height: 0; overflow: hidden; background: #fff; clear: both; display: block; opacity: 1; transition: none; }
 body.mainMenu-open #header #mainMenu:not(.menu-overlay) { width: 100%; max-height: calc(100dvh - 80px); overflow-y: auto; border-top: 1px solid #d7e9f2; }
 #header #mainMenu:not(.menu-overlay) > .container { width: 100%; max-width: 1240px; }
 #header #mainMenu:not(.menu-overlay) nav { float: none; width: 100%; opacity: 1; transform: none; padding: 16px 0; }
 #header #mainMenu:not(.menu-overlay) nav > ul { float: none; width: 100%; }
 #header #mainMenu:not(.menu-overlay) nav > ul > li { float: none; display: block; clear: both; padding: 0; margin: 0; }
 #header #mainMenu:not(.menu-overlay) nav > ul > li > a { display: block; padding: 14px 8px; min-height: 44px; line-height: 1.4; font-size: 15px; }
 #header #mainMenu:not(.menu-overlay) nav > ul > li:last-child > a { display: inline-block; margin-top: 8px; }
}
@media(min-width:1200px) { #header #mainMenu nav > ul > li > a { padding-left: 10px; padding-right: 10px; } }
@media(max-width:991.98px) { .lat-welcome-grid { grid-template-columns: minmax(0,1fr); } #shop-checkout .row > .col-md-8, #shop-checkout .row > .col-md-4 { flex: 0 0 100%; max-width: 100%; } #shop-checkout .col-md-4 { margin-top: 24px; } #shop-checkout .col-md-4 .card { position: static; } }
@media(max-width:767.98px) {
 .form-control { font-size: 16px; }
 .card-body, .card-body.p-4 { padding: 20px !important; }
 .lat-rules-banner { flex-direction: column; align-items: stretch; gap: 20px; }
 .lat-rules-banner .btn { align-self: flex-start; }
 .lat-hero h1 { overflow-wrap: normal; font-size: clamp(44px,12vw,80px); }
 .lat-hero { min-height: 560px; }
 .lat-admin .table th { white-space: normal; }
 #page-title .page-title h1 { overflow-wrap: anywhere; font-size: clamp(30px,8vw,48px); }
 #footer .widget { margin-bottom: 28px; }
 .lat-agenda-table, .lat-agenda-table tbody, .lat-agenda-table thead { display: block; width: 100%; }
 .lat-agenda-table { min-width: 0; border: 0; }
 .lat-agenda-table thead tr, .lat-agenda-table thead th { display: block; width: 100%; }
 .lat-agenda-table tr:has(>td) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin-bottom: 16px; padding: 12px; border: 1px solid #d7e9f2; border-radius: 14px; background: #fff; }
 .lat-agenda-table td { display: block; border: 0; padding: 10px; text-align: left; }
 .lat-agenda-table td:last-child { grid-column: 1/-1; }
 .lat-agenda-table td:last-child .btn { width: 100%; margin: 0; min-height: 44px; }
 .lat-agenda-table h3 { font-size: 18px; margin: 0; }
 .lat-agenda-table h4 { font-size: 20px; }
 .lat-table-scroll .table { min-width: 560px; }
}
@media(max-width:399.98px) { .lat-hero .btn { width: 100%; padding: 16px; } .lat-agenda-table tr:has(>td) { grid-template-columns: minmax(0,1fr); } .lat-rules-banner .btn { width: 100%; } }

.lat-triativa-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(28px,5vw,70px); align-items: center; }
.lat-triativa-grid h2 { font-size: clamp(28px,3vw,44px); line-height: 1.12; }
.lat-triativa-grid p, .lat-triativa-grid li { font-size: 17px; line-height: 1.8; }
.lat-triativa-logo { background: white; border-radius: 22px; padding: 20px; }
.lat-triativa-logo img { display: block; width: 100%; }
.lat-modalities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.lat-modalities .card-body { height: 100%; display: flex; flex-direction: column; }
.lat-modalities .btn { align-self: flex-start; margin-top: auto; }
.lat-modalities h3 { font-size: 27px; }
.lat-modalities ul { padding-left: 20px; margin-bottom: 0; }
.lat-modalities li { margin-bottom: 12px; line-height: 1.65; }
.lat-modality-icon { color: #16769f; font-size: 14px; font-weight: 800; margin-bottom: 24px; }
.lat-highlight-logo { width: 150px; flex: 0 0 150px; background: white; border-radius: 12px; }
#documentos { scroll-margin-top: 100px; }
@media(max-width:991.98px) { .lat-triativa-grid { grid-template-columns: minmax(0,1fr); } .lat-triativa-logo { max-width: 460px; margin: auto; } .lat-modalities { grid-template-columns: minmax(0,1fr); } .lat-highlight-logo { width: 120px; flex-basis: auto; } .lat-rules-banner { flex-wrap: wrap; } }
@media(max-width:767.98px) { .lat-highlight-logo { align-self: flex-start; } }

/* Content stays readable before scroll animations and on slow connections. */
[data-animate] { opacity: 1 !important; visibility: visible !important; }
#footer .widget .list li a, #footer .copyright-text { color: #cfdee7; }
#header #mainMenu-trigger .lines { width: 22px; height: 2px; background: #14242e; position: relative; transform: none; }
#header #mainMenu-trigger .lines::before, #header #mainMenu-trigger .lines::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: #14242e; transform: none; }
#header #mainMenu-trigger .lines::before { top: -7px; }
#header #mainMenu-trigger .lines::after { top: 7px; }
#header #mainMenu-trigger button[aria-expanded=true] .lines { background: transparent; }
#header #mainMenu-trigger button[aria-expanded=true] .lines::before { top: 0; transform: rotate(45deg); }
#header #mainMenu-trigger button[aria-expanded=true] .lines::after { top: 0; transform: rotate(-45deg); }
@media(max-width:767.98px) { #cookieNotify { max-height: 45dvh; overflow-y: auto; } #cookieNotify .container { padding: 16px; } }

.lat-location-caption { padding: 18px 20px; font-weight: 800; color: #14242e; }
.lat-admin .lat-admin-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.lat-admin .lat-location-thumb { width:100px; height:70px; object-fit:cover; border-radius:8px; background:#eaf7fd; }
.lat-admin .lat-admin-edit { max-width:900px; margin:0 auto; }
.lat-admin .lat-admin-alert { padding:16px 20px; border-radius:12px; background:#eaf7fd; margin-bottom:24px; }
.lat-admin table .btn { min-height:40px; }

/* Homepage locations: native grid, independent of the shop/masonry template. */
.lat-places-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.lat-place-card { min-width:0; background:#fff; border:1px solid #dce9ef; border-radius:20px; overflow:hidden; box-shadow:0 6px 20px rgba(20,36,46,.045); transition:transform .2s ease,box-shadow .2s ease; }
.lat-place-link { display:flex; flex-direction:column; height:100%; color:#14242e; text-decoration:none; }
.lat-place-media { position:relative; aspect-ratio:32/21; overflow:hidden; background:#e1f2fa; }
.lat-place-image { display:block; width:100%; height:100%; max-width:none; object-fit:cover; transition:transform .35s ease; }
.lat-place-day { position:absolute; top:16px; left:16px; display:inline-flex; align-items:center; gap:8px; max-width:calc(100% - 32px); padding:9px 13px; border-radius:999px; background:#dff4fe; color:#14242e; font-size:12px; font-weight:800; line-height:1.3; box-shadow:0 2px 8px rgba(20,36,46,.06); overflow-wrap:anywhere; }
.lat-place-body { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 24px; flex:1; }
.lat-place-body h3 { margin:0; font-size:clamp(18px,1.5vw,23px); line-height:1.25; font-weight:800; letter-spacing:-.025em; color:#14242e; overflow-wrap:anywhere; }
.lat-place-arrow { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:50%; background:#edf8fd; color:#176e93; font-size:18px; }
.lat-place-link:focus-visible { outline:3px solid #1687b7; outline-offset:-4px; border-radius:20px; }
@media(hover:hover) { .lat-place-card:hover { transform:translateY(-4px); box-shadow:0 14px 32px rgba(20,36,46,.1); } .lat-place-card:hover .lat-place-image { transform:scale(1.035); } .lat-place-card:hover .lat-place-arrow { background:#7ed3f7; } }
@media(max-width:991.98px) { .lat-places-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; } }
@media(max-width:575.98px) { .lat-places-grid { grid-template-columns:minmax(0,1fr); gap:20px; } .lat-place-body { padding:20px; } .lat-place-body h3 { font-size:21px; } }

/* Compatibility with older homepage HTML during deployment or caching. */
.grid-layout:has(> .lat-place-card) { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; height:auto !important; overflow:visible !important; margin:0 !important; }
.grid-layout > .lat-place-card { position:relative !important; inset:auto !important; transform:none !important; width:auto !important; opacity:1 !important; visibility:visible !important; }
@media(max-width:991.98px) { .grid-layout:has(> .lat-place-card) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; } }
@media(max-width:575.98px) { .grid-layout:has(> .lat-place-card) { grid-template-columns:minmax(0,1fr); gap:20px; } }

/* TriAtiva: programme enquiries and confirmed activities. */
.lat-triativa-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.lat-triativa-actions .btn { margin:0; }
.lat-triativa-signup { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:36px; padding:clamp(24px,4vw,44px); background:#fff; border:1px solid #d7e9f2; border-radius:22px; }
.lat-triativa-signup h2 { font-size:clamp(30px,4vw,46px); margin:8px 0 20px; }
.lat-triativa-signup p { max-width:780px; line-height:1.75; }
.lat-triativa-signup .btn { margin:0; }
.lat-triativa-documents { grid-template-columns:repeat(2,minmax(0,1fr)); }
#pre-inscricao, #convivios-provas { scroll-margin-top:100px; }
@media(max-width:991.98px) { .lat-triativa-signup { grid-template-columns:minmax(0,1fr); gap:20px; } .lat-triativa-signup .btn { justify-self:start; } }
@media(max-width:575.98px) { .lat-triativa-documents { grid-template-columns:minmax(0,1fr); } .lat-triativa-actions .btn, .lat-triativa-signup .btn { width:100%; } }
