:root {
  --bg: #f5efdf;
  --surface: rgba(255, 251, 244, 0.78);
  --surface-strong: rgba(255, 250, 243, 0.92);
  --fg: #2d261d;
  --muted: #6c6156;
  --border: rgba(99, 84, 67, 0.16);
  --accent: #b85d35;
  --accent-deep: #1e5d43;
  --accent-deep-2: #174b37;
  --shadow: 0 24px 60px rgba(45, 38, 29, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(184, 93, 53, 0.1), transparent 28%),
    radial-gradient(circle at right 12% top 20%, rgba(106, 125, 85, 0.12), transparent 24%),
    linear-gradient(180deg, #faf5ea, var(--bg));
  text-wrap: pretty;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 80%);
}

body.gallery-open {
  overflow: hidden;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
}

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

html[data-lang="it"] .lang-en,
html[data-lang="en"] .lang-it {
  display: none;
}

html[data-lang="it"] .lang-it,
html[data-lang="en"] .lang-en {
  display: inline;
}

.shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 239, 223, 0.78);
  border-bottom: 1px solid rgba(99, 84, 67, 0.12);
}

.header-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(45, 38, 29, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  font-size: 0.96rem;
  color: rgba(45, 38, 29, 0.86);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.54);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.lang-switch button.active {
  background: var(--accent-deep);
  color: #fff;
}

.hero,
.section,
.footer {
  padding: 36px 0 72px;
}

.hero-grid,
.section-header,
.spaces-grid,
.services-grid,
.territory-grid,
.map-grid,
.contact-grid,
.intro-grid,
.gallery-strip,
.hero-meta,
.mini-grid,
.field-grid,
.check-list,
.info-list,
.contact-list,
.detail-list,
.gallery-thumbs {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.section-header {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  margin-bottom: 24px;
}

.spaces-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid,
.map-grid {
  grid-template-columns: 1fr 1fr;
}

.territory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid,
.intro-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-grid-single {
  grid-template-columns: minmax(0, 780px);
  justify-content: end;
}

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

.hero-card,
.hero-media-card,
.space-card,
.intro-card,
.info-card,
.territory-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card,
.intro-card,
.info-card,
.territory-card,
.contact-card {
  padding: clamp(22px, 3vw, 30px);
}

.hero-card {
  background:
    radial-gradient(circle at top left, rgba(184, 93, 53, 0.14), transparent 36%),
    linear-gradient(160deg, rgba(255, 252, 247, 0.94), rgba(244, 236, 220, 0.88));
}

.hero-media-card,
.services-photo,
.map-photo {
  position: relative;
  background: linear-gradient(180deg, rgba(82, 92, 64, 0.9), rgba(52, 60, 45, 0.96));
  min-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.services-photo {
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.map-photo {
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.hero-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.14), rgba(255, 251, 244, 0.1)),
    rgba(33, 39, 33, 0.12);
  backdrop-filter: blur(10px) saturate(0.88);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.hero-media-card.is-overlay-active::after {
  opacity: 1;
}

.hero-video,
.services-photo img,
.map-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: inherit;
}

.map-photo-wide img {
  min-height: 500px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(184, 93, 53, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  margin-top: 22px;
  font-size: clamp(3rem, 7vw, 6rem);
}

h2 {
  max-width: 10ch;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: 8px;
}

p {
  margin: 0;
  line-height: 1.72;
  color: rgba(45, 38, 29, 0.85);
}

.hero-copy {
  margin-top: 24px;
  max-width: 58ch;
  font-size: 1.06rem;
}

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

.hero-meta {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-meta div,
.mini-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.48);
}

.hero-meta > div > span,
.mini-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hero-meta strong {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.photo-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(45, 38, 29, 0.62);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.welcome-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  max-width: min(420px, calc(100% - 44px));
  display: flex;
  justify-content: flex-end;
}

.welcome-card,
.welcome-chip {
  transition: transform 220ms ease, opacity 220ms ease;
}

.welcome-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 251, 244, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.18);
  backdrop-filter: blur(12px);
}

.welcome-panel.is-collapsed .welcome-card {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  position: absolute;
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0 14px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(30, 93, 67, 0.94);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(30, 93, 67, 0.22);
}

.welcome-panel.is-collapsed .welcome-chip {
  animation: welcome-chip-pulse 2.8s ease-in-out infinite;
}

.welcome-panel:not(.is-collapsed) .welcome-chip {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(12px) scale(0.96);
}

.welcome-chip-label {
  line-height: 1;
}

.welcome-chip-icon {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 600;
}

.welcome-eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-title {
  display: block;
  margin-bottom: 10px;
  padding-right: 58px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
}

.welcome-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.welcome-copy {
  color: rgba(45, 38, 29, 0.84);
  line-height: 1.6;
}

@keyframes welcome-chip-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 16px 30px rgba(30, 93, 67, 0.22);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(30, 93, 67, 0.28);
  }
}

.photo-caption strong,
.gallery-caption strong {
  display: block;
  margin-bottom: 6px;
}

.photo-caption span {
  color: rgba(255, 255, 255, 0.84);
}

.quote {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 2px solid rgba(184, 93, 53, 0.8);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.25;
  color: var(--fg);
}

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 14px;
}

.check-list li {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.44);
  line-height: 1.6;
}

.space-card {
  display: flex;
  flex-direction: column;
}

.space-gallery-preview {
  position: relative;
  padding: 0;
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.space-gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  transition: transform 180ms ease;
}

.space-gallery-preview:hover img,
.space-gallery-preview:focus-visible img {
  transform: scale(1.02);
}

.gallery-more {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(45, 38, 29, 0.74);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.space-body {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-size: 0.82rem;
}

.button,
.button-secondary,
.button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button-secondary:hover,
.button-quiet:hover,
.button:focus-visible,
.button-secondary:focus-visible,
.button-quiet:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(45, 38, 29, 0.12);
}

.button {
  background: var(--accent-deep);
  color: #fff;
}

.button-secondary,
.button-quiet {
  background: rgba(255, 255, 255, 0.6);
  color: var(--fg);
  border-color: var(--border);
}

.button-quiet {
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
}

.mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  gap: 14px;
}

.info-item,
.contact-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.info-item > div:last-child,
.contact-item > div:last-child {
  min-width: 0;
}

.info-item strong,
.info-item p,
.contact-item strong,
.contact-item p {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.info-item:first-child,
.contact-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(184, 93, 53, 0.12);
  color: var(--accent);
  flex: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-card form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
  color: var(--fg);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.is-success {
  color: var(--accent-deep);
}

.form-status.is-error {
  color: #a34729;
}

.contact-sections {
  display: grid;
  gap: 20px;
}

.contact-block {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.contact-block:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.contact-block-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-highlight {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.contact-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.contact-inline-grid .contact-item {
  border-top: 0;
  padding: 0;
}

.contact-link-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
}

.contact-link-card > span:last-child {
  display: grid;
  gap: 4px;
}

.contact-link-card strong + span {
  color: rgba(45, 38, 29, 0.78);
  line-height: 1.55;
}

.external-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  margin-left: 0.35rem;
  font-size: 0.92em;
  opacity: 0.8;
}

.footer-card {
  padding: 24px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-deep-2));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-card p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 62ch;
}

.footer-main {
  display: grid;
  gap: 14px;
}

.footer-legal {
  max-width: none;
  font-size: 0.9rem;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: rgba(15, 16, 18, 0.88);
}

.gallery-modal::backdrop {
  background: rgba(15, 16, 18, 0.88);
}

.contact-card h3,
.info-card h3 {
  margin-bottom: 16px;
}

.info-list {
  margin-top: 8px;
}

.info-card > .button-quiet {
  margin-top: 18px;
}

.gallery-modal[open] {
  display: block;
}

.gallery-dialog {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.gallery-head,
.gallery-foot {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  z-index: 4;
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-head {
  top: 0;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 112px 24px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 68%, rgba(0, 0, 0, 0));
}

.gallery-head-copy {
  min-width: 0;
}

.gallery-head p,
.gallery-foot p {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-close,
.gallery-nav {
  min-width: 52px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gallery-close:focus {
  outline: none;
}

.gallery-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 5;
}

.gallery-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 0 86px;
  display: grid;
  place-items: center;
}

.gallery-figure {
  width: 100%;
  height: 100vh;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.gallery-figure:focus,
.gallery-figure:focus-visible {
  outline: none;
}

.gallery-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
  background: transparent;
  user-select: none;
}

.gallery-caption {
  display: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.gallery-nav[data-gallery-step="-1"] {
  left: 12px;
}

.gallery-nav[data-gallery-step="1"] {
  right: 12px;
}

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 110px;
  justify-content: start;
  gap: 14px;
  overflow-x: auto;
  padding: 0 max(0px, calc(50% - 55px)) 6px;
  scroll-padding-inline: calc(50% - 55px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gallery-thumb img {
  width: 100%;
  height: 74px;
  object-fit: cover;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.94);
}

.gallery-head h3 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1;
}

.gallery-head p {
  margin-top: 10px;
  max-width: 44ch;
  font-size: 1rem;
}

#gallery-counter {
  margin: 6px 0 0;
  white-space: nowrap;
  font-size: 0.95rem;
}

.gallery-foot {
  bottom: 0;
  padding: 18px 28px 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.46) 68%, rgba(0, 0, 0, 0));
}

.gallery-modal.gallery-ui-hidden .gallery-head,
.gallery-modal.gallery-ui-hidden .gallery-foot {
  opacity: 0;
  pointer-events: none;
}

.gallery-modal.gallery-ui-hidden .gallery-head {
  transform: translateY(-12px);
}

.gallery-modal.gallery-ui-hidden .gallery-foot {
  transform: translateY(12px);
}

.gallery-modal.gallery-ui-hidden .gallery-close,
.gallery-modal.gallery-ui-hidden .gallery-nav {
  opacity: 0.35;
}

#top,
#struttura,
#spazi,
#servizi,
#territorio,
#dove-siamo,
#contatti {
  scroll-margin-top: 116px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-header,
  .spaces-grid,
  .services-grid,
  .territory-grid,
  .map-grid,
  .contact-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

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

  h2 {
    max-width: none;
  }
}

@media (max-width: 780px) {
  .header-shell {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px 16px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .lang-switch {
    align-self: start;
  }

  .hero,
  .section,
  .footer {
    padding: 24px 0 52px;
  }

  .field-grid,
  .mini-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .contact-inline-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-video,
  .services-photo img,
  .map-photo img {
    min-height: 300px;
  }

  .welcome-panel {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .welcome-card {
    width: 100%;
  }

  .gallery-modal {
    padding: 0;
  }

  .gallery-dialog {
    padding: 0;
  }

  .gallery-stage {
    padding: 0 14px;
  }

  .gallery-nav {
    min-width: 46px;
    min-height: 46px;
    top: 50%;
    transform: translateY(-50%);
  }

  .gallery-nav[data-gallery-step="-1"] {
    left: 8px;
  }

  .gallery-nav[data-gallery-step="1"] {
    right: 8px;
  }

  .gallery-figure img {
    max-height: 100vh;
  }

  .gallery-head,
  .gallery-foot {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .gallery-head {
    padding: 20px 72px 18px 18px;
  }

  .gallery-head h3 {
    font-size: 1.5rem;
  }

  .gallery-head p {
    font-size: 0.94rem;
  }

  .gallery-thumbs {
    grid-auto-columns: 86px;
    gap: 10px;
  }

  .gallery-foot {
    padding: 14px 18px 18px;
  }

  .gallery-thumb img {
    height: 64px;
  }

  .gallery-close {
    top: 16px;
    right: 14px;
  }

  #top,
  #struttura,
  #spazi,
  #servizi,
  #territorio,
  #dove-siamo,
  #contatti {
    scroll-margin-top: 132px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}
