/* DPC SPORT - Modern Responsive Stylesheet (Azure & Turf Green Palette) */
:root {
  /* Runtime values, updated by assets/js/site.js */
  --sticky-header-offset: 0px;
  --sticky-bar-h: 60px;
  --menu-panel-top: 60px;

  --bg-page: #dce8f2;
  --bg-page-top: #cbe0f0;
  --azure-bar: #add8e6;
  --azure-bar-dark: #87c3d8;
  --teal-soft: #e3f3f8;
  --teal-hover: #c8e7f0;
  --teal-border: #9bc7d5;
  --teal-text: #134250;
  --teal-700: #165a6d;
  --green-primary: #3b7022;
  --green-700: #2f6319;
  --green-dark: #254d14;
  --green-light: #4e8c30;
  --green-tint: #eef6ea;
  --surface: #ffffff;
  --surface-alt: #f4f8fb;
  --surface-sidebar: #f0f6fa;
  --text-main: #1e2d35;
  --text-muted: #4a616d;
  --slate-600: #4a616d;
  --heading-slate: #1c3f4e;
  --border-subtle: #d0dfe9;
  --gold-accent: #e09f1f;
  --shadow-card: 0 10px 28px rgba(18, 46, 62, 0.09);
  --shadow-sm: 0 2px 6px rgba(18, 46, 62, 0.07);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --container-max: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-page-top) 0%, var(--bg-page) 420px, #d4e3ef 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

a:hover {
  color: var(--green-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--green-dark);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 4000;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
}

/* Centered Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   HEADER: Top Utility Bar + Hero Brand Banner + 5-Button Sports Bar
   ========================================================================== */
.site-header {
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(16, 42, 56, 0.10);
  position: relative;
  z-index: 20;
}

.top-bar {
  background: linear-gradient(90deg, #bce2ef 0%, var(--azure-bar) 55%, #96cde0 100%);
  border-bottom: 1px solid rgba(18, 56, 69, 0.16);
  padding: 7px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.top-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #113643;
}

.top-contacts a {
  color: #0d313d;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-contacts a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.top-contacts span {
  color: #234b59;
  font-weight: 500;
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #ddf1f8 100%);
  color: #103542;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--gold-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}

.btn-home:hover {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 100%);
  color: #ffffff;
  border-color: var(--green-dark);
}

.btn-home .icon-home {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 15px;
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--green-dark);
  box-shadow: 0 2px 6px rgba(37, 77, 20, 0.25);
}

.btn-top-cta:hover {
  background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-dark) 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Hero Section */
.site-hero {
  background: linear-gradient(125deg, #1b4332 0%, #2e6b27 52%, #1b4d5e 100%);
  color: #ffffff;
  padding: 22px 0;
  border-bottom: 3px solid var(--gold-accent);
}

.site-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-hero-logo {
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-hero-logo img {
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-brand-text {
  min-width: 0;
}

.brand-kicker {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9f3fc;
  margin-bottom: 6px;
}

.brand-name {
  margin: 0 0 6px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.brand-name a,
.brand-name a:hover,
.link-inherit,
.link-inherit:hover {
  color: inherit;
  text-decoration: none;
}

.brand-tagline {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-mosaic img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}

/* Horizontal 5-Sport Navigation Bar */
.sport-nav-wrap {
  background: linear-gradient(180deg, #f3f7fa 0%, #dce6ee 100%);
  border-bottom: 3px solid var(--green-primary);
  padding: 9px 0;
}

.sport-nav-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 100%);
  color: #ffffff;
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-dark) 100%);
}

.menu-toggle-label {
  line-height: 1;
}

.burger-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.burger-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: top 0.22s ease, transform 0.22s ease, opacity 0.16s ease;
}

.burger-bar:nth-child(1) {
  top: 0;
}

.burger-bar:nth-child(2) {
  top: 6px;
}

.burger-bar:nth-child(3) {
  top: 12px;
}

.mobile-menu-toggle.is-open .burger-bar:nth-child(1),
.mobile-menu-toggle[aria-expanded="true"] .burger-bar:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.mobile-menu-toggle.is-open .burger-bar:nth-child(2),
.mobile-menu-toggle[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-open .burger-bar:nth-child(3),
.mobile-menu-toggle[aria-expanded="true"] .burger-bar:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.sport-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.sport-nav li {
  margin: 0;
  padding: 0;
}

.sport-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #e4eef4 55%, #d3e1ea 100%);
  color: #163542;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid #9eb7c7;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(16, 42, 56, 0.08);
}

.sport-nav a:hover {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 100%);
  color: #ffffff;
  border-color: var(--green-dark);
  box-shadow: 0 3px 8px rgba(37, 77, 20, 0.25);
  transform: translateY(-1px);
}

.sport-nav a.active,
.sport-nav a[aria-current="page"] {
  background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-dark) 100%);
  color: #ffffff;
  border-color: #1c3b0e;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   MAIN TWO-COLUMN SHELL: Sidebar + Content Card
   ========================================================================== */
.page-shell {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 36px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.sidebar-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dfedf4;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--heading-slate);
}

.side-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-menu li {
  margin: 0;
  padding: 0;
}

.side-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  background: linear-gradient(180deg, #ecf7fa 0%, #cbe8f1 100%);
  color: var(--teal-text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), var(--shadow-sm);
}

.side-menu a::after {
  content: "\203A";
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.65;
  transition: transform 0.15s ease;
}

.side-menu a:hover {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 100%);
  color: #ffffff;
  border-color: var(--green-dark);
  box-shadow: 0 3px 8px rgba(37, 77, 20, 0.22);
}

.side-menu a:hover::after {
  transform: translateX(2px);
  opacity: 1;
}

.side-menu a.active,
.side-menu a[aria-current="page"] {
  background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-dark) 100%);
  color: #ffffff;
  border-color: #1b3a0e;
}

/* Fasi posa erba sintetica submenu box */
.phase-box {
  margin-top: 16px;
  padding: 12px;
  background: #f7fbf5;
  border: 1px solid #c3dcc0;
  border-radius: var(--radius-md);
}

.phase-box-title {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d4e7d1;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
}

.phase-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  background: #ffffff;
  color: #214616;
  border: 1px solid #c7dec3;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  flex-shrink: 0;
}

.phase-menu a:hover,
.phase-menu a.active,
.phase-menu a[aria-current="page"] {
  background: var(--green-primary);
  color: #ffffff;
  border-color: var(--green-dark);
}

.phase-menu a:hover .step-num,
.phase-menu a.active .step-num,
.phase-menu a[aria-current="page"] .step-num {
  background: #ffffff;
  color: var(--green-dark);
}

/* Sidebar Gallery & Photo Cards */
.sidebar-gallery {
  padding: 16px;
}

.sidebar-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.photo-card {
  display: flex;
  flex-direction: column;
  background: #f9fcfe;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.25s ease;
}

a.photo-card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 5px 14px rgba(24, 62, 44, 0.16);
}

a.photo-card:hover img {
  transform: scale(1.03);
}

.photo-caption {
  display: block;
  padding: 7px 6px 3px;
  font-size: 0.8rem;
  line-height: 1.32;
  font-weight: 600;
  color: #244350;
  text-align: center;
}

.lightbox-trigger::before {
  content: "\1F50D Ingrandisci";
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 39, 49, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  pointer-events: none;
}

.lightbox-trigger:hover::before,
.lightbox-trigger:focus-visible::before {
  opacity: 1;
}

.partner-card {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.partner-card span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.partner-card img {
  margin: 0 auto;
  max-height: 48px;
  width: auto;
}

/* ==========================================================================
   MAIN ARTICLE CARD
   ========================================================================== */
.content-card {
  scroll-margin-top: 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 30px 34px 36px;
  min-width: 0;
}

.page-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-tint);
  color: var(--green-dark);
  border: 1px solid #c2dec0;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.content-card h1 {
  margin: 0 0 18px;
  font-size: 1.72rem;
  line-height: 1.25;
  font-weight: 800;
  color: #163746;
  letter-spacing: -0.01em;
}

.content-card h2 {
  margin: 26px 0 14px;
  font-size: 1.16rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tint);
  border-left: 4px solid var(--green-primary);
  padding: 10px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-card h3 {
  margin: 20px 0 10px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--heading-slate);
}

.content-card p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.content-card strong,
.content-card b {
  color: #142f3b;
  font-weight: 700;
}

.page-lead {
  background: linear-gradient(135deg, #f0f7fb 0%, #ebf5ec 100%);
  border: 1px solid #cbe0ea;
  border-left: 4px solid var(--green-primary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.page-lead p:first-child {
  font-weight: 600;
  color: #173a48;
}

.page-lead > :last-child {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 14px;
}

.feature-list li {
  position: relative;
  padding: 8px 12px 8px 32px;
  background: #f6fafd;
  border: 1px solid #d7e5ef;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.4;
  color: #193845;
}

.page-lead .feature-list li {
  background: rgba(255, 255, 255, 0.9);
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 11px;
  top: 7px;
  color: var(--green-primary);
  font-weight: 900;
}

/* Gallery inside main content */
.gallery-section {
  margin: 26px 0;
  padding: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.gallery-hint {
  margin: 0 0 12px !important;
  font-size: 0.9rem !important;
  font-weight: 700;
  color: var(--heading-slate) !important;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.area-coverage {
  margin: 24px 0 0 !important;
  padding: 12px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
}

/* Facebook Static Link Card */
.fb-link-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: #1877f2;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.24);
}

.fb-link-card:hover {
  background: #145dbf;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.fb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #1877f2;
  font-weight: 900;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1;
}

/* Contact Grid & CTA Box */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--green-primary);
  border-radius: var(--radius-md);
  padding: 18px;
}

.contact-card h2,
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  color: var(--heading-slate);
  background: none;
  border: 0;
  padding: 0;
}

.contact-card p {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.cta-banner {
  margin-top: 28px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #e7f4f9 0%, #e7f3e4 100%);
  border: 1px solid #bed9c4;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-banner h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  color: #153744;
}

.cta-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 100%);
  color: #ffffff !important;
  border-color: var(--green-dark);
  box-shadow: 0 2px 6px rgba(37, 77, 20, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-dark) 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--teal-text) !important;
  border-color: var(--teal-border);
}

.btn-outline:hover {
  background: var(--teal-soft);
  color: #0d303a !important;
}

/* ==========================================================================
   LEGAL PAGES (Privacy, Cookie, Termini)
   ========================================================================== */
.legal-section {
  margin: 20px 0;
  padding: 18px 20px;
  background: #f8fbfd;
  border: 1px solid #d7e4ee;
  border-radius: var(--radius-md);
}

.legal-section h2 {
  margin-top: 0;
}

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 6px;
  line-height: 1.62;
}

.placeholder-tag {
  display: inline-block;
  background: #fff7d6;
  border: 1px dashed #d49b1a;
  color: #6e4d00;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9em;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #1b3642 0%, #132831 100%);
  color: #dbe8ee;
  border-top: 4px solid var(--green-primary);
  padding: 34px 0 22px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.footer-heading {
  margin: 0 0 12px !important;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff !important;
}

.footer-brand p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #cde0e8;
}

.footer-brand a {
  color: #a6e3f7;
  text-decoration: none;
  font-weight: 600;
}

.footer-brand a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-logo {
  margin-top: 10px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-sm);
  width: 88px;
  height: auto;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #d2e4ec;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #aec4cf;
}

.footer-legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-inline a {
  color: #bfe8f5;
  font-weight: 600;
  text-decoration: underline;
}

.footer-legal-inline a:hover {
  color: #ffffff;
}

/* ==========================================================================
   LIGHTBOX MODAL, COOKIE BANNER & STANDALONE POPUP PAGES
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 31, 0.88);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  max-width: min(920px, 94vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 12px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-dialog img {
  max-height: calc(90vh - 80px);
  width: auto;
  max-width: 100%;
  border-radius: 4px;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--green-primary);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.lightbox-close:hover {
  background: var(--green-dark);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #16303b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lightbox-nav svg {
  display: block;
}

.lightbox-nav:hover {
  background: var(--green-primary);
  color: #ffffff;
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

/* Cookie Notice Banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 980px;
  margin: 0 auto;
  background: #152f3a;
  color: #f1f7fa;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  border-left: 5px solid var(--azure-bar);
  z-index: 2500;
  font-size: 0.88rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 520px;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--azure-bar);
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
}

.btn-cookie-accept {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--azure-bar);
  color: #0e2a35;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: #ffffff;
}

/* Standalone Photo Detail Pages */
.popup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.popup-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.popup-card img {
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  max-height: 72vh;
  width: auto;
}

.popup-title {
  font-size: 1.2rem;
  color: var(--heading-slate);
  margin: 0 0 16px;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-popup-close {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal-border);
  background: var(--surface-alt);
  color: var(--teal-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-popup-close:hover {
  background: var(--teal-soft);
}

.popup-card .popup-footer,
.popup-footer {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* ==========================================================================
   SEMANTIC VARIANTS & SPACING UTILITIES
   ========================================================================== */
.btn.btn-green {
  background: var(--green-700);
  color: #ffffff !important;
  border-color: var(--green-700);
}

.btn.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn.btn-teal {
  background: var(--teal-700);
  color: #ffffff !important;
  border-color: var(--teal-700);
}

.btn.btn-teal:hover {
  background: var(--teal-text);
  border-color: var(--teal-text);
}

.contact-phone-lg {
  font-size: 1.18rem;
}

.contact-card p.text-muted-sm,
.content-card p.text-muted-sm,
.text-muted-sm {
  color: var(--slate-600);
  font-size: 0.9rem;
}

.contact-card p.text-muted-md,
.content-card p.text-muted-md,
.text-muted-md {
  color: var(--slate-600);
  font-size: 0.92rem;
}

.content-card p.privacy-note,
.privacy-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--slate-600);
}

.content-card .mt-10,
.contact-card .mt-10,
.mt-10 {
  margin-top: 10px;
}

.content-card .mb-0,
.contact-card .mb-0,
.mb-0 {
  margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 920px) {
  .site-hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sport-nav-bar {
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .sport-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 18px;
  }

  .content-card {
    order: 1;
    width: 100%;
    padding: 22px 20px 28px;
  }

  .sidebar {
    order: 2;
    width: 100%;
  }

  /* Collapse the 10-item service menu on mobile until toggled */
  .js-enabled .sidebar:not(.is-open) > .sidebar-card:not(.sidebar-gallery) {
    display: none;
  }

  /* Sticky header: scrolls away until only the menu bar remains at the top */
  .js-enabled .site-header {
    position: sticky;
    top: calc(-1 * var(--sticky-header-offset, 0px));
  }

  .js-enabled .sport-nav-wrap:not(.is-open) .sport-nav {
    display: none;
  }

  .js-enabled .content-card {
    scroll-margin-top: calc(var(--sticky-bar-h, 60px) + 12px);
  }

  /* Dropdown panel (services + phases) shown below the sticky bar */
  .js-enabled .sidebar.is-open > .sidebar-card:not(.sidebar-gallery) {
    position: fixed;
    top: var(--menu-panel-top, 60px);
    left: 0;
    right: 0;
    z-index: 25;
    max-height: calc(100vh - var(--menu-panel-top, 60px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  @supports (height: 100dvh) {
    .js-enabled .sidebar.is-open > .sidebar-card:not(.sidebar-gallery) {
      max-height: calc(100dvh - var(--menu-panel-top, 60px));
    }
  }

  .js-enabled .sidebar.is-open::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    background: rgba(16, 42, 56, 0.45);
  }

  .side-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-hero-logo {
    align-self: center;
  }

  .site-hero-logo img {
    width: 180px;
  }

  .brand-name {
    font-size: 1.65rem;
  }

  .hero-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-menu-toggle {
    width: 100%;
  }

  .sport-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sport-nav li:last-child {
    grid-column: 1 / -1;
  }

  .side-menu {
    grid-template-columns: 1fr;
  }

  .content-card h1 {
    font-size: 1.4rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .photo-grid,
  .photo-grid.cols-4,
  .sidebar-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
