:root {
  --ink: #1b1616;
  --muted: #6f6262;
  --line: #ead8d8;
  --paper: #fff7f7;
  --white: #ffffff;
  --deep: #3a0808;
  --teal: #b10f1c;
  --lime: #ff2e3f;
  --blue: #7e1118;
  --coral: #e21a2c;
  --shadow: 0 22px 70px rgba(120, 13, 22, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(247, 250, 248, 0.9);
  border-bottom: 1px solid rgba(120, 13, 22, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand span:last-child {
  line-height: 1.08;
}

.brand-mark {
  position: relative;
  flex: 0 0 42px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: transparent;
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: 0;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  width: 27px;
  height: 27px;
  background: url("../images/logo-coniglio.svg") center / contain no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #3f2224;
  font-weight: 700;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #fff0f1;
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--teal);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  color: var(--white);
  background: var(--deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 64px) clamp(106px, 10vw, 130px);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(58, 8, 8, 0.86), rgba(58, 8, 8, 0.54) 46%, rgba(58, 8, 8, 0.18)),
    linear-gradient(0deg, rgba(58, 8, 8, 0.72), rgba(58, 8, 8, 0) 42%);
}

.hero-content {
  max-width: 760px;
  color: var(--white);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  width: min(1180px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.booking-hero .eyebrow {
  color: #ffccd1;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(44px, 6.2vw, 78px);
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
}

h3 {
  font-size: 22px;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.footer-links,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.hero .button.primary,
.booking-card .button.primary {
  color: var(--deep);
  background: var(--white);
  border-color: var(--white);
}

.button.secondary {
  color: var(--deep);
  background: #fff0f1;
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.button.large {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 18px;
}

.button.full {
  width: 100%;
}

.button-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(177, 15, 28, 0.12);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  width: min(720px, calc(100% - 36px));
  color: var(--white);
  background: rgba(58, 8, 8, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.booking-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(58, 8, 8, 0.28);
  backdrop-filter: blur(18px);
}

.booking-card .eyebrow {
  margin-bottom: 0;
  color: #ffccd1;
}

.booking-card h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.booking-card p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.booking-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-meta span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.hero-trust {
  position: absolute;
  left: clamp(18px, 5vw, 64px);
  right: clamp(18px, 5vw, 64px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
}

.hero-trust span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  color: var(--white);
  background: rgba(58, 8, 8, 0.68);
  font-weight: 850;
  text-align: center;
}

.hero-panel div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel div:last-child {
  border-right: 0;
}

.metric {
  display: block;
  color: #ffccd1;
  font-size: 24px;
  font-weight: 900;
}

.section,
.search-band,
.page-hero,
.page-title,
.booking-hero,
.contact-layout {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin: 0;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-links a {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--deep);
  background: #fff7f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  text-align: center;
}

.quick-links a:hover {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: linear-gradient(180deg, var(--white), #fff7f7);
}

.about-media {
  position: relative;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: -14px 18px 18px -14px;
  border: 2px solid rgba(177, 15, 28, 0.22);
  border-radius: var(--radius);
}

.about-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy {
  max-width: 700px;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--deep);
}

.stats-strip div {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: center;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(177, 15, 28, 0.92), rgba(58, 8, 8, 0.94));
}

.stats-strip strong {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.stats-strip span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 30px;
  align-items: end;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #fff0f1;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
}

.feature-grid,
.cards-row,
.price-grid,
.process,
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.course-card,
.price-card,
.result-card,
.process article,
.side-panel,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 35px rgba(120, 13, 22, 0.06);
}

.feature-card,
.course-card,
.price-card,
.result-card,
.process article {
  padding: 24px;
}

.feature-card {
  display: grid;
  gap: 16px;
  min-height: 255px;
}

.feature-card p,
.course-card p,
.price-card p,
.result-card span,
.page-title p,
.page-hero p,
.booking-hero p,
.contact-layout p,
.content-block p {
  color: var(--muted);
}

.feature-card a,
.course-card a,
.price-card a,
.result-card a,
.seo-grid a {
  color: var(--teal);
  font-weight: 850;
}

.icon,
.tag {
  color: var(--blue);
  font-weight: 900;
}

.split,
.two-column,
.page-hero,
.contact-layout,
.photo-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.split {
  background: #fff0f1;
}

.facility-section {
  background: var(--white);
}

.facility-section .section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.facility-grid article {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffafa;
}

.facility-grid article:nth-child(1),
.facility-grid article:nth-child(4) {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.facility-grid article:nth-child(1) p,
.facility-grid article:nth-child(4) p {
  color: rgba(255, 255, 255, 0.82);
}

.facility-grid p {
  margin: 0;
  color: var(--muted);
}

.review-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: #fffafa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.review-band p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.directions-section {
  background: var(--white);
}

.hours-section {
  background: var(--white);
}

.hours-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(160px, 1fr);
  max-width: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 35px rgba(120, 13, 22, 0.06);
}

.hours-grid span,
.hours-grid strong {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.hours-grid span {
  color: var(--muted);
  background: #fff7f7;
  font-weight: 850;
}

.hours-grid strong {
  color: var(--deep);
  background: var(--white);
}

.hours-grid span:nth-last-child(2),
.hours-grid strong:last-child {
  border-bottom: 0;
}

.mini-hours {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff7f7;
}

.mini-hours h3 {
  font-size: 18px;
}

.mini-hours p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(58, 8, 8, 0.94), rgba(177, 15, 28, 0.88)),
    url("../images/campo-padel-coperto-lomazzo.jpg") center / cover;
}

.final-cta .eyebrow {
  color: #ffccd1;
}

.final-cta h2 {
  max-width: 760px;
}

.final-cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.final-cta .button.primary {
  color: var(--deep);
  background: var(--white);
  border-color: var(--white);
  white-space: nowrap;
}

.faq-section {
  background: #fff7f7;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(120, 13, 22, 0.05);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--deep);
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.program-list,
.seo-grid,
.contact-list {
  display: grid;
  gap: 12px;
}

.program-list a,
.seo-grid a,
.contact-list a,
.contact-list span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.page-hero {
  background: var(--deep);
  color: var(--white);
}

.page-hero .eyebrow {
  color: #ffccd1;
}

.page-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero h1,
.page-title h1,
.booking-hero h1,
.contact-layout h1 {
  max-width: 13ch;
}

.page-hero img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.qr-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--deep);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.qr-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.qr-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.page-hero .qr-card p {
  color: var(--muted);
}

.photo-story {
  background: var(--white);
}

.photo-story img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-story p:not(.eyebrow) {
  color: var(--muted);
  margin: 18px 0 24px;
}

.content-block,
.page-title {
  max-width: 860px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
}

.side-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.course-card,
.price-card,
.result-card {
  display: grid;
  gap: 12px;
}

.featured {
  border-color: rgba(177, 15, 28, 0.45);
  box-shadow: var(--shadow);
}

.price {
  color: var(--deep) !important;
  font-size: 32px;
  font-weight: 900;
}

.booking-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  color: var(--white);
  background:
    linear-gradient(rgba(58, 8, 8, 0.82), rgba(58, 8, 8, 0.82)),
    url("../images/campo-padel-coperto-lomazzo.jpg") center / cover;
}

.booking-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.booking-hero .button {
  justify-self: start;
}

.process {
  background: var(--white);
}

.process article span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--deep);
  background: var(--white);
  border: 2px solid var(--lime);
  border-radius: 50%;
  font-weight: 900;
}

.search-page {
  padding-top: 0;
}

.large-search {
  margin-bottom: 18px;
}

.filter-pill {
  min-height: 42px;
  padding: 0 16px;
  color: var(--deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.filter-pill.active {
  color: var(--white);
  background: var(--teal);
}

.results-grid {
  margin-top: 22px;
}

.result-card[hidden] {
  display: none;
}

.empty-state {
  padding: 18px;
  background: #fff4ec;
  border: 1px solid #ffd4bd;
  border-radius: var(--radius);
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #4d2b2e;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fbfdfc;
}

.legal-title {
  max-width: 980px;
}

.legal-title h1 {
  max-width: 14ch;
}

.legal-content {
  display: grid;
  gap: 22px;
  max-width: 980px;
  background: var(--white);
}

.legal-content h2 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.legal-content a {
  color: var(--teal);
  font-weight: 850;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(680px, calc(100% - 36px));
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--teal);
  font-weight: 850;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: #3a0808;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.2;
}

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

@media (max-width: 920px) {
  .site-header {
    gap: 14px;
    padding: 12px clamp(14px, 4vw, 28px);
  }

  .nav-toggle {
    flex: 0 0 44px;
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .search-band,
  .home-intro,
  .about-section,
  .review-band,
  .final-cta,
  .split,
  .two-column,
  .page-hero,
  .contact-layout,
  .photo-story {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .booking-card {
    max-width: 520px;
  }

  .hero-trust {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 30px;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip,
  .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta .button {
    justify-self: start;
  }

  .feature-grid,
  .cards-row,
  .price-grid,
  .process,
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  .section,
  .search-band,
  .page-hero,
  .page-title,
  .booking-hero,
  .contact-layout {
    padding: 42px 16px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand span:last-child {
    max-width: 168px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 46px 16px 26px;
  }

  h1 {
    max-width: 13ch;
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-actions,
  .about-actions {
    width: 100%;
  }

  .hero-actions .button,
  .about-actions .button,
  .booking-hero .button,
  .page-hero .button {
    width: 100%;
  }

  .booking-card {
    display: none;
  }

  .booking-meta,
  .hero-trust,
  .quick-links,
  .stats-strip,
  .facility-grid {
    grid-template-columns: 1fr;
  }

  .about-media::before {
    inset: -10px 10px 10px -10px;
  }

  .stats-strip div,
  .facility-grid article {
    min-height: auto;
  }

  .feature-card,
  .course-card,
  .price-card,
  .result-card,
  .process article,
  .side-panel,
  .contact-form {
    padding: 18px;
  }

  .page-hero h1,
  .page-title h1,
  .booking-hero h1,
  .contact-layout h1,
  .legal-title h1 {
    max-width: 100%;
  }

  .page-hero img,
  .photo-story img,
  .about-media img {
    aspect-ratio: 4 / 3;
    max-height: 360px;
  }

  .hours-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    width: 100%;
  }

  .hours-grid span,
  .hours-grid strong {
    min-height: 50px;
    padding: 12px;
    font-size: 14px;
  }

  .faq-list summary {
    padding: 18px;
  }

  .faq-list p {
    padding: 0 18px 18px;
  }

  .final-cta .button {
    width: 100%;
  }

  .review-actions {
    justify-content: stretch;
  }

  .review-actions .button {
    width: 100%;
  }

  .hero-panel,
  .feature-grid,
  .cards-row,
  .price-grid,
  .process,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .search-box {
    border-radius: var(--radius);
    flex-direction: column;
  }

  .search-box input {
    min-height: 44px;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 16px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
  }

  .cookie-banner {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    max-height: min(78vh, 520px);
    overflow: auto;
    padding: 16px;
  }

  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .brand-mark::before {
    width: 24px;
    height: 24px;
  }

  .brand span:last-child {
    max-width: 136px;
    font-size: 13px;
  }

  .nav-toggle {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }

  .button {
    min-height: 50px;
    padding-inline: 14px;
  }

  .quick-links a,
  .program-list a,
  .seo-grid a,
  .contact-list a,
  .contact-list span {
    min-height: 52px;
    padding: 14px;
  }
}
