/* ==========================================================================
   AKFP — Associação de Kickboxing Fernando Paulo (https://akfp.pt/)
   Webxtek Static 2.0 — 100% Authentic Original AKFP Layout & Divided Header
   ========================================================================== */

:root {
  --primary: #ff0e1f;
  --primary-hover: #d90416;
  --bg-body: #17161a;
  --bg-alt: #121115;
  --bg-dark: #0d0c10;
  --bg-card: #1f1e24;
  --text-main: #ffffff;
  --text-cream: #e9e8de;
  --text-muted: #b5b4be;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-skew: rgba(203, 203, 203, 0.12);
  --header-h: 112px;
  --header-h-scrolled: 78px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.48);
  --font-heading: 'Rubik', 'Montserrat', sans-serif;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-body);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

ul, ol {
  list-style: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 10000;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
  background-color: #ffffff;
  color: #111115;
  border-color: #ffffff;
}

/* ==========================================================================
   AUTHENTIC PLAYERX DIVIDED HEADER (.site-header)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(15, 15, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  height: var(--header-h-scrolled);
  background: rgba(11, 11, 14, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.header-divided-container {
  position: relative;
  width: 100%;
  max-width: 1720px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  align-items: stretch;
}

/* Left Wing */
.header-wing-left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 36px;
  height: 100%;
}

.header-wing-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  width: calc(100% - 12px);
  height: 100%;
  border-left: 1px solid var(--border-skew);
  transform: skewX(15deg);
  pointer-events: none;
}

/* Right Wing */
.header-wing-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 36px;
  height: 100%;
  gap: 16px;
}

.header-wing-right::before {
  content: '';
  position: absolute;
  top: 0;
  right: 12px;
  width: calc(100% - 12px);
  height: 100%;
  border-right: 1px solid var(--border-skew);
  transform: skewX(-15deg);
  pointer-events: none;
}

/* Center Trapezoid Crest */
.header-center-crest {
  position: relative;
  z-index: 5;
  height: calc(100% + 12px);
  background: linear-gradient(180deg, #222128 0%, #101014 100%);
  clip-path: polygon(0 0, 100% 0, 81% 100%, 19% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 81% 100%, 19% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--primary);
  transition: height 0.3s ease;
}

.site-header.scrolled .header-center-crest {
  height: calc(100% + 6px);
}

.center-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 24px;
}

.center-logo-link img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
  transition: width 0.3s ease, height 0.3s ease, transform 0.25s ease;
}

.center-logo-link:hover img {
  transform: scale(1.05);
}

.site-header.scrolled .center-logo-link img {
  width: 68px;
  height: 68px;
}

/* Divided Menu Lists */
.divided-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.divided-menu {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 4px;
}

.divided-menu > li {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.divided-menu > li > .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  height: 100%;
  white-space: nowrap;
}

.divided-menu > li > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary);
  opacity: 0;
  transform: skewX(15deg);
  transition: opacity 0.3s ease;
}

.divided-menu > li:hover > .nav-link,
.divided-menu > li > .nav-link:hover,
.divided-menu > li > .nav-link.active {
  color: var(--primary);
}

.divided-menu > li:hover > .nav-link::after,
.divided-menu > li > .nav-link.active::after {
  opacity: 1;
}

/* Desktop Submenu Dropdown (EQUIPA / ESCOLAS) */
.nav-sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 235px;
  background: #141318;
  border-top: 3px solid var(--primary);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1100;
}

.nav-sub-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.divided-menu > li.has-sub:hover > .nav-sub-menu,
.divided-menu > li.has-sub:focus-within > .nav-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub-menu li a {
  display: block;
  padding: 11px 22px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e9e8de;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-sub-menu li a:hover,
.nav-sub-menu li a.active {
  color: #ffffff;
  background: rgba(255, 14, 31, 0.14);
  border-left-color: var(--primary);
  padding-left: 26px;
}

/* Header Actions (Right Side: Lang Switcher + Mobile Hamburger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 10;
}

/* Desktop Hover Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-current:hover {
  background: rgba(255, 14, 31, 0.18);
  border-color: var(--primary);
}

.lang-current img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-current .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
}

.lang-switcher:hover .lang-current .chevron,
.lang-switcher.open .lang-current .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 175px;
  background: #141318;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1200;
}

/* Invisible hover bridge so moving mouse down never closes dropdown */
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown,
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e9e8de;
}

.lang-option img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(255, 14, 31, 0.2);
  color: #ffffff;
}

/* Mobile Brand & Hamburger Toggle (Hidden on Desktop) */
.mobile-brand-logo {
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.mobile-brand-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  z-index: 1205;
}

.mobile-menu-toggle .hamburger-bar {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background-color: var(--primary);
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background-color: var(--primary);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  display: none;
}

/* ==========================================================================
   MAIN & HERO SECTION (Fixed 610px Desktop / 520px Mobile — Zero dvh/vh Jumps)
   ========================================================================== */
main {
  padding-top: var(--header-h);
}

.hero {
  position: relative;
  width: 100%;
  height: 610px;
  min-height: 610px;
  max-height: 610px;
  overflow: hidden;
  background-color: #0d0c10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide-1 {
  background-image: url('/assets/img/hero-slide-1-akfp.jpg');
  background-position: left center;
}

.hero-slide-2 {
  background-image: url('/assets/img/hero-slide-2-akfp.jpg');
  background-position: center center;
}

.hero-slide-3 {
  background-image: url('/assets/img/hero-slide-3-akfp.jpg');
  background-position: center top;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 960px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-brand-banner {
  width: 82%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.85));
}

/* Slider Controls (Prev / Next Arrows & Dots) */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 14, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider-arrow svg {
  width: 22px;
  height: 22px;
}

.hero-slider-arrow.prev {
  left: 24px;
}

.hero-slider-arrow.next {
  right: 24px;
}

.hero-slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.06);
}

.hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Animated Scroll Down Mouse Button */
.hero-scroll-down {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 52px;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-scroll-down:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  margin-top: 6px;
  animation: akfpMouseWheel 1.6s infinite ease-in-out;
}

@keyframes akfpMouseWheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0.2; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================================
   AUTHENTIC ORIGINAL PAGE TITLE BAR (.orig-title-holder)
   Matches PlayerX .edgtf-title-holder (height 120px, dark shadow)
   ========================================================================== */
.orig-title-holder {
  height: 120px;
  background-color: var(--bg-body);
  box-shadow: 15px 15px 21px 0px rgba(1, 1, 1, 0.3);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.orig-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.8vw, 2.625rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0;
}

/* ==========================================================================
   AUTHENTIC AKFP COMPOSITE POSTER CANVASES (Quem Somos / Instrutores / Escolas)
   ========================================================================== */
.akfp-poster-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-body);
  overflow: hidden;
}

.akfp-poster-desktop {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.akfp-poster-desktop > img {
  width: 100%;
  height: auto;
  display: block;
}

.akfp-poster-layer {
  position: absolute;
  color: var(--text-cream);
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.32vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
  z-index: 5;
}

.akfp-poster-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 0.95vw, 18px) clamp(18px, 2.6vw, 52px);
  border: 2.5px solid #ff3a2d;
  color: #ff3a2d;
  background: transparent;
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.25vw, 1.25rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.akfp-poster-cta-btn:hover {
  color: var(--text-cream);
  border-color: var(--text-cream);
}

.akfp-poster-hotspot {
  position: absolute;
  z-index: 6;
  display: block;
  background-color: transparent;
}

.akfp-poster-mobile {
  display: none;
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.akfp-poster-mobile > img {
  width: 100%;
  height: auto;
  display: block;
}

.akfp-poster-mobile-layer {
  position: absolute;
  color: var(--text-cream);
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 3.1vw, 0.92rem);
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-align: center;
  left: 3%;
  width: 94%;
  z-index: 5;
}

.akfp-poster-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  border: 2px solid #ff3a2d;
  color: #ff3a2d;
  background: rgba(15, 14, 18, 0.65);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   SCHOOL PHOTO GALLERIES (.orig-gallery-grid) & CLICKABLE 4K MAP BANNERS
   ========================================================================== */
.orig-gallery-section {
  width: 100%;
  background-color: var(--bg-body);
  padding: 10px 10px 0;
}

.orig-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.orig-gallery-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
  background: #0f0e13;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.akfp-map-banner {
  width: 100%;
  background: var(--bg-body);
  padding-top: 10px;
}

.akfp-map-banner a {
  display: block;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  overflow: hidden;
}

.akfp-map-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.map-mobile {
  display: none;
}

/* ==========================================================================
   AUTHENTIC CONTACTOS LAYOUT (.contact-original-split)
   Matches original /contactos/ page 100%
   ========================================================================== */
.contact-original-section {
  padding: 96px 0 64px;
  background-color: var(--bg-body);
}

.contact-original-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-original-left {
  padding-right: 10%;
}

.contact-original-left h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 10px;
}

.contact-divider-svg {
  width: 125px;
  height: 4px;
  display: block;
  margin: 4px 0 26px;
}

.contact-original-left p {
  font-size: 1rem;
  color: var(--text-cream);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-follow-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 16px;
}

.contact-follow-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 300;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.35);
}

.contact-social-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-social-row a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-social-row a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.akfp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.akfp-input,
.akfp-textarea {
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  color: #171717;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.akfp-input:focus,
.akfp-textarea:focus {
  border-color: var(--primary);
}

.akfp-textarea {
  min-height: 180px;
  resize: vertical;
}

.akfp-submit-btn {
  align-self: flex-start;
  padding: 15px 44px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.akfp-submit-btn:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   AUTHENTIC EVENTOS, LOJA, LEGAL & SYSTEM PAGES
   ========================================================================== */
.orig-events-wrap {
  padding: 64px 24px 96px;
}

.orig-no-events {
  font-size: 1.05rem;
  color: var(--text-cream);
}

.section {
  padding: 72px 0;
  background-color: var(--bg-body);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 42px;
  max-width: 960px;
  margin: 0 auto;
}

.legal-box h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin: 28px 0 12px;
}

.legal-box h2:first-child {
  margin-top: 0;
}

.legal-box p,
.legal-box li {
  color: var(--text-cream);
  margin-bottom: 12px;
}

.legal-box ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 16px;
}

.legal-box a {
  color: var(--primary);
  text-decoration: underline;
}

.system-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 56px 36px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.system-card h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.system-card p {
  color: var(--text-cream);
  margin: 0 0 28px;
}

/* ==========================================================================
   AUTHENTIC DARK CENTERED FOOTER (.taberna-centered-footer)
   ========================================================================== */
.taberna-centered-footer {
  background: #0f0f12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 24px;
  text-align: center;
  color: var(--text-cream);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.footer-legal-links a,
.footer-legal-links button {
  background: none;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.25s ease;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
  color: var(--primary);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.35);
}

.footer-contact-single {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-contact-single a {
  color: var(--text-cream);
}

.footer-contact-single a:hover {
  color: var(--primary);
}

.footer-bottom {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   FLOATING WHATSAPP / CONTACT BUTTON + BACK TO TOP + LIGHTBOX + COOKIE MODAL
   ========================================================================== */
.whatsapp-chat-button,
#back-to-top {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  pointer-events: auto !important;
  user-select: none !important;
}

.whatsapp-chat-button {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0e1f 0%, #c80816 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 14, 31, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 999999;
  border: 2px solid #ffffff;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
  cursor: pointer;
  text-decoration: none;
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-chat-button:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 14, 31, 0.6), 0 4px 12px rgba(0, 0, 0, 0.35);
  }
}

.whatsapp-chat-button.ring-pulse::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 14, 31, 0.58);
  animation: whatsappRingPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
  pointer-events: none;
}

.whatsapp-chat-button.pulse-animation {
  animation: whatsappPulse 1.4s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

@keyframes whatsappRingPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 14, 31, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(255, 14, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 14, 31, 0); }
}

.whatsapp-chat-button svg {
  width: 26px;
  height: 26px;
  display: block;
  pointer-events: none;
}

.whatsapp-button-status-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.85);
  pointer-events: none;
}

.whatsapp-balloon {
  position: fixed;
  right: 90px;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 305px;
  max-width: calc(100vw - 104px);
  padding: 14px 16px;
  background: rgba(24, 23, 29, 0.98);
  backdrop-filter: blur(16px);
  color: #ffffff;
  border: 1px solid rgba(255, 14, 31, 0.4);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  z-index: 999998;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition: opacity 0.32s ease, transform 0.32s ease;
  cursor: pointer;
  text-align: left;
}

.whatsapp-balloon.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px) scale(0.96);
}

.whatsapp-balloon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-balloon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.whatsapp-balloon-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #25D366;
  display: inline-block;
}

.whatsapp-balloon-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

.whatsapp-balloon-body {
  font-size: 13px;
  color: var(--text-cream);
  line-height: 1.45;
  margin-bottom: 9px;
}

.whatsapp-balloon-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

#back-to-top {
  position: fixed;
  right: 25px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #181b22;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
  z-index: 999990;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  #back-to-top:hover:not(.cooldown-hover) {
    background-color: var(--primary);
    border-color: var(--primary);
  }
}

#back-to-top:active,
#back-to-top.pressing {
  background-color: var(--primary) !important;
}

/* Hide floating widgets while Cookie Modal or Mobile Menu is open */
body.cookie-modal-open .whatsapp-chat-button,
body.cookie-modal-open .whatsapp-balloon,
body.cookie-modal-open #back-to-top,
body.menu-open .whatsapp-chat-button,
body.menu-open .whatsapp-balloon,
body.menu-open #back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 11, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9500;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Mandatory Centered GDPR Cookie Modal */
.cookie-banner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 1000000;
}

.cookie-banner-overlay.active,
.cookie-banner-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-card {
  width: 100%;
  max-width: 500px;
  background: #1a1920;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  color: #ffffff;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cookie-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 14, 31, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

.cookie-modal-card p {
  font-size: 0.92rem;
  color: var(--text-cream);
  margin-bottom: 22px;
  line-height: 1.6;
}

.cookie-modal-card p a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cookie-btn-accept,
.cookie-btn-reject {
  padding: 13px 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #ffffff;
}
.cookie-btn-accept:hover {
  background: var(--primary-hover);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}
.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile <= 1280px / <= 1024px / <= 768px)
   ========================================================================== */
@media (max-width: 1280px) {
  .divided-menu > li > .nav-link {
    padding: 0 15px;
    font-size: 12px;
  }
  .header-divided-container {
    grid-template-columns: 1fr 180px 1fr;
    padding: 0 16px;
  }
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 76px;
    --header-h-scrolled: 70px;
  }

  .header-divided-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }

  .header-wing-left,
  .header-center-crest,
  .divided-nav,
  .lang-switcher {
    display: none !important;
  }

  .header-wing-right {
    padding-left: 0;
    width: auto;
  }
  .header-wing-right::before {
    display: none;
  }

  .mobile-brand-logo {
    display: inline-flex;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  /* Mobile Hamburger Full-Screen Translucent Drawer */
  .mobile-drawer {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: rgba(14, 13, 18, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 28px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1150;
  }

  .mobile-drawer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-drawer-links {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .mobile-drawer-links a {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    border-radius: var(--radius-sm);
  }

  .mobile-drawer-links a:hover,
  .mobile-drawer-links a.active {
    color: var(--primary);
    background: rgba(255, 14, 31, 0.12);
  }

  /* Mandatory 6 Circular Language Flags Row in Mobile Drawer */
  .mobile-lang-flags-row {
    margin-top: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .mobile-flag-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .mobile-flag-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-flag-btn.active,
  .mobile-flag-btn:hover {
    border-color: var(--primary);
    transform: scale(1.1);
  }

  .contact-original-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-original-left {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  /* Fixed Pixel Hero Height on Mobile (520px — NEVER dvh/vh) */
  .hero {
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }

  /* Authentic Mobile Home Slider Backgrounds (mob-inicio-1-1.jpg, mob-2.jpg, mob-inicio-3-1.jpg) */
  .hero-slide-1 {
    background-image: url('/assets/img/hero-slide-1-mobile-akfp.jpg');
    background-position: center center;
  }
  .hero-slide-1 .hero-brand-banner {
    display: none;
  }
  .hero-slide-2 {
    background-image: url('/assets/img/hero-slide-2-mobile-akfp.jpg');
    background-position: center top;
  }
  .hero-slide-3 {
    background-image: url('/assets/img/hero-slide-3-mobile-akfp.jpg');
    background-position: center bottom;
  }

  .orig-gallery-grid,
  .orig-gallery-grid.two-cols,
  .shop-grid {
    grid-template-columns: 1fr !important;
  }

  .akfp-poster-desktop {
    display: none;
  }
  .akfp-poster-mobile {
    display: block;
  }

  .map-desktop {
    display: none;
  }
  .map-mobile {
    display: block;
  }

  .cookie-modal-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SHOP FEATURE TOGGLE (Controlled by .htaccess SITE_SHOP_ENABLED switch)
   Hidden by default while SITE_SHOP_ENABLED=false
   ========================================================================== */
.shop-feature,
.divided-menu > li.shop-feature,
.mobile-drawer-links > a.shop-feature,
.footer-nav-links > a.shop-feature {
  display: none !important;
}

html.shop-enabled .divided-menu > li.shop-feature {
  display: flex !important;
}
html.shop-enabled .mobile-drawer-links > a.shop-feature {
  display: block !important;
}
html.shop-enabled .footer-nav-links > a.shop-feature {
  display: inline-flex !important;
}
html.shop-enabled section.shop-feature,
html.shop-enabled details.shop-feature {
  display: block !important;
}
