/* =========================================================
   NEUROMAS — Studio medico associato — Treviglio (BG)
   ========================================================= */

:root {
  --primary: #465a64;
  --primary-dark: #37474f;
  --primary-light: #607580;
  --secondary: #00a19a;
  --secondary-dark: #00847f;
  --secondary-light: #e6f6f5;
  --bg-light: #f4f7f7;
  --bg-white: #ffffff;
  --text-dark: #2c363c;
  --text-body: #57666c;
  --text-muted: #8b979c;
  --border-color: #e3e9ea;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(38, 55, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(38, 55, 60, 0.1);
  --shadow-lg: 0 20px 50px rgba(38, 55, 60, 0.16);
  --transition: 0.25s ease;
  --header-h: 88px;
  --topbar-h: 40px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Mulish", "Segoe UI", Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

section { position: relative; }

/* -------------------- Utilities -------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--secondary);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--text-body); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 161, 154, 0.28);
}
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,161,154,0.36); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-color);
}
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary-dark); background: var(--secondary-light); }
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* -------------------- Topbar -------------------- */

.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
}
.topbar-info { display: flex; align-items: center; gap: 24px; }
.topbar-info a { display: inline-flex; align-items: center; gap: 7px; transition: color var(--transition); }
.topbar-info a:hover { color: var(--secondary); }
.topbar-info svg { width: 14px; height: 14px; opacity: 0.85; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.topbar-social a:hover { background: var(--secondary); }
.topbar-social svg { width: 13px; height: 13px; }

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-cta-mobile { display: none; }
.main-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.main-nav a.nav-link:hover,
.main-nav li.active > a.nav-link { color: var(--secondary-dark); background: var(--secondary-light); }
.main-nav a.nav-link svg { width: 11px; height: 11px; transition: transform var(--transition); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover > a.nav-link svg { transform: rotate(180deg); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--transition);
}
.dropdown a:hover, .dropdown a.active { background: var(--secondary-light); color: var(--secondary-dark); padding-left: 18px; }
.dropdown .dot-ico {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--secondary-light); color: var(--secondary-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dropdown .dot-ico svg { width: 9px; height: 9px; }
.dropdown a:hover .dot-ico, .dropdown a.active .dot-ico { background: #fff; }

.header-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  background: var(--bg-light);
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--primary); position: relative; transition: all var(--transition); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--primary); transition: all var(--transition); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* -------------------- Hero (home) -------------------- */

.hero {
  position: relative;
  padding: 180px 0 150px;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-content .eyebrow { color: #8fe7e0; }
.hero-content .eyebrow::before { background: #8fe7e0; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-content h1 em { color: #8fe7e0; font-style: normal; }
.hero-content .lead {
  font-size: 18px;
  color: rgba(255,255,255,0.86);
  max-width: 500px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.14); border-color: #fff; color: #fff; }

/* -------------------- Stats -------------------- */

.stats-bar {
  background: var(--primary);
  border-radius: var(--radius);
  margin: -180px 0 60px;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stat-item {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  color: #fff;
  margin-bottom: 6px;
}
.stat-item .stat-label { display: block; font-size: 13.5px; color: rgba(255,255,255,0.72); font-weight: 500; }

/* -------------------- Page hero (inner pages) -------------------- */

.page-hero {
  position: relative;
  padding: 150px 0 72px;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 10px; height: 10px; }
.breadcrumb .current { color: var(--secondary); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); max-width: 720px; }
.page-hero p.sub { color: rgba(255,255,255,0.78); font-size: 16.5px; max-width: 620px; margin-top: 14px; }

/* -------------------- About / split section -------------------- */

.split-section { padding: 100px 0; }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-grid.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .media-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.3;
}
.split-media .media-main img { width: 100%; height: 100%; object-fit: cover; }
.split-media .media-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.split-media .media-badge strong { display: block; font-family: "Poppins", sans-serif; font-size: 26px; }
.split-media .media-badge span { font-size: 12.5px; opacity: 0.9; }

.split-text h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 20px; }
.split-text p { margin-bottom: 16px; font-size: 16px; }
.split-text .btn { margin-top: 10px; }

.check-list { margin: 22px 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--text-dark); font-weight: 500; }
.check-list .check-ico {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--secondary-light); color: var(--secondary-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.check-list .check-ico svg { width: 12px; height: 12px; }

/* -------------------- Services grid -------------------- */

.services-section { padding: 100px 0; background: var(--bg-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.service-card .icon-circle {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--secondary-light); color: var(--secondary-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card .icon-circle svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-body); flex: 1; margin-bottom: 16px; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--secondary-dark);
  letter-spacing: 0.3px; text-transform: uppercase;
}
.service-card .more svg { width: 13px; height: 13px; transition: transform var(--transition); }
.service-card:hover .more svg { transform: translateX(4px); }

.services-grid.compact { grid-template-columns: repeat(3, 1fr); }

/* -------------------- CTA banner -------------------- */

.cta-banner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
}
.cta-banner-inner {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary-dark) 130%);
  border-radius: 24px;
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner-inner::before {
  content: "";
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  border: 50px solid rgba(255,255,255,0.06);
  top: -150px; right: -60px;
}
.cta-banner-text { position: relative; z-index: 2; max-width: 560px; }
.cta-banner-text .eyebrow { color: var(--secondary-light); }
.cta-banner-text .eyebrow::before { background: var(--secondary-light); }
.cta-banner-text h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.cta-banner-text p { color: rgba(255,255,255,0.78); }
.cta-banner-actions { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------- Team -------------------- */

.team-section { padding: 100px 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: transparent; }
.team-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 26px;
}
.team-card h3 { font-size: 17px; margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--secondary-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 14px; }
.team-card p { font-size: 14px; text-align: left; color: var(--text-body); }

/* -------------------- Values / icon columns -------------------- */

.values-section { padding: 100px 0; background: var(--bg-light); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.value-card { text-align: center; padding: 10px; }
.value-card .icon-circle {
  width: 66px; height: 66px; border-radius: 20px;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--secondary-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.value-card .icon-circle svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; }

/* -------------------- Gallery (chi siamo) -------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.gallery-grid img, .gallery-grid .g-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.07); }

/* -------------------- Indications / treatments list (service pages) -------------------- */

.service-detail { padding: 90px 0; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}
.service-detail-main h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 34px 0 16px; }
.service-detail-main h2:first-child { margin-top: 0; }
.service-detail-main p { margin-bottom: 16px; font-size: 16px; }

.indications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 20px 0 10px;
}
.indications-grid li, .simple-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-dark); font-weight: 500;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}
.simple-list { display: grid; gap: 10px; margin: 20px 0; }
.indications-grid .dot, .simple-list .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--secondary); margin-top: 7px; flex-shrink: 0;
}

.warning-box {
  margin-top: 28px;
  border-left: 3px solid #e0a324;
  background: #fdf6e8;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: #7a5c14;
}
.warning-box strong { display: block; margin-bottom: 4px; color: #614a10; }

/* Sidebar for service pages */
.service-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.sidebar-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px;
}
.sidebar-box h3 { font-size: 15.5px; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 16px; }
.sidebar-list { display: grid; gap: 4px; }
.sidebar-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--text-body);
  transition: all var(--transition);
}
.sidebar-list a svg { width: 12px; height: 12px; opacity: 0; transition: all var(--transition); }
.sidebar-list a:hover, .sidebar-list a.active { background: #fff; color: var(--secondary-dark); box-shadow: var(--shadow-sm); }
.sidebar-list a:hover svg, .sidebar-list a.active svg { opacity: 1; transform: translateX(2px); }

.sidebar-box.contact-box { background: var(--primary); color: #fff; }
.sidebar-box.contact-box h3 { color: #fff; }
.sidebar-box.contact-box p { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 18px; }
.sidebar-contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sidebar-contact-row .icon-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--secondary-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-contact-row .icon-circle svg { width: 16px; height: 16px; }
.sidebar-contact-row a, .sidebar-contact-row span { font-size: 14px; font-weight: 600; }

/* -------------------- Contact page -------------------- */

.contact-section { padding: 90px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: stretch;
}
.contact-cards { display: grid; gap: 18px; align-content: start; }
.contact-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-card .icon-circle {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card .icon-circle svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 15px; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--text-body); display: block; }
.contact-card a:hover { color: var(--secondary-dark); }

.map-wrap { width: 100%; max-width: 100%; min-width: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/10; }
.map-wrap iframe { display: block; width: 100%; max-width: 100%; height: 100%; border: 0; }
.map-wrap.tall { aspect-ratio: unset; min-height: 420px; height: 100%; }

/* -------------------- Footer -------------------- */

.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.72); padding: 80px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo img { height: 30px; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.7; margin-bottom: 20px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--secondary); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 22px; letter-spacing: 0.3px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color var(--transition), padding var(--transition); }
.footer-col a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.footer-contact svg { width: 15px; height: 15px; margin-top: 3px; flex-shrink: 0; color: var(--secondary); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: #fff; }

.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition);
  z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--secondary-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* -------------------- Reveal animation -------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------------------- Mobile nav drawer -------------------- */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(1, 1fr); max-width: 460px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.reverse .split-media { order: 0; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .hero { padding: 150px 0 120px; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap.tall { aspect-ratio: 16/10; height: auto; min-height: 320px; }
  .services-grid.compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .main-nav { position: fixed; top: var(--header-h); right: -100%; height: calc(100vh - var(--header-h)); width: min(340px, 86vw);
    background: #fff; flex-direction: column; align-items: stretch; padding: 24px 24px 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12); transition: right 0.35s ease; overflow-y: auto; z-index: 600; }
  .main-nav.open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .main-nav a.nav-link { padding: 14px 16px; width: 100%; justify-content: space-between; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    display: none; grid-template-columns: 1fr; border: none; background: var(--bg-light); margin: 4px 0 4px; }
  .has-dropdown.mobile-open .dropdown { display: grid; }
  .has-dropdown.mobile-open > a.nav-link svg { transform: rotate(180deg); }
  .nav-toggle { display: flex; position: relative; z-index: 700; }
  .nav-overlay { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: rgba(20,28,32,0.5); opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 550; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .header-cta .header-cta-btn { display: none; }
  .nav-cta-mobile { display: flex; justify-content: center; width: 100%; margin-bottom: 20px; order: -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 76px; }
  .services-grid, .team-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid.compact { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-banner-inner { padding: 40px 30px; justify-content: center; text-align: center; }
  .cta-banner-text { margin: 0 auto; }
  .cta-banner-actions { justify-content: center; width: 100%; }
  .service-sidebar { grid-template-columns: 1fr; }
  .split-section, .services-section, .team-section, .values-section, .contact-section { padding: 64px 0; }
  .hero { padding: 120px 0 90px; }
  .page-hero { padding: 110px 0 50px; }
  .stats-bar { margin: -110px 0 40px; }
}

@media (max-width: 560px) {
  .services-grid, .team-grid, .gallery-grid, .services-grid.compact { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .indications-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { border-radius: 18px; }
  .hero-content .lead { max-width: 100%; }
  .container { padding: 0 18px; }
}

/* -------------------- Cookie consent -------------------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 26px 28px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-banner h2 { font-size: 17px; margin-bottom: 8px; }
.cookie-banner p { font-size: 14px; color: var(--text-body); margin-bottom: 0; }
.cookie-banner p a { color: var(--secondary-dark); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie-actions .btn { padding: 12px 20px; font-size: 14px; }
.cookie-actions .btn-text {
  background: none; color: var(--text-body); font-weight: 700; font-size: 14px;
  padding: 12px 6px; border-radius: var(--radius-sm);
}
.cookie-actions .btn-text:hover { color: var(--secondary-dark); }

.cookie-prefs { display: none; margin-top: 18px; border-top: 1px solid var(--border-color); padding-top: 18px; }
.cookie-prefs.show { display: block; }
.cookie-pref-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border-color);
}
.cookie-pref-row:last-child { border-bottom: none; }
.cookie-pref-text strong { display: block; font-size: 14px; color: var(--text-dark); margin-bottom: 3px; }
.cookie-pref-text span { font-size: 12.5px; color: var(--text-muted); }

.cookie-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch .track {
  position: absolute; inset: 0; background: var(--border-color); border-radius: 999px; transition: background var(--transition);
}
.cookie-switch .track::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform var(--transition); box-shadow: var(--shadow-sm);
}
.cookie-switch input:checked + .track { background: var(--secondary); }
.cookie-switch input:checked + .track::before { transform: translateX(18px); }
.cookie-switch input:disabled + .track { background: var(--secondary); opacity: 0.5; cursor: not-allowed; }

.map-consent-placeholder {
  width: 100%; height: 100%; min-height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 30px;
  background: var(--bg-light);
}
.map-consent-placeholder .icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--secondary-light); color: var(--secondary-dark);
  display: flex; align-items: center; justify-content: center;
}
.map-consent-placeholder .icon-circle svg { width: 24px; height: 24px; }
.map-consent-placeholder p { font-size: 14px; color: var(--text-body); max-width: 340px; }

@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 22px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn, .cookie-actions .btn-text { width: 100%; }
}
