/* ===== Token di base ===== */
:root {
  --cream: #F7F5F1;
  --ink: #1B2A38;
  --teal: #4A7A93;
  --teal-deep: #345A6E;
  --sand: #C9B79C;
  --white: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  --max-width: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

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

/* ===== Header ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 28px 40px 0;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 68px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  color: var(--white);
  flex-shrink: 0;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
  transition: opacity 0.2s ease;
}

.main-nav a:hover { opacity: 0.75; }

.site-header--solid .main-nav a { text-shadow: none; }

/* ===== Header variant for inner pages (no hero photo) ===== */
.site-header--solid {
  position: sticky;
  background: var(--ink);
  padding: 22px 40px;
  top: 0;
}


.main-nav--dark a.is-current {
  color: var(--sand);
}

/* ===== Nav toggle (hamburger, mobile only) ===== */
.nav-toggle {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header--solid .nav-toggle span { filter: none; }

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Page header (inner pages) ===== */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: 64px 40px 90px;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header .section-eyebrow { color: var(--sand); }
.page-header .section-title { color: var(--white); margin-bottom: 18px; }

.page-header-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0;
}

.team--page {
  padding-top: 80px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10,17,23,0.22), rgba(10,17,23,0.22)),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(15,24,32,0.58) 0%, rgba(15,24,32,0.28) 45%, rgba(15,24,32,0) 72%),
    linear-gradient(180deg, rgba(15,24,32,0.48) 0%, rgba(15,24,32,0.05) 20%, rgba(15,24,32,0.05) 60%, rgba(15,24,32,0.52) 100%);
}

.hero-panel {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 44px;
  color: var(--white);
  text-align: center;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 20px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.15;
  margin: 0 0 28px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.hero-text {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  max-width: 700px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 2px;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease;
}

.hero-cta:hover {
  background: var(--teal-deep);
}

/* ===== Section shared ===== */
.section-eyebrow {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  margin: 0 0 24px;
  max-width: 720px;
}

/* ===== About / Chi siamo ===== */
.about {
  padding: 120px 40px;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-text { max-width: 680px; }

.about-lead {
  font-size: 19px;
  color: var(--teal-deep);
  margin: 0 0 18px;
}

.about-text p {
  font-size: 16px;
  color: #3E4E5C;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-list li {
  border: 1px solid rgba(27,42,56,0.18);
  border-radius: 2px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--ink);
}

.direction-block {
  border-top: 1px solid rgba(27,42,56,0.14);
  padding-top: 24px;
}

.direction-label {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
  margin: 0 0 8px;
}

.direction-names {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0;
}

.direction-names span {
  color: var(--sand);
  margin: 0 10px;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 15px;
  color: var(--teal-deep);
  border-bottom: 1px solid var(--teal-deep);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.text-link:hover { opacity: 0.7; }

/* ===== Team / Specialisti ===== */
.team {
  padding: 110px 40px;
  background: var(--cream);
}

.team-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  text-align: left;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #E4E0D5;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo--empty {
  background: linear-gradient(150deg, #E4E0D5 0%, #D7D2C4 100%);
}

.team-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--ink);
}

.team-role {
  font-size: 13.5px;
  color: var(--teal-deep);
  margin: 0 0 12px;
}

.team-bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: #55636F;
  margin: 0;
}

/* ===== Detailed team card (foto reale + competenze) ===== */
.team-card--detailed {
  grid-column: 1 / -1;
  max-width: 900px;
}

.team-card--detailed .team-photo {
  width: 180px;
  aspect-ratio: auto;
  float: left;
  margin: 0 24px 12px 0;
  background: none;
}

.team-card--detailed .team-photo img {
  border-radius: 3px;
}

.team-card--detailed::after {
  content: '';
  display: block;
  clear: both;
}

.skill-block {
  clear: both;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(27,42,56,0.1);
}

.skill-block-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--teal-deep);
  margin: 0 0 10px;
}

.skill-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-block li {
  font-size: 13.5px;
  line-height: 1.55;
  color: #55636F;
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}

.skill-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sand);
}

@media (max-width: 760px) {
  .team-card--detailed { grid-column: span 1; }
  .team-card--detailed .team-photo {
    float: none;
    width: 140px;
    margin: 0 0 16px;
  }
}

.team-inner + .team-inner {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(27,42,56,0.1);
}

.group-title--lg {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 32px;
}

.specialty-group {
  margin-bottom: 36px;
}

.specialty-group:last-child { margin-bottom: 0; }

.specialty-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16.5px;
  color: var(--teal-deep);
  margin: 0 0 14px;
}

/* ===== Standalone detailed specialist (dentro specialty-group) ===== */
.specialist-detailed {
  display: flex;
  gap: 28px;
  background: var(--white);
  border-radius: 3px;
  padding: 28px;
  margin-bottom: 24px;
}

.specialist-detailed-photo {
  flex-shrink: 0;
  width: 170px;
}

.specialist-detailed-photo img {
  width: 100%;
  border-radius: 3px;
  display: block;
}

.specialist-detailed-content { flex: 1; min-width: 0; }

.specialist-detailed-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 2px;
  color: var(--ink);
}

.specialist-detailed-bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: #55636F;
  margin: 0;
}

.specialist-detailed-bio + .specialist-detailed-bio { margin-top: 10px; }

.specialty-grid--spaced { margin-top: 0; }

.specialist-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.specialist-contact a {
  color: var(--teal-deep);
}

.specialist-contact a:hover { opacity: 0.75; }

.specialist-contact span {
  color: var(--sand);
}

@media (max-width: 760px) {
  .specialist-detailed { flex-direction: column; padding: 20px; }
  .specialist-detailed-photo { width: 130px; }
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.specialty-card {
  background: var(--white);
  border: 1px solid rgba(27,42,56,0.1);
  border-radius: 2px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--ink);
}

/* ===== Services ===== */
.services {
  padding: 100px 40px 120px;
  background: var(--white);
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(27,42,56,0.14);
  margin-bottom: 44px;
}

.tab-btn {
  font-family: var(--font-body);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #6B7C89;
  padding: 12px 4px;
  margin-right: 28px;
  position: relative;
  transition: color 0.2s ease;
}

.tab-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab-btn.is-active {
  color: var(--ink);
}

.tab-btn.is-active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.tab-intro {
  font-size: 16px;
  color: #55636F;
  max-width: 640px;
  margin: 0 0 36px;
}

.service-group { margin-bottom: 40px; }
.service-group:last-child { margin-bottom: 0; }

.group-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--teal-deep);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(27,42,56,0.1);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.service-card {
  background: var(--cream);
  border-radius: 3px;
  padding: 22px 24px;
}

.service-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
}

.service-card p {
  font-size: 14.5px;
  color: #55636F;
  margin: 0;
  line-height: 1.55;
}

.service-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.service-tags span {
  font-size: 12.5px;
  color: var(--teal-deep);
  background: rgba(74,122,147,0.12);
  padding: 5px 10px;
  border-radius: 2px;
}

/* ===== Journey / Percorso ===== */
.journey {
  padding: 100px 40px;
  background: var(--ink);
  color: var(--white);
}

.journey-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.journey .section-eyebrow {
  color: var(--sand);
}

.journey .section-title {
  color: var(--white);
}

.journey-steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.journey-step {
  padding: 0 28px 0 0;
  border-left: 1px solid rgba(255,255,255,0.16);
  padding-left: 28px;
}

.journey-step:first-child {
  border-left: none;
  padding-left: 0;
}

.journey-num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--teal);
  margin-bottom: 18px;
}

.journey-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 12px;
  line-height: 1.3;
}

.journey-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
  margin: 0;
}

/* ===== Partners / Convenzioni ===== */
.partners {
  padding: 90px 40px;
  background: var(--white);
  text-align: center;
}

.partners-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.partners .section-title {
  margin: 0 auto 48px;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partner-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  width: 220px;
  background: var(--cream);
  border-radius: 3px;
}

.partner-logo-slot img {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.partner-logo-slot img.partner-logo--lg {
  max-height: 94px;
  max-width: 210px;
}

/* ===== Contact ===== */
.contact {
  padding: 110px 40px 100px;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
}

.contact-label {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
}

.contact-list a { color: var(--ink); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--teal); }

.hours-block {
  border-top: 1px solid rgba(27,42,56,0.14);
  padding-top: 22px;
  margin-bottom: 36px;
}

.hours-block .direction-label { margin-bottom: 14px; }

.hours-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(27,42,56,0.08);
  font-size: 15px;
}

.hours-row:last-child { border-bottom: none; }

.hours-day {
  color: #6B7C89;
  min-width: 130px;
  font-size: 13.5px;
}

.hours-dept {
  flex: 1;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}

.hours-time {
  color: var(--teal-deep);
  font-weight: 500;
  white-space: nowrap;
}

.contact-map {
  border-radius: 3px;
  overflow: hidden;
  min-height: 360px;
  background: #E5E1D8;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 48px 40px;
  text-align: center;
}

.footer-mark {
  width: 56px;
  margin: 0 auto 14px;
}

.footer-tagline {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sand);
  margin: 0 0 6px;
}

.footer-copy {
  font-size: 12.5px;
  margin: 0;
  color: rgba(255,255,255,0.5);
}

.footer-credit {
  font-size: 11.5px;
  margin: 6px 0 0;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.02em;
}

/* ===== Gallery ===== */
.gallery {
  padding: 100px 40px;
  background: var(--white);
}

.gallery-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(150deg, #E4E0D5 0%, #D7D2C4 100%);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item--wide { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 560px) {
  .gallery { padding: 64px 22px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: span 1; }
}

/* ===== Back to home ===== */
.back-home {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 110;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(27,42,56,0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.back-home svg {
  width: 20px;
  height: 20px;
}

.back-home:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .back-home { left: 16px; bottom: 16px; width: 44px; height: 44px; }
  .cookie-banner.is-visible ~ .back-home { bottom: 190px; }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 90px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: rgba(255,255,255,0.88);
  border-radius: 4px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  transform: translateY(calc(100% + 60px));
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner p {
  flex: 1;
  min-width: 220px;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.cookie-banner strong {
  color: var(--white);
}

.cookie-btn {
  flex-shrink: 0;
  background: var(--teal);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-btn:hover {
  background: var(--teal-deep);
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 18px;
  }
  .cookie-btn { width: 100%; text-align: center; }
}

/* ===== Responsive ===== */
/* Tablet (iPad verticale/orizzontale) */
@media (min-width: 761px) and (max-width: 1024px) {
  .site-header { padding: 24px 32px 0; }
  .site-header--solid { padding: 20px 32px; }
  .main-nav { gap: 28px; }

  .about, .contact { padding: 88px 32px; }
  .services, .journey, .gallery { padding: 80px 32px; }
  .team { padding: 80px 32px; }
  .page-header { padding: 56px 32px 72px; }

  .journey-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .journey-step:nth-child(odd) { border-left: none; padding-left: 0; }

  .partners { padding: 72px 32px; }
  .partners-logos { gap: 24px; }
  .partner-logo-slot { width: 200px; }

  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Schermi larghi */
@media (min-width: 1600px) {
  :root { --max-width: 1320px; }
  .hero-title { font-size: 64px; }
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

body.nav-open { overflow: hidden; }
body.nav-open .back-home,
body.nav-open .cookie-banner { visibility: hidden; }

@media (max-width: 760px) {
  .site-header { padding: 16px 20px; }
  .site-header--solid { padding: 16px 20px; }
  .brand-mark { width: 54px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a { text-shadow: none; font-size: 20px; }

  .hero { min-height: 100vh; min-height: 100svh; align-items: center; }
  .hero-panel {
    margin: 0 auto;
    padding: 28px 20px;
    max-width: 100%;
  }
  .hero-eyebrow { font-size: 12.5px; margin-bottom: 14px; }
  .hero-title { font-size: 30px; margin-bottom: 18px; }
  .hero-text { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { padding: 13px 26px; font-size: 14px; }

  .section-title { font-size: 26px; }

  .page-header { padding: 44px 20px 56px; }
  .page-header-lead { font-size: 15.5px; }

  .about, .services, .contact { padding: 64px 20px; }
  .about-lead { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; }
  .tabs { gap: 4px 18px; }
  .tab-btn { margin-right: 0; font-size: 14px; }

  .team { padding: 56px 20px; }
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-inner + .team-inner { margin-top: 44px; padding-top: 36px; }
  .specialty-grid { grid-template-columns: 1fr; }

  .journey { padding: 64px 20px; }
  .journey-steps { grid-template-columns: 1fr; gap: 32px; }
  .journey-step { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 24px; }
  .journey-step:first-child { border-top: none; padding-top: 0; }

  .partners { padding: 56px 20px; }
  .partners-logos { gap: 20px; }
  .partner-logo-slot { width: 100%; max-width: 220px; }

  .contact-map { min-height: 280px; }
  .contact-map iframe { min-height: 280px; }
  .hours-day { min-width: 0; }
  .hours-row { flex-wrap: wrap; gap: 4px 14px; }

  .gallery { padding: 56px 20px; }

  .site-footer { padding: 40px 20px; }
}

@media (max-width: 380px) {
  .brand-mark { width: 46px; }
  .hero-title { font-size: 26px; }
  .hero-text { font-size: 15px; }
  .section-title { font-size: 23px; }
  .back-home { left: 12px; bottom: 12px; width: 40px; height: 40px; }
  .back-home svg { width: 18px; height: 18px; }
}
