:root {
  --navy: #031326;
  --navy2: #071d38;
  --navy-card: #0b2442;
  --blue: #0787ff;
  --red: #ed1c24;
  --red-dark: #c0141b;
  --white: #f7f9fc;
  --muted: #aebdd0;
  --line: rgba(255,255,255,.11);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2,9,20,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

header.site .container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

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

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand .brand-text { display: flex; flex-direction: column; }

.brand b {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
}

.brand small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-top: 4px;
  text-transform: uppercase;
}

nav.main { display: flex; }

nav.main a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 4px;
  margin-left: 27px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.main a:hover { color: var(--blue); }
nav.main a.active { color: var(--red); border-color: var(--red); }

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

/* Pulsante menu (☰), visibile solo su schermi piccoli */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-ghost { border-color: var(--blue); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(7,135,255,0.14); transform: translateY(-2px); }

/* Hero */
.hero {
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, rgba(3,19,38,0.95) 0%, rgba(3,19,38,0.88) 42%, rgba(7,29,56,0.70) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 70px solid rgba(7,135,255,0.10);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 8% 92%, rgba(237,28,36,0.12), transparent 60%);
  z-index: 0;
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(560px, 62vw, 980px);
  transform: translate(-46%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hero-mark img { width: 100%; height: auto; opacity: 0.07; }

.hero-inner { position: relative; z-index: 2; padding: 90px 0; max-width: 760px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--blue);
  display: inline-block;
}

.eyebrow-bottom { margin-top: 38px; margin-bottom: 0; }

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.0;
  margin: 16px 0 22px;
}

h1 .accent { color: var(--red); }

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Sections generic */
section { padding: 92px 0; }

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue);
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  margin: 8px 0 28px;
}

.staff-intro { color: var(--muted); max-width: 540px; margin-top: -8px; font-size: 15px; }

/* Story / Chi siamo */
.story { background: linear-gradient(#061a34, #031326); }

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  align-items: center;
  margin-top: 40px;
}

.story p { color: var(--muted); }

.story-figure { overflow: hidden; }

.story-scroll {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #081c34;
  padding: 10px;
}

.story-track {
  display: flex;
  gap: 10px;
  transition: transform 0.65s ease;
  will-change: transform;
}

.sph {
  flex: 0 0 calc(50% - 5px);
  width: calc(50% - 5px);
  max-width: calc(50% - 5px);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #0d2847;
}

.sph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sph img.loaded { opacity: 1; }

.sph .ph-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px;
}

.sph .cap {
  position: absolute;
  left: 15px;
  bottom: 15px;
  background: rgba(2,9,20,0.82);
  border-left: 3px solid var(--red);
  padding: 7px 10px;
  font-weight: 600;
  font-size: 13px;
}

.story-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.story-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #0b2340;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s ease;
}

.story-controls button:hover { border-color: var(--blue); color: var(--blue); }

.dots { display: flex; gap: 6px; }

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #334860;
  display: block;
  font-style: normal;
}

.dots i.on { background: var(--red); }

/* Reviews */
.reviews { margin-top: 64px; }

.rating-summary {
  color: #ffd166;
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 0;
  letter-spacing: 0.03em;
}

.review-carousel { margin-top: 22px; }

.review-scroll { overflow: hidden; }

.review-track {
  display: flex;
  transition: transform 0.6s ease;
}

.review-slide { min-width: 100%; padding: 0 2px; }

.review-card {
  background: #091f3a;
  border: 1px solid var(--line);
  padding: 26px 28px;
  border-radius: 13px;
  max-width: 640px;
}

.stars { color: #ffd166; letter-spacing: 3px; }

.review-card p { color: var(--muted); margin: 12px 0; font-size: 16px; }

.author, .review-note {
  font-size: 11px;
  color: #71839a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-note { margin-top: 22px; display: inline-block; transition: color 0.15s ease; }
.review-note:hover { color: var(--blue); }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.pillar {
  border-top: 3px solid var(--blue);
  padding: 18px;
  background: rgba(255,255,255,0.025);
}

.pillar:nth-child(2) { border-color: var(--red); }

.pillar h3 { margin: 0 0 6px; font-size: 16px; }
.pillar p { font-size: 14px; margin: 0; color: var(--muted); }

/* Services */
.services { background: #020c19; }

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

.service-card {
  background: linear-gradient(145deg, #0b2442, #07172b);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: left;
  color: #fff;
  min-height: 205px;
  cursor: pointer;
  transition: 0.22s ease;
  width: 100%;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}

.service-card:hover, .service-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(7,135,255,0.5);
  outline: none;
}

.icon {
  width: 43px;
  height: 43px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  margin-bottom: 18px;
  position: relative;
}

.icon::after {
  content: "+";
  position: absolute;
  right: -7px;
  bottom: -11px;
  color: var(--red);
  font-weight: 600;
  font-size: 24px;
  font-family: var(--font-display);
}

.service-card h3 { font-size: 18px; margin: 0 0 8px; }
.service-card p { font-size: 14px; color: var(--muted); margin: 0; }

.link, .staff-more {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  display: inline-block;
  margin-top: 14px;
}

/* Staff */
.staff-section { background: linear-gradient(#031326, #061a34); }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

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

.staff-card {
  background: #0a1f39;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  cursor: pointer;
  padding: 30px 20px 26px;
  width: 100%;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  transition: 0.2s ease;
}

.staff-card:hover, .staff-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(7,135,255,0.5);
  outline: none;
}

.staff-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #22517d, #08172a 72%);
  border: 2px solid rgba(7,135,255,0.35);
  margin: 0 auto 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.staff-card:hover .staff-photo { border-color: var(--red); }

.staff-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.staff-card h4 { font-size: 17px; margin: 0 0 3px; }

.staff-card p {
  margin: 0 0 15px;
  color: var(--red);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
}

.staff-card .staff-more { display: block; margin: 0; }

.staff-cta { text-align: center; margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.staff-cta .btn { min-width: min(100%, 380px); }


/* Contact */
.contact { background: #020b17; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
  margin-top: 36px;
}

.contact-list { list-style: none; padding: 0; margin: 0; }

.contact-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #c8d3e0;
  font-size: 15px;
}

.contact-list .label {
  display: block;
  color: var(--blue);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 500;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.map-embed {
  width: 100%;
  min-height: 370px;
  border: 0;
  border-radius: 16px;
  filter: saturate(0.7) contrast(1.05);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: #010710;
}

footer.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.foot-brand b {
  color: #fff;
  font-size: 19px;
  font-family: var(--font-display);
  display: block;
  letter-spacing: 0.04em;
}

.foot-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
}

/* Service hero (sotto-pagine: galleria, staff, servizi) */
.service-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 66px 0 46px;
}

.service-hero .back {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  transition: color 0.15s ease;
}

.service-hero .back:hover { color: var(--blue); }

.service-hero h1 {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 52px);
}

/* Pagine di dettaglio servizio (sotto-pagine dirette) */
.service-body-wrap { background: linear-gradient(#061a34, #031326); }

.service-body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.desc p { color: var(--muted); font-size: 16px; }

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

.gallery .ph {
  aspect-ratio: 1;
  background: #0d2847;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

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

.gallery .ph .ph-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
  text-align: center;
  padding: 6px;
}

.schedule-box {
  background: #0a1f39;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}

.schedule-box h3 { font-size: 18px; margin: 0 0 16px; }

.schedule-group + .schedule-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.schedule-group-title {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 4px;
}

.schedule-group-tag {
  font-size: 12px;
  color: var(--blue);
  font-style: italic;
  margin: 0 0 12px;
}

.badge-new {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--red);
  padding: 2px 7px;
  border-radius: 10px;
  vertical-align: middle;
}

.schedule-list { list-style: none; margin: 0; padding: 0; }

.schedule-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-list li:last-child { border-bottom: none; }

.schedule-list .day {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.schedule-list .times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.schedule-list .time-chip {
  background: rgba(7,135,255,0.12);
  border: 1px solid rgba(7,135,255,0.3);
  color: #cfe6ff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.schedule-list .time-chip.is-new {
  background: rgba(237,28,36,0.12);
  border-color: rgba(237,28,36,0.45);
  color: #ffd9da;
  padding-right: 9px;
}

.schedule-list .time-chip.is-new::after {
  content: "nuovo";
  margin-left: 7px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  opacity: 0.95;
}

.schedule-note {
  font-size: 12px;
  color: #71839a;
  margin-top: 14px;
}

/* Gallery page */
.gallery-section { background: linear-gradient(#061a34, #031326); }

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

.gph {
  background: #0d2847;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gph:hover { transform: translateY(-3px); border-color: rgba(7,135,255,0.45); }

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

.gph .ph-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px;
}

.gph.video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  background: rgba(3,19,38,0.35);
  pointer-events: none;
}

.gph.big { grid-column: span 2; grid-row: span 2; }

/* Modal popup (staff + servizi) */
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #071b33;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px 38px;
  position: relative;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}

.modal-overlay.open .modal-box { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s ease;
}

.modal-close:hover { background: var(--red); transform: rotate(90deg); }

.modal-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  background: radial-gradient(circle at 35% 30%, #22517d, #08172a 72%);
  border: 2px solid rgba(7,135,255,0.35);
  position: relative;
}

.modal-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.modal-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  margin-bottom: 18px;
  position: relative;
}

.modal-icon::after {
  content: "+";
  position: absolute;
  right: -7px;
  bottom: -11px;
  color: var(--red);
  font-weight: 600;
  font-size: 22px;
  font-family: var(--font-display);
}

.modal-label {
  color: var(--blue);
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 12px;
  margin-bottom: 8px;
}

.modal-title { font-size: 27px; margin-bottom: 4px; }

.modal-role {
  font-size: 13px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.modal-body p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 14px; }

.modal-schedule {
  background: #0c2544;
  padding: 16px 18px;
  border-radius: 10px;
  margin: 18px 0;
}

.modal-schedule h5 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
}

.modal-schedule ul { list-style: none; margin: 0; padding: 0; }

.modal-schedule li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  font-size: 14px;
  color: var(--muted);
}

.modal-schedule li:last-child { border-bottom: 0; }

.modal-cta { display: inline-block; margin-top: 20px; }

/* Responsive */
@media (max-width: 900px) {
  header.site .container { position: relative; gap: 12px; }
  .header-actions { gap: 10px; }
  .header-actions .btn { white-space: nowrap; }
  .nav-toggle { display: flex; }

  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px;
    right: -18px;
    flex-direction: column;
    background: rgba(2,9,20,0.98);
    border-bottom: 1px solid var(--line);
    padding: 6px 18px 14px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  header.site.nav-open nav.main { display: flex; }

  nav.main a {
    margin-left: 0;
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  nav.main a:last-child { border-bottom: 0; }
  nav.main a.active { border-color: var(--line); }
  .story-grid, .contact-grid, .service-body { grid-template-columns: 1fr; }
  .service-grid, .staff-grid, .review-grid, .pillars { grid-template-columns: repeat(2, 1fr); }
  .staff-grid-preview { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gph.big { grid-column: span 2; }
  .hero { min-height: 78vh; }
  .hero-mark { width: 82vw; opacity: 0.8; }
}

@media (max-width: 620px) {
  .service-grid, .staff-grid, .review-grid, .pillars, .staff-grid-preview { grid-template-columns: 1fr; }
  .sph { flex-basis: 100%; width: 100%; max-width: 100%; }
  h1 { font-size: 40px; }
  .container { width: min(calc(100% - 28px), 1180px); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
  .hero { min-height: 76vh; padding: 60px 0; }
  .modal-box { padding: 32px 22px; }
  .modal-title { font-size: 22px; }
  footer.site .container { flex-direction: column; align-items: flex-start; text-align: left; }

  header.site .container { height: 64px; }
  nav.main { left: -14px; right: -14px; padding: 6px 14px 14px; max-height: calc(100vh - 64px); }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 34px; height: 34px; }
  .brand b { font-size: 17px; }
  .brand small { display: none; }
  .header-actions .btn { padding: 11px 14px; font-size: 11px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .staff-cta .btn { white-space: nowrap; padding: 13px 14px; font-size: 11px; letter-spacing: 0.03em; }
}

@media (max-width: 360px) {
  .header-actions .btn-primary { display: none; }
}

/* Schede istruttori affiancate nelle pagine dei servizi */
.staff-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 28px;
}