/* =========================================================
   BARBERIA STALTARI — UI SYSTEM
   Minimal dark / editorial / responsive
   ========================================================= */

:root {
  --brand: #236b43;
  --brand-strong: #2f8a58;
  --brand-soft: #8fc8a7;
  --brand-deep: #123c28;
  --accent: #d7c69b;
  --accent-soft: #eee5cf;

  --bg: #0a0c0b;
  --bg-alt: #0f1210;
  --surface: #141816;
  --surface-2: #1a201d;
  --surface-3: #202723;

  --text: #f4f3ee;
  --text-soft: #d5d8d4;
  --muted: #929a95;
  --dim: #626a65;

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --border-brand: rgba(143, 200, 167, 0.38);

  --danger: #d76565;
  --warning: #d9a84f;
  --success: #57a978;

  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 36px 100px rgba(0, 0, 0, 0.48);

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --container: 1240px;
  --header-h: 78px;
  --transition: 220ms cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(35, 107, 67, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
a { color: var(--brand-soft); text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { color: var(--accent-soft); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand-soft); color: #08110c; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding: 88px 28px;
  position: relative;
}
.container-narrow { max-width: 980px; }
.home-section { scroll-margin-top: calc(var(--header-h) + 24px); }
.section-band {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008));
  border-block: 1px solid var(--border);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(10, 12, 11, 0.90);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 10, 9, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}
.navbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  flex: 0 0 auto;
}
.navbar .brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.navbar .brand span {
  display: block;
  line-height: 1.05;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.navbar .brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .28em;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}
.nav-links a {
  padding: 10px 13px;
  color: var(--text-soft);
  font-size: .83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
  color: var(--text);
  border-bottom-color: var(--brand-soft);
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  width: 21px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.nav-toggle span { position: relative; display: block; }
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn.sm { min-height: 38px; padding: 9px 15px; font-size: .73rem; }
.btn.lg { min-height: 56px; padding: 16px 29px; font-size: .88rem; }
.btn.full { width: 100%; }
.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #0d110f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #0d110f;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .32);
}
.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--brand-soft);
  background: rgba(143, 200, 167, .07);
  color: var(--text);
}
.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-soft);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}
.btn-danger {
  border-color: rgba(215, 101, 101, .45);
  background: rgba(215, 101, 101, .08);
  color: #efb3b3;
}
.btn-danger:hover:not(:disabled) {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}
.btn-gold {
  border-color: var(--accent);
  background: var(--accent);
  color: #11150f;
}
.btn-back {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-back:hover { border-color: var(--brand-soft); color: var(--text); background: rgba(143, 200, 167, .06); }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,11,.98) 0%, rgba(10,12,11,.94) 48%, rgba(10,12,11,.65) 100%),
    radial-gradient(circle at 78% 35%, rgba(47,138,88,.20), transparent 28rem);
  pointer-events: none;
}
.hero::after {
  content: 'STALTARI';
  position: absolute;
  right: -1.5vw;
  bottom: -4vw;
  color: rgba(255,255,255,.022);
  font-family: var(--font-display);
  font-size: clamp(7rem, 17vw, 18rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .75;
  pointer-events: none;
}
.hero-inner {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding: 78px 28px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 720px; }
.hero-eyebrow,
.section-eyebrow,
.card-kicker,
.contact-label {
  display: block;
  color: var(--brand-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 {
  max-width: 770px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.2vw, 6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 span { color: var(--accent-soft); }
.hero p.tagline {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.82;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 54px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--border);
}
.hero-meta div { min-width: 0; }
.hero-meta strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 1rem; }
.hero-meta span { display: block; color: var(--muted); font-size: .76rem; }
.hero-visual {
  justify-self: end;
  width: min(100%, 430px);
}
.hero-logo-frame {
  aspect-ratio: 1;
  padding: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  box-shadow: var(--shadow-lg);
}
.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255,255,255,.08);
}
.hero-visual p {
  margin-top: 16px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.section-title {
  max-width: 720px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.section-subtitle {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.8;
}
.container > .section-eyebrow { text-align: center; margin-bottom: 10px; }
.container > .section-title { margin-inline: auto; text-align: center; }
.container > .section-subtitle { max-width: 680px; margin: 14px auto 48px; text-align: center; }

/* ===== SERVICE / INFO / PROCESS ===== */
.services-grid {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  min-height: 360px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(145deg, var(--surface), #101310);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.service-card:hover,
.service-card.selected {
  transform: translateY(-5px);
  border-color: var(--border-brand);
  background: linear-gradient(145deg, #17201b, #101410);
  box-shadow: var(--shadow);
}
.service-card.selected { box-shadow: inset 3px 0 0 var(--brand-soft), var(--shadow-sm); }
.booking-shell .service-card { cursor: pointer; }
.service-number {
  margin-bottom: 56px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .08em;
}
.service-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}
.service-card .price {
  margin-bottom: 20px;
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
}
.service-card .price small { margin-left: 4px; color: var(--muted); font-family: var(--font-body); font-size: .9rem; }
.service-card .desc { max-width: 470px; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.service-card .duration {
  margin-top: auto;
  padding-top: 24px;
  color: var(--brand-soft);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.info-grid,
.process-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.info-card,
.process-card,
.contact-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.info-card:hover,
.process-card:hover,
.contact-card:hover { transform: translateY(-4px); border-color: var(--border-brand); background: var(--surface-2); }
.info-card .card-kicker { margin-bottom: 28px; }
.info-card h4 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.info-card p { color: var(--muted); font-size: .88rem; }
.info-card p strong { color: var(--text); font-size: 1.1rem; }
.process-card span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--brand-soft);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.process-card h3 { margin-bottom: 12px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.process-card p { color: var(--muted); font-size: .9rem; line-height: 1.75; }
.contact-card .contact-label { margin-bottom: 34px; }
.contact-card h4 { margin-bottom: 12px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.contact-card a { display: inline-block; color: var(--text-soft); font-size: .9rem; word-break: break-word; border-bottom: 1px solid var(--border-strong); }
.contact-card a:hover { color: var(--accent-soft); border-bottom-color: var(--accent); }

/* ===== LOCATION ===== */
.location-section {
  background: #080a09;
  border-block: 1px solid var(--border);
}
.location-layout {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--surface);
}
.location-panel { padding: clamp(30px, 5vw, 56px); }
.location-panel .card-kicker { margin-bottom: 30px; }
.location-panel h3 { max-width: 470px; margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 600; line-height: 1.12; }
.location-panel > p { max-width: 470px; color: var(--muted); font-size: .93rem; line-height: 1.78; }
.contact-list { margin-top: 38px; border-top: 1px solid var(--border); }
.contact-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-list dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; }
.contact-list dd { color: var(--text-soft); font-size: .88rem; word-break: break-word; }
.location-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.map-wrapper { min-height: 480px; overflow: hidden; border-left: 1px solid var(--border); background: #0d100e; }
.map-wrapper iframe { width: 100%; height: 100%; min-height: 480px; display: block; filter: grayscale(1) contrast(1.03) brightness(.78); transition: filter 320ms ease; }
.map-wrapper:hover iframe { filter: grayscale(.2) contrast(1.02) brightness(.92); }

/* ===== AUTH ===== */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
  background:
    linear-gradient(90deg, rgba(10,12,11,.98), rgba(10,12,11,.82)),
    radial-gradient(circle at 85% 20%, rgba(35,107,67,.22), transparent 35rem);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(20, 24, 22, .96);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.auth-card .logo-wrap { margin-bottom: 26px; }
.auth-card .logo-wrap a { display: inline-block; }
.auth-card .logo-wrap img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--border-strong); }
.auth-card h2 { margin-bottom: 8px; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 600; line-height: 1.1; }
.auth-card .subtitle { margin-bottom: 30px; color: var(--muted); font-size: .92rem; }
.auth-footer { margin-top: 24px; color: var(--muted); text-align: center; font-size: .88rem; }
.auth-footer a { font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 15px; margin: 25px 0; color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.forgot-link { display: block; margin: -8px 0 20px; font-size: .82rem; text-align: right; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea,
.toolbar .search-input,
.toolbar select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0e1210;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder { color: var(--dim); }
.form-group input:hover,
.form-group select:hover,
.toolbar .search-input:hover,
.toolbar select:hover { border-color: var(--border-strong); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.toolbar .search-input:focus,
.toolbar select:focus { border-color: var(--brand-soft); background: #111612; box-shadow: 0 0 0 3px rgba(143,200,167,.10); }
.form-group .hint { margin-top: 7px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.form-group .hint.error { color: #efa7a7; }
.form-group .hint.ok { color: #9ed6b4; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 88px; }
.toggle-pass {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--brand-soft);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.toggle-pass:hover { color: var(--text); }
.pw-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.pw-strength span { height: 2px; background: var(--surface-3); }
.pw-strength.s1 span:nth-child(-n+1) { background: var(--danger); }
.pw-strength.s2 span:nth-child(-n+2) { background: var(--warning); }
.pw-strength.s3 span:nth-child(-n+3) { background: var(--brand-soft); }
.pw-strength.s4 span:nth-child(-n+4) { background: var(--success); }

/* ===== ALERTS ===== */
.alert { display: none; margin-bottom: 20px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-soft); background: var(--surface); font-size: .84rem; line-height: 1.55; }
.alert.show { display: block; }
.alert-error { border-color: rgba(215,101,101,.40); background: rgba(215,101,101,.08); color: #efb3b3; }
.alert-success { border-color: rgba(87,169,120,.40); background: rgba(87,169,120,.08); color: #b9dec7; }
.alert-info { border-color: rgba(143,200,167,.35); background: rgba(143,200,167,.07); }
.alert-warning { border-color: rgba(217,168,79,.40); background: rgba(217,168,79,.08); color: #ead09a; }

/* ===== BOOKING ===== */
.booking-shell {
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-brand);
  color: var(--brand-soft);
  font-size: .74rem;
  font-weight: 700;
}
.step-header h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.step-note { margin-bottom: 26px; color: var(--muted); font-size: .88rem; }
.calendar-wrapper { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 16px; }
.calendar-box, .timeslots-box { padding: 22px; border: 1px solid var(--border); background: #101411; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.calendar-header h3 { font-size: 1rem; font-weight: 700; text-transform: capitalize; }
.calendar-nav { display: flex; gap: 7px; }
.calendar-nav button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
}
.calendar-nav button:hover { border-color: var(--brand-soft); background: var(--surface-2); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-grid .weekday { padding: 6px 0 10px; color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.calendar-grid .day {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: .82rem;
  position: relative;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.calendar-grid .day:hover:not(.disabled):not(.empty) { border-color: var(--border-brand); background: rgba(143,200,167,.06); }
.calendar-grid .day.selected { border-color: var(--brand-soft); background: var(--brand-deep); color: #fff; font-weight: 700; }
.calendar-grid .day.disabled { color: var(--dim); cursor: not-allowed; opacity: .45; }
.calendar-grid .day.today { border-color: var(--accent); color: var(--accent-soft); }
.calendar-grid .day.empty { cursor: default; }
.legend { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; color: var(--muted); font-size: .7rem; }
.legend .dot { width: 9px; height: 9px; display: inline-block; margin-right: 5px; border: 1px solid var(--border-strong); vertical-align: middle; }
.legend .dot.free { background: var(--surface-2); }
.legend .dot.sel { background: var(--brand-deep); border-color: var(--brand-soft); }
.legend .dot.dis { background: transparent; opacity: .45; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 10px; }
.slot { padding: 12px 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); text-align: center; font-size: .82rem; font-weight: 600; transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.slot:hover:not(.booked):not(.past) { transform: translateY(-2px); border-color: var(--brand-soft); background: var(--surface-2); }
.slot.selected { border-color: var(--brand-soft); background: var(--brand-deep); color: #fff; }
.slot.booked { border-color: rgba(215,101,101,.22); color: var(--dim); background: rgba(215,101,101,.05); cursor: not-allowed; text-decoration: line-through; }
.slot.past { color: var(--dim); cursor: not-allowed; opacity: .48; }
.empty-note { padding: 38px 16px; color: var(--muted); text-align: center; font-size: .88rem; }
.active-booking-banner { margin-bottom: 30px; padding: 30px; border: 1px solid var(--border-brand); background: linear-gradient(135deg, rgba(35,107,67,.16), rgba(20,24,22,.96)); text-align: center; }
.active-booking-banner h3 { margin-bottom: 12px; color: var(--accent-soft); font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.active-booking-banner p { color: var(--text-soft); }
.active-booking-banner .info-line { display: inline-block; margin: 18px 0; padding: 12px 16px; border: 1px solid var(--border); background: rgba(0,0,0,.16); color: #fff; font-size: .95rem; font-weight: 700; }
.active-booking-banner .actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }


.recovery-panel {
  max-width: 680px;
  margin: 28px auto;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(215, 101, 101, .35);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(215, 101, 101, .09), rgba(255,255,255,.018));
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.recovery-panel h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 600;
}
.recovery-panel p {
  max-width: 520px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  line-height: 1.65;
}
.recovery-panel .btn { min-width: 130px; }

/* ===== MODALS ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal-overlay.show { display: grid; }
.modal { width: min(100%, 560px); max-height: 92vh; overflow-y: auto; padding: clamp(26px, 5vw, 40px); border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); position: relative; animation: modalIn 220ms ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal h3 { margin-bottom: 22px; padding-right: 72px; font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; }
.modal .summary-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.modal .summary-row span:first-child { color: var(--muted); }
.modal .summary-row span:last-child { color: var(--text); font-weight: 700; text-align: right; }
.modal .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.modal .actions .btn { flex: 1 1 160px; }
.close-modal { position: absolute; top: 18px; right: 18px; min-height: 34px; padding: 7px 10px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.close-modal:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }

/* ===== TABLES / ADMIN ===== */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--border); text-align: left; font-size: .84rem; }
th { background: #101411; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(143,200,167,.025); }
.badge { display: inline-block; padding: 5px 9px; border: 1px solid var(--border); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge-green { border-color: rgba(87,169,120,.38); background: rgba(87,169,120,.08); color: #add5bd; }
.badge-red { border-color: rgba(215,101,101,.38); background: rgba(215,101,101,.08); color: #efb3b3; }
.badge-orange { border-color: rgba(217,168,79,.38); background: rgba(217,168,79,.08); color: #e8cc91; }
.badge-gray { color: var(--muted); }
.badge-gold { border-color: rgba(215,198,155,.38); background: rgba(215,198,155,.08); color: var(--accent-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { padding: 24px; border: 1px solid var(--border); background: var(--surface); }
.stat-card .label { margin-bottom: 13px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; }
.stat-card .value { color: var(--accent-soft); font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.toolbar .search-input { flex: 1 1 260px; }
.toolbar select { width: auto; min-width: 150px; }

.table-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 220px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  pointer-events: none;
}
.icon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}
.icon-btn-danger {
  border-color: rgba(215, 101, 101, .38);
  color: #efb3b3;
  background: rgba(215, 101, 101, .06);
}
.icon-btn-danger:hover:not(:disabled) {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}
.icon-btn:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
}
.icon-btn:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  background: rgba(5, 7, 6, .98);
  color: var(--muted);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(143,200,167,.42), transparent); }
.footer-inner {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding: 58px 28px 46px;
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(150px, .75fr));
  gap: 42px;
}
.footer-brand-block > p { max-width: 390px; margin-top: 22px; color: var(--muted); font-size: .84rem; line-height: 1.75; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 58px; height: 58px; object-fit: cover; border: 1px solid var(--border-strong); }
.footer-brand strong { display: block; color: var(--text); font-size: .88rem; letter-spacing: .10em; text-transform: uppercase; }
.footer-brand span { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h3 { margin-bottom: 9px; color: var(--text); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a, .footer-links a { color: var(--muted); font-size: .8rem; }
.footer-column a:hover, .footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 28px; text-align: center; background: rgba(0,0,0,.20); }
.footer-bottom p { margin: 0; color: var(--dim); font-size: .75rem; letter-spacing: .04em; }
/* Compact footer used by internal pages */
.footer > .footer-brand { justify-content: center; margin: 0 auto 14px; padding-top: 38px; }
.footer > p { margin: 6px 0; padding-inline: 20px; text-align: center; font-size: .8rem; }
.footer > .footer-links { padding: 0 20px 30px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 12px; }

/* ===== TOAST / LOADERS ===== */
.toast-container { position: fixed; top: 22px; right: 22px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: calc(100% - 44px); pointer-events: none; }
.toast { min-width: 270px; max-width: 390px; padding: 14px 16px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); box-shadow: var(--shadow); font-size: .84rem; pointer-events: auto; animation: toastIn 220ms ease-out; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.loader, .ls-spin { display: inline-block; border-radius: 50%; animation: spin .8s linear infinite; }
.loader { width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.20); border-top-color: #fff; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-loader { min-height: 170px; display: grid; place-items: center; }
.center-loader .loader { width: 38px; height: 38px; border-width: 3px; border-color: rgba(143,200,167,.15); border-top-color: var(--brand-soft); }
.loading-screen { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #080a09; transition: opacity .38s ease; }
.loading-screen img { width: 86px; height: 86px; object-fit: cover; margin-bottom: 18px; border: 1px solid var(--border-strong); }
.loading-screen h3 { color: var(--text); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.loading-screen p { margin-top: 5px; color: var(--muted); font-size: .78rem; }
.loading-screen .ls-spin { width: 28px; height: 28px; margin-top: 16px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--brand-soft); }
html.app-ready .loading-screen { opacity: 0; pointer-events: none; }
.page-gate { opacity: 0; transition: opacity .25s ease; }
html.app-ready .page-gate { opacity: 1; }

/* ===== DOCUMENT / 404 ===== */
.doc-content { max-width: 860px; margin-inline: auto; padding: clamp(28px, 5vw, 52px); border: 1px solid var(--border); background: var(--surface); }
.doc-content h1 { margin-bottom: 16px; font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 600; }
.doc-content h2 { margin: 32px 0 10px; color: var(--accent-soft); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.doc-content h3 { margin: 24px 0 8px; color: var(--brand-soft); font-size: 1rem; }
.doc-content p, .doc-content ul, .doc-content ol { margin-bottom: 14px; color: var(--text-soft); font-size: .92rem; }
.doc-content ul, .doc-content ol { padding-left: 24px; }
.doc-content li { margin-bottom: 7px; }
.doc-content strong { color: var(--text); }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.error-page img { width: 120px; height: 120px; margin: 0 auto 24px; object-fit: cover; border: 1px solid var(--border-strong); }
.error-page h1 { color: var(--accent-soft); font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 600; line-height: .85; }
.error-page h2 { margin: 20px 0 10px; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
.error-page p { max-width: 520px; margin: 0 auto 28px; color: var(--muted); }
.noscript-panel { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; background: var(--bg); color: var(--text); text-align: center; }
.noscript-panel > div { max-width: 540px; }
.noscript-panel h1 { margin-bottom: 14px; font-family: var(--font-display); }

/* ===== UTILITIES ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-gradient { color: var(--accent-soft); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .nav-links a { padding-inline: 10px; font-size: .77rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 48px; }
  .footer-inner { grid-template-columns: 1.4fr repeat(3, .7fr); gap: 28px; }
}

@media (max-width: 1120px) {
  :root { --header-h: 72px; }
  .navbar { padding: 12px 18px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    padding: 0 18px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: rgba(8, 10, 9, .99);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: max-height 320ms ease, padding 320ms ease, opacity 200ms ease, visibility 320ms;
  }
  .nav-links.open { max-height: calc(100vh - var(--header-h)); padding-block: 14px 20px; overflow-y: auto; visibility: visible; opacity: 1; }
  .nav-links a { width: 100%; padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav-links a.btn { margin-top: 12px; border-bottom: 0; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 68px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(100%, 390px); justify-self: start; }
  .hero-visual p { text-align: left; }
  .section-heading { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .section-heading .section-subtitle { max-width: 680px; }
  .location-layout { grid-template-columns: 1fr; }
  .map-wrapper { border-left: 0; border-top: 1px solid var(--border); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .calendar-wrapper { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { padding: 64px 18px; }
  .hero-inner { padding: 56px 18px 70px; }
  .hero h1 { font-size: clamp(2.85rem, 13vw, 4.7rem); }
  .hero-meta { grid-template-columns: 1fr; gap: 13px; margin-top: 38px; }
  .hero-meta div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .hero-meta span { text-align: right; }
  .services-grid, .info-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 310px; }
  .service-number { margin-bottom: 34px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 44px 18px 36px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .toolbar { align-items: stretch; }
  .toolbar select, .toolbar .btn { width: 100%; }
}

@media (max-width: 520px) {
  .navbar .brand span { font-size: .86rem; }
  .navbar .brand small { font-size: .55rem; }
  .navbar .brand img { width: 44px; height: 44px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .hero-logo-frame { padding: 10px; }
  .section-title { font-size: clamp(2rem, 11vw, 3rem); }
  .service-card, .info-card, .process-card, .contact-card { padding: 25px; }
  .location-panel { padding: 28px 22px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 3px; }
  .location-actions { flex-direction: column; }
  .location-actions .btn { width: 100%; }
  .map-wrapper, .map-wrapper iframe { min-height: 360px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 18px; }
  .stat-card .value { font-size: 1.8rem; }
  .calendar-box, .timeslots-box { padding: 16px; }
  .calendar-grid { gap: 3px; }
  .calendar-grid .day { font-size: .76rem; }
  .modal { padding: 26px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand-block { grid-column: auto; }
  .footer-column { padding-top: 20px; border-top: 1px solid var(--border); }
  .toast-container { top: 12px; right: 12px; left: 12px; max-width: none; }
  .toast { width: 100%; min-width: 0; }
}

@media (max-width: 360px) {
  .container { padding-inline: 14px; }
  .hero-inner { padding-inline: 14px; }
  .btn { white-space: normal; }
  .stats-grid { grid-template-columns: 1fr; }
  .calendar-grid .day { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .navbar, .footer, .loading-screen, .btn, .map-wrapper { display: none !important; }
  body { background: white; color: black; }
  .container, .doc-content { padding: 20px; border: 0; background: white; }
  .doc-content p, .doc-content li { color: #222; }
}

/* =========================================================
   RELEASE 2026-07-27.2 — POLISH & COMPATIBILITY
   Versioned stylesheet to prevent stale-cache layout mixing.
   ========================================================= */
:root {
  /* Backward-compatible aliases used by existing inline markup */
  --brand-green: var(--brand-strong);
  --text-muted: var(--muted);
  --bg-panel: var(--surface);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --header-h: 76px;
}

body {
  background:
    radial-gradient(circle at 10% -10%, rgba(47, 138, 88, .16), transparent 34rem),
    radial-gradient(circle at 95% 8%, rgba(215, 198, 155, .07), transparent 28rem),
    var(--bg);
}

/* Logo: always contained and readable; the renamed asset bypasses old caches. */
.navbar .brand img,
.hero-logo,
.footer-brand img,
.auth-card .logo-wrap img,
.loading-screen img,
.error-page img {
  object-fit: contain;
  object-position: center;
  background: #153e29;
}

.navbar {
  min-height: var(--header-h);
  padding-block: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .18);
}
.navbar .brand img {
  width: 52px;
  height: 52px;
  padding: 3px;
  border-radius: 12px;
  border-color: rgba(143, 200, 167, .28);
}
.nav-links { gap: 7px; }
.nav-links a {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 12px;
}
.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
  border-color: rgba(143, 200, 167, .20);
  border-bottom-color: rgba(143, 200, 167, .45);
  background: rgba(143, 200, 167, .055);
}

.btn { border-radius: 10px; }
.btn-primary {
  background: linear-gradient(135deg, #2d9158, #1e7044);
  border-color: #389f66;
  color: #fff;
  box-shadow: 0 12px 28px rgba(21, 128, 61, .18);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #37a768, #247d4c);
  border-color: #58b87d;
  color: #fff;
  box-shadow: 0 18px 38px rgba(21, 128, 61, .28);
}
.btn-outline:hover:not(:disabled) { background: rgba(143, 200, 167, .09); }

.hero {
  min-height: min(820px, calc(100vh - var(--header-h)));
  isolation: isolate;
}
.hero::before {
  background:
    linear-gradient(90deg, rgba(8, 11, 9, .98) 0%, rgba(8, 11, 9, .90) 52%, rgba(8, 11, 9, .62) 100%),
    radial-gradient(circle at 78% 35%, rgba(47, 138, 88, .26), transparent 30rem);
}
.hero-logo-frame {
  border-radius: 28px;
  padding: 14px;
  border-color: rgba(143, 200, 167, .24);
  background: linear-gradient(145deg, rgba(143, 200, 167, .10), rgba(255, 255, 255, .015));
}
.hero-logo { border-radius: 20px; }
.hero-meta div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}

.section-band { background: linear-gradient(180deg, rgba(255,255,255,.024), rgba(255,255,255,.008)); }
.service-card,
.info-card,
.process-card,
.contact-card,
.booking-shell,
.calendar-box,
.timeslots-box,
.stat-card,
.table-wrapper,
.doc-content,
.location-layout,
.auth-card,
.modal {
  border-radius: var(--radius);
}
.service-card {
  min-height: 330px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}
.service-card::after {
  content: '';
  position: absolute;
  inset: auto -70px -85px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,138,88,.14), transparent 68%);
  pointer-events: none;
}
.info-card,
.process-card,
.contact-card { min-height: 210px; }

.location-layout { overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrapper { border-radius: 0 var(--radius) var(--radius) 0; }
.map-wrapper iframe { filter: grayscale(.55) contrast(1.02) brightness(.86); }

.auth-wrapper {
  min-height: 100svh;
  padding: clamp(24px, 6vw, 64px) 20px;
}
.auth-wrapper > div { width: min(100%, 500px) !important; max-width: 500px !important; }
.auth-card {
  max-width: 500px;
  border-color: rgba(143,200,167,.22);
  background: linear-gradient(155deg, rgba(24,30,27,.98), rgba(15,18,16,.98));
}
.auth-card .logo-wrap img {
  width: 92px;
  height: 92px;
  padding: 4px;
  border-radius: 18px;
}
.auth-card h2 { font-size: clamp(2.05rem, 7vw, 3rem); }
.form-group input,
.form-group select,
.form-group textarea,
.toolbar .search-input,
.toolbar select {
  border-radius: 10px;
  background: rgba(8,12,10,.78);
}
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #101612 inset;
  transition: background-color 9999s ease-out;
}

.calendar-nav button,
.calendar-grid .day,
.timeslot,
.badge,
.close-modal { border-radius: 8px; }
.table-wrapper { scrollbar-color: var(--brand-deep) var(--surface); }

.footer { box-shadow: 0 -20px 60px rgba(0,0,0,.16); }
.footer-brand img { border-radius: 12px; padding: 3px; }
.footer-column a { line-height: 1.45; }

/* Never expose a half-loaded gated page. Safety scripts still reveal it on errors. */
html.app-ready .page-gate { opacity: 1; }

@media (max-width: 1120px) {
  .nav-links {
    top: var(--header-h);
    border-radius: 0 0 18px 18px;
  }
  .nav-links a { border-radius: 0; }
  .hero { min-height: auto; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .navbar { padding: 8px 14px; }
  .navbar .brand img { width: 46px; height: 46px; border-radius: 10px; }
  .navbar .brand span { font-size: .82rem; letter-spacing: .12em; }
  .navbar .brand small { letter-spacing: .20em; }
  .hero-inner { padding-top: 48px; }
  .hero-logo-frame { border-radius: 20px; }
  .hero-logo { border-radius: 14px; }
  .hero-meta div { padding: 12px 14px; }
  .section-heading { margin-bottom: 34px; }
  .info-card,
  .process-card,
  .contact-card { min-height: 0; }
  .map-wrapper { border-radius: 0 0 var(--radius) var(--radius); }
  .auth-wrapper { display: block; }
  .auth-wrapper > div { margin-inline: auto; }
  .auth-card { padding: 28px 22px; }
  .btn-back { margin-bottom: 18px; }
  table { min-width: 640px; }

  .table-actions { min-width: 0; gap: 6px; }
  .table-actions .btn { min-height: 38px; padding-inline: 12px; }
  .icon-btn { width: 38px; height: 38px; }
}

@media (max-width: 520px) {
  .container { padding-block: 54px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hero-logo-frame { padding: 8px; }
  .service-card { min-height: 285px; }
  .service-card .price { font-size: 3rem; }
  .auth-wrapper { padding: 20px 12px; }
  .auth-card { border-radius: 18px; }
  .auth-card .logo-wrap img { width: 78px; height: 78px; }
  .form-row { grid-template-columns: 1fr; }
  .modal .actions { flex-direction: column-reverse; }
  .modal .actions .btn { flex-basis: auto; width: 100%; }
  .footer > .footer-links { gap: 12px; }
}
/* =========================================================
   RESPONSIVE COMPACT PATCH — TABLET & MOBILE
   Append-only overrides. Keeps the approved desktop design,
   while reducing vertical space and improving small screens.
   ========================================================= */

@media (min-width: 721px) and (max-width: 1120px) {
  :root {
    --header-h: 68px;
  }

  .container {
    padding: 58px 22px;
  }

  .navbar {
    min-height: var(--header-h);
    padding: 8px 18px;
  }

  .navbar .brand img {
    width: 46px;
    height: 46px;
  }

  .nav-links {
    top: var(--header-h);
  }

  .nav-links.open {
    padding-block: 8px 14px;
  }

  .nav-links a {
    padding-block: 11px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, .55fr);
    gap: clamp(28px, 5vw, 54px);
    padding: 54px 22px 62px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(3rem, 6.5vw, 4.9rem);
  }

  .hero p.tagline {
    margin-bottom: 26px;
    line-height: 1.65;
  }

  .hero-meta {
    margin-top: 32px;
    padding-top: 18px;
    gap: 10px;
  }

  .hero-meta div {
    padding: 11px 12px;
  }

  .hero-visual {
    width: min(100%, 290px);
    justify-self: end;
  }

  .hero-visual p {
    font-size: .68rem;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 390px);
    gap: 26px;
    margin-bottom: 34px;
  }

  .section-title {
    font-size: clamp(2.15rem, 4.5vw, 3.45rem);
  }

  .section-subtitle {
    line-height: 1.65;
  }

  .services-grid,
  .process-grid,
  .contact-grid {
    gap: 12px;
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .service-card {
    min-height: 280px;
    padding: 26px;
  }

  .service-number {
    margin-bottom: 30px;
  }

  .service-card .price {
    margin-bottom: 14px;
    font-size: 2.8rem;
  }

  .service-card .duration {
    padding-top: 18px;
  }

  .info-card,
  .process-card,
  .contact-card {
    min-height: 0;
    padding: 23px;
  }

  .info-card .card-kicker,
  .contact-card .contact-label {
    margin-bottom: 18px;
  }

  .process-card span {
    margin-bottom: 22px;
  }

  .location-layout {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  }

  .location-panel {
    padding: 32px 28px;
  }

  .location-panel .card-kicker {
    margin-bottom: 20px;
  }

  .location-panel h3 {
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
  }

  .contact-list {
    margin-top: 24px;
  }

  .contact-list > div {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 12px 0;
  }

  .location-panel .map-actions {
    margin-top: 20px;
    margin-bottom: 10px;
    gap: 8px;
  }

  .location-panel .map-actions .btn,
  .location-panel .location-actions .btn {
    min-height: 44px;
    padding: 11px 14px;
    font-size: .75rem;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 390px;
  }

  .booking-shell {
    padding: 28px;
  }

  .calendar-wrapper {
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, .95fr);
  }

  .calendar-box,
  .timeslots-box {
    padding: 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }

  .stat-card {
    padding: 18px;
  }

  .stat-card .value {
    font-size: 1.85rem;
  }

  .auth-wrapper {
    padding: 28px 18px;
  }

  .auth-card {
    padding: 30px;
  }

  .auth-card .logo-wrap {
    margin-bottom: 18px;
  }

  .auth-card .logo-wrap img {
    width: 72px;
    height: 72px;
  }

  .auth-card .subtitle {
    margin-bottom: 22px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .footer-inner {
    grid-template-columns: 1.25fr repeat(3, minmax(0, .75fr));
    gap: 24px;
    padding: 38px 22px 30px;
  }

  .footer-brand-block {
    grid-column: auto;
  }

  .footer-brand-block > p {
    margin-top: 15px;
    line-height: 1.55;
  }

  .footer-bottom {
    padding: 14px 22px;
  }
}

@media (max-width: 820px) {
  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }

  .section-heading .section-subtitle {
    max-width: 620px;
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .info-grid .info-card {
    min-width: 0;
    min-height: 150px;
    padding: 17px 14px;
  }

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

  .map-wrapper {
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .calendar-wrapper {
    grid-template-columns: 1fr;
  }

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

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 62px;
  }

  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .container {
    padding: 44px 16px;
  }

  .navbar {
    min-height: var(--header-h);
    padding: 7px 12px;
  }

  .navbar .brand {
    gap: 9px;
  }

  .navbar .brand img {
    width: 42px;
    height: 42px;
    padding: 2px;
  }

  .navbar .brand span {
    font-size: .78rem;
    letter-spacing: .10em;
  }

  .navbar .brand small {
    margin-top: 3px;
    font-size: .5rem;
    letter-spacing: .16em;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-links {
    top: var(--header-h);
    padding-inline: 12px;
  }

  .nav-links.open {
    padding-block: 6px 12px;
  }

  .nav-links a {
    min-height: 42px;
    padding: 10px 7px;
    font-size: .75rem;
  }

  .nav-links a.btn {
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    display: block;
    padding: 42px 16px 48px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: .98;
  }

  .hero p.tagline {
    max-width: 590px;
    margin-bottom: 22px;
    font-size: .96rem;
    line-height: 1.62;
  }

  .cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cta-row .btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 10px;
    white-space: normal;
  }

  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 24px;
    padding-top: 14px;
  }

  .hero-meta div {
    display: block;
    padding: 10px 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
  }

  .hero-meta strong {
    margin-bottom: 2px;
    font-size: .88rem;
  }

  .hero-meta span {
    font-size: .62rem;
    line-height: 1.3;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-title {
    margin-top: 6px;
    font-size: clamp(1.9rem, 8.8vw, 2.75rem);
    line-height: 1.05;
  }

  .section-subtitle {
    font-size: .9rem;
    line-height: 1.55;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-card {
    min-height: 238px;
    padding: 20px;
  }

  .service-number {
    margin-bottom: 18px;
    font-size: .82rem;
  }

  .service-card h3 {
    margin-bottom: 6px;
    font-size: 1.35rem;
  }

  .service-card .price {
    margin-bottom: 10px;
    font-size: 2.45rem;
  }

  .service-card .desc {
    font-size: .8rem;
    line-height: 1.5;
  }

  .service-card .duration {
    padding-top: 12px;
    font-size: .64rem;
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
    width: 100%;
  }

  .process-grid,
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 10px;
  }

  .info-grid .info-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 142px;
    padding: 14px 10px;
    border-radius: 14px;
    overflow: hidden;
  }

  .process-card,
  .contact-card {
    min-height: 0;
    padding: 18px;
  }

  .info-grid .info-card .card-kicker,
  .info-grid .info-card .eyebrow {
    margin: 0 0 9px;
    font-size: .49rem;
    line-height: 1.15;
    letter-spacing: .12em;
    overflow-wrap: anywhere;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4 {
    margin: auto 0 6px;
    font-size: clamp(.8rem, 3.4vw, 1rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }

  .info-grid .info-card p {
    margin: 0;
    font-size: .56rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .contact-card .contact-label {
    margin-bottom: 11px;
  }

  .process-card h3,
  .contact-card h4 {
    margin-bottom: 6px;
    font-size: 1.18rem;
  }

  .process-card span {
    margin-bottom: 12px;
  }

  .process-card p,
  .contact-card a {
    font-size: .82rem;
    line-height: 1.5;
  }

  .location-panel {
    padding: 24px 20px;
  }

  .location-panel .card-kicker {
    margin-bottom: 13px;
  }

  .location-panel h3 {
    margin-bottom: 10px;
    font-size: 1.75rem;
  }

  .location-panel > p {
    font-size: .84rem;
    line-height: 1.55;
  }

  .contact-list {
    margin-top: 19px;
  }

  .contact-list > div {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .location-panel .map-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    margin-top: 17px !important;
    margin-bottom: 8px !important;
  }

  .location-panel .map-actions .btn,
  .location-panel .location-actions .btn {
    width: 100%;
    min-height: 43px;
    padding: 10px 9px;
    font-size: .68rem;
    white-space: normal;
  }

  .location-panel .location-actions {
    margin-top: 0;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 290px;
  }

  .booking-shell {
    padding: 20px;
  }

  .step-header {
    gap: 10px;
  }

  .step-number {
    width: 30px;
    height: 30px;
  }

  .step-header h3 {
    font-size: 1.3rem;
  }

  .step-note {
    margin-bottom: 18px;
    font-size: .82rem;
  }

  .calendar-box,
  .timeslots-box {
    padding: 15px;
  }

  .calendar-header {
    margin-bottom: 12px;
  }

  .calendar-nav button {
    width: 34px;
    height: 34px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-grid .weekday {
    padding-bottom: 6px;
    font-size: .6rem;
  }

  .calendar-grid .day {
    font-size: .75rem;
  }

  .legend {
    margin-top: 12px;
    gap: 9px;
    font-size: .62rem;
  }

  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
  }

  .slot {
    padding: 9px 5px;
    font-size: .74rem;
  }

  .active-booking-banner {
    margin-bottom: 20px;
    padding: 20px 16px;
  }

  .active-booking-banner h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
  }

  .active-booking-banner .info-line {
    margin: 12px 0;
    padding: 10px 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card .label {
    margin-bottom: 8px;
    font-size: .6rem;
  }

  .stat-card .value {
    font-size: 1.65rem;
  }

  .toolbar {
    gap: 8px;
    margin-bottom: 14px;
  }

  .toolbar .search-input,
  .toolbar select,
  .toolbar .btn {
    min-height: 44px;
  }

  th,
  td {
    padding: 11px 12px;
    font-size: .76rem;
  }

  .auth-wrapper {
    min-height: 100svh;
    padding: 16px 10px;
  }

  .auth-card {
    padding: 24px 19px;
  }

  .auth-card .logo-wrap {
    margin-bottom: 14px;
  }

  .auth-card .logo-wrap img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .auth-card h2 {
    font-size: 2rem;
  }

  .auth-card .subtitle {
    margin-bottom: 19px;
    font-size: .84rem;
  }

  .form-group {
    margin-bottom: 13px;
  }

  .form-group label {
    margin-bottom: 6px;
    font-size: .68rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .toolbar .search-input,
  .toolbar select {
    min-height: 46px;
    padding: 11px 13px;
  }

  .form-group .hint {
    margin-top: 5px;
    font-size: .69rem;
    line-height: 1.4;
  }

  .auth-divider {
    margin: 17px 0;
  }

  .auth-footer {
    margin-top: 17px;
  }

  .btn-back {
    min-height: 37px;
    margin-bottom: 12px;
    padding: 8px 12px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal {
    max-height: 94svh;
    padding: 23px 18px;
  }

  .modal h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
  }

  .modal .summary-row {
    padding: 10px 0;
    font-size: .82rem;
  }

  .modal .actions {
    margin-top: 18px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 30px 16px 24px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .footer-brand {
    gap: 11px;
  }

  .footer-brand img {
    width: 48px;
    height: 48px;
  }

  .footer-brand-block > p {
    max-width: 620px;
    margin-top: 12px;
    font-size: .76rem;
    line-height: 1.5;
  }

  .footer-column {
    gap: 7px;
  }

  .footer-column h3 {
    margin-bottom: 4px;
  }

  .footer-column a {
    font-size: .74rem;
  }

  .footer-bottom {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 36px 13px;
  }

  .navbar .brand small {
    display: none;
  }

  .hero-inner {
    padding: 34px 13px 40px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12.5vw, 3.35rem);
  }

  .hero p.tagline {
    font-size: 0.88rem;
  }

  .cta-row .btn {
    font-size: 0.68rem;
    letter-spacing: 0.045em;
  }

  .hero-meta {
    gap: 5px;
  }

  .hero-meta div {
    padding: 8px 4px;
  }

  .hero-meta strong {
    font-size: 0.78rem;
  }

  .hero-meta span {
    font-size: 0.55rem;
  }

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

  .service-card {
    min-height: 0;
    padding: 18px;
  }

  .service-number {
    margin-bottom: 11px;
  }

  .service-card .duration {
    margin-top: 14px;
    padding-top: 0;
  }

  /*
   * Le tre card Mattina, Pomeriggio e Prenotazione
   * rimangono affiancate sulla stessa riga.
   */
  .info-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    align-items: stretch;
    width: 100%;
  }

  .info-grid .info-card {
    min-width: 0;
    min-height: 130px;
    padding: 12px 7px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .info-grid .info-card .eyebrow,
  .info-grid .info-card .card-kicker {
    margin: 0 0 10px;
    font-size: 0.5rem;
    line-height: 1.15;
    letter-spacing: 0.13em;
    overflow-wrap: anywhere;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4 {
    margin: auto 0 7px;
    font-size: clamp(0.82rem, 3.6vw, 1rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .info-grid .info-card p {
    margin: 0;
    font-size: 0.57rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  /*
   * Le altre griglie restano a una colonna,
   * così contenuti e contatti non diventano illeggibili.
   */
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-card,
  .contact-card {
    padding: 16px;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-list dt {
    font-size: 0.62rem;
  }

  .location-panel .map-actions {
    grid-template-columns: 1fr;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 245px;
  }

  .booking-shell {
    padding: 15px;
  }

  .booking-shell .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-shell .service-card {
    min-height: 175px;
    padding: 14px;
  }

  .booking-shell .service-number {
    margin-bottom: 7px;
  }

  .booking-shell .service-card h3 {
    font-size: 1rem;
  }

  .booking-shell .service-card .price {
    font-size: 1.85rem;
  }

  .booking-shell .service-card .desc {
    display: none;
  }

  .booking-shell .service-card .duration {
    margin-top: auto;
    font-size: 0.55rem;
  }

  .calendar-box,
  .timeslots-box {
    padding: 12px;
  }

  .calendar-grid .day {
    font-size: 0.7rem;
  }

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

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

  .stat-card {
    padding: 13px;
  }

  .toolbar select,
  .toolbar .btn {
    width: 100%;
  }

  .table-actions {
    min-width: 0;
    flex-wrap: nowrap;
  }

  .table-actions .btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.66rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .auth-card {
    padding: 21px 16px;
  }

  .auth-card h2 {
    font-size: 1.8rem;
  }

  .auth-card .logo-wrap img {
    width: 58px;
    height: 58px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-divider {
    margin: 14px 0;
  }

  .footer-inner {
    gap: 16px 12px;
    padding: 25px 13px 20px;
  }

  .footer-brand-block > p {
    display: none;
  }

  .footer-column {
    padding-top: 0;
    border-top: 0;
  }

  .footer-column h3 {
    font-size: 0.64rem;
  }

  .footer-column a {
    font-size: 0.69rem;
    line-height: 1.35;
  }

  .footer-bottom p {
    font-size: 0.66rem;
  }
}

@media (max-width: 360px) {
  .navbar .brand span {
    font-size: 0.71rem;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

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

  .hero-meta div:last-child {
    grid-column: 1 / -1;
  }

  /*
   * Anche sui telefoni molto stretti le tre card
   * restano sulla stessa riga.
   */
  .info-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .info-grid .info-card {
    min-width: 0;
    min-height: 118px;
    padding: 10px 5px;
    border-radius: 10px;
  }

  .info-grid .info-card .eyebrow,
  .info-grid .info-card .card-kicker {
    margin-bottom: 6px;
    font-size: 0.39rem;
    letter-spacing: 0.06em;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4 {
    margin-top: auto;
    margin-bottom: 5px;
    font-size: clamp(0.62rem, 3.4vw, 0.76rem);
    line-height: 1.05;
  }

  .info-grid .info-card p {
    font-size: 0.44rem;
    line-height: 1.16;
  }

  .booking-shell .services-grid {
    grid-template-columns: 1fr;
  }

  .booking-shell .service-card {
    min-height: 0;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand-block {
    grid-column: auto;
  }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1000px) {
  .navbar {
    position: sticky;
  }

  .hero-inner {
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .hero-visual {
    display: none;
  }

  .info-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .info-grid .info-card {
    min-width: 0;
    min-height: 112px;
    padding: 11px 10px;
  }

  .info-grid .info-card .eyebrow,
  .info-grid .info-card .card-kicker {
    margin-bottom: 5px;
    font-size: 0.45rem;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4 {
    margin-top: auto;
    margin-bottom: 5px;
    font-size: 0.84rem;
    line-height: 1.08;
  }

  .info-grid .info-card p {
    font-size: 0.53rem;
    line-height: 1.18;
  }

  .auth-wrapper {
    place-items: start center;
    padding-block: 12px;
  }

  .auth-card {
    margin-block: 0;
  }
}

/* =========================================================
   RELEASE 2026-07-28.1 — COMPACT CARD ROWS ON SMALL SCREENS
   Keeps every card group on one horizontal row:
   - Services: 2 cards
   - Opening hours: 3 cards
   - How it works: 3 cards
   - Contacts: 4 cards
   ========================================================= */

@media (max-width: 820px) {
  .services-grid,
  .info-grid,
  .process-grid,
  .contact-grid {
    display: grid !important;
    width: 100%;
    align-items: stretch;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .info-grid,
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .services-grid > .service-card,
  .info-grid > .info-card,
  .process-grid > .process-card,
  .contact-grid > .contact-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  /* SERVICES — two compact cards in one row */
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .services-grid > .service-card {
    min-height: 190px !important;
    padding: 15px 12px !important;
    border-radius: 13px;
  }

  .services-grid .service-number {
    margin-bottom: 12px !important;
    font-size: .62rem !important;
  }

  .services-grid .service-card h3 {
    margin-bottom: 4px !important;
    font-size: clamp(.92rem, 4vw, 1.18rem) !important;
    line-height: 1.08;
  }

  .services-grid .service-card .price {
    margin-bottom: 7px !important;
    font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
  }

  .services-grid .service-card .price small {
    font-size: .62rem !important;
  }

  .services-grid .service-card .desc {
    font-size: .62rem !important;
    line-height: 1.3 !important;
  }

  .services-grid .service-card .duration {
    margin-top: auto !important;
    padding-top: 9px !important;
    font-size: .5rem !important;
    line-height: 1.2;
    letter-spacing: .07em;
  }

  /* HOURS — three cards in one row */
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .info-grid > .info-card {
    display: flex !important;
    flex-direction: column;
    min-height: 132px !important;
    padding: 12px 8px !important;
    border-radius: 12px;
  }

  .info-grid .card-kicker {
    margin-bottom: 7px !important;
    font-size: .43rem !important;
    line-height: 1.1;
    letter-spacing: .09em;
    overflow-wrap: anywhere;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4 {
    margin: auto 0 5px !important;
    font-size: clamp(.7rem, 3.5vw, .9rem) !important;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .info-grid .info-card p {
    margin: 0 !important;
    font-size: .49rem !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }

  .info-grid .info-card p strong {
    font-size: .66rem !important;
  }

  /* HOW IT WORKS — three cards in one row */
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .process-grid > .process-card {
    display: flex !important;
    flex-direction: column;
    min-height: 154px !important;
    padding: 12px 8px !important;
    border-radius: 12px;
  }

  .process-grid .process-card span {
    margin-bottom: 9px !important;
    font-size: .48rem !important;
    line-height: 1;
  }

  .process-grid .process-card h3 {
    margin-bottom: 6px !important;
    font-size: clamp(.7rem, 3.25vw, .88rem) !important;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .process-grid .process-card p {
    margin-top: auto;
    font-size: .49rem !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  /* CONTACTS — four cards in one row */
  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .contact-grid > .contact-card {
    display: flex !important;
    flex-direction: column;
    min-height: 128px !important;
    padding: 10px 6px !important;
    border-radius: 11px;
  }

  .contact-grid .contact-label {
    margin-bottom: 8px !important;
    font-size: .39rem !important;
    line-height: 1.1;
    letter-spacing: .07em;
    overflow-wrap: anywhere;
  }

  .contact-grid .contact-card h3,
  .contact-grid .contact-card h4 {
    margin-bottom: 5px !important;
    font-size: clamp(.59rem, 2.8vw, .75rem) !important;
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .contact-grid .contact-card a {
    margin-top: auto;
    max-width: 100%;
    font-size: .42rem !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-bottom-width: 0;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .services-grid > .service-card {
    min-height: 168px !important;
    padding: 12px 9px !important;
  }

  .services-grid .service-card .desc {
    display: block !important;
    font-size: .54rem !important;
    line-height: 1.22 !important;
  }

  .info-grid,
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .info-grid > .info-card {
    min-height: 118px !important;
    padding: 10px 5px !important;
  }

  .process-grid > .process-card {
    min-height: 140px !important;
    padding: 10px 5px !important;
  }

  .contact-grid > .contact-card {
    min-height: 112px !important;
    padding: 9px 4px !important;
  }

  .info-grid .card-kicker,
  .process-grid .process-card span,
  .contact-grid .contact-label {
    font-size: .36rem !important;
    letter-spacing: .05em;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4,
  .process-grid .process-card h3 {
    font-size: clamp(.59rem, 3vw, .76rem) !important;
  }

  .contact-grid .contact-card h3,
  .contact-grid .contact-card h4 {
    font-size: clamp(.5rem, 2.55vw, .64rem) !important;
  }

  .info-grid .info-card p,
  .process-grid .process-card p {
    font-size: .42rem !important;
    line-height: 1.15 !important;
  }

  .contact-grid .contact-card a {
    font-size: .35rem !important;
    line-height: 1.12 !important;
  }
}

@media (max-width: 360px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .services-grid > .service-card {
    min-height: 156px !important;
    padding: 10px 7px !important;
  }

  .services-grid .service-card .desc {
    display: none !important;
  }

  .info-grid,
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  .info-grid > .info-card {
    min-height: 108px !important;
    padding: 8px 4px !important;
  }

  .process-grid > .process-card {
    min-height: 126px !important;
    padding: 8px 4px !important;
  }

  .contact-grid > .contact-card {
    min-height: 102px !important;
    padding: 7px 3px !important;
  }

  .info-grid .card-kicker,
  .process-grid .process-card span,
  .contact-grid .contact-label {
    font-size: .32rem !important;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4,
  .process-grid .process-card h3 {
    font-size: .54rem !important;
  }

  .contact-grid .contact-card h3,
  .contact-grid .contact-card h4 {
    font-size: .46rem !important;
  }

  .info-grid .info-card p,
  .process-grid .process-card p {
    font-size: .37rem !important;
  }

  .contact-grid .contact-card a {
    font-size: .3rem !important;
  }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .info-grid,
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .services-grid > .service-card,
  .info-grid > .info-card,
  .process-grid > .process-card,
  .contact-grid > .contact-card {
    min-width: 0 !important;
    width: auto !important;
  }
}


/* =========================================================
   FINAL SMALL-DEVICE GRID
   Tutte le card restano VISIBILI sulla stessa riga.
   Nessuno scorrimento orizzontale.
   ========================================================= */

@media (max-width: 820px) {
  .services-grid,
  .info-grid,
  .process-grid,
  .contact-grid {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    align-items: stretch !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .info-grid,
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .services-grid > .service-card,
  .info-grid > .info-card,
  .process-grid > .process-card,
  .contact-grid > .contact-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 720px) {
  /* SERVIZI: 2 card sulla stessa riga */
  .services-grid > .service-card {
    min-height: 185px !important;
    padding: 14px 11px !important;
  }

  .services-grid .service-number {
    margin-bottom: 10px !important;
    font-size: .58rem !important;
  }

  .services-grid .service-card h3 {
    margin-bottom: 4px !important;
    font-size: clamp(.88rem, 3.8vw, 1.12rem) !important;
    line-height: 1.08 !important;
  }

  .services-grid .service-card .price {
    margin-bottom: 6px !important;
    font-size: clamp(1.65rem, 7vw, 2.15rem) !important;
  }

  .services-grid .service-card .price small {
    font-size: .58rem !important;
  }

  .services-grid .service-card .desc {
    font-size: .58rem !important;
    line-height: 1.25 !important;
  }

  .services-grid .service-card .duration {
    margin-top: auto !important;
    padding-top: 8px !important;
    font-size: .46rem !important;
    letter-spacing: .05em !important;
  }

  /* ORARI: 3 card sulla stessa riga */
  .info-grid > .info-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 126px !important;
    padding: 11px 7px !important;
    border-radius: 11px !important;
  }

  .info-grid .card-kicker,
  .info-grid .eyebrow {
    margin: 0 0 7px !important;
    font-size: .4rem !important;
    line-height: 1.08 !important;
    letter-spacing: .07em !important;
    overflow-wrap: anywhere !important;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4 {
    margin: auto 0 5px !important;
    font-size: clamp(.64rem, 3vw, .82rem) !important;
    line-height: 1.06 !important;
    overflow-wrap: anywhere !important;
  }

  .info-grid .info-card p {
    margin: 0 !important;
    font-size: .44rem !important;
    line-height: 1.16 !important;
    overflow-wrap: anywhere !important;
  }

  .info-grid .info-card p strong {
    font-size: .59rem !important;
  }

  /* COME FUNZIONA: 3 card sulla stessa riga */
  .process-grid > .process-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 145px !important;
    padding: 11px 7px !important;
    border-radius: 11px !important;
  }

  .process-grid .process-card span {
    margin-bottom: 8px !important;
    font-size: .42rem !important;
    line-height: 1 !important;
  }

  .process-grid .process-card h3 {
    margin-bottom: 5px !important;
    font-size: clamp(.62rem, 2.9vw, .8rem) !important;
    line-height: 1.06 !important;
    overflow-wrap: anywhere !important;
  }

  .process-grid .process-card p {
    margin-top: auto !important;
    font-size: .43rem !important;
    line-height: 1.16 !important;
    overflow-wrap: anywhere !important;
  }

  /* CONTATTI: 4 card sulla stessa riga */
  .contact-grid > .contact-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 118px !important;
    padding: 9px 5px !important;
    border-radius: 10px !important;
  }

  .contact-grid .contact-label {
    margin-bottom: 6px !important;
    font-size: .32rem !important;
    line-height: 1.05 !important;
    letter-spacing: .04em !important;
    overflow-wrap: anywhere !important;
  }

  .contact-grid .contact-card h3,
  .contact-grid .contact-card h4 {
    margin-bottom: 4px !important;
    font-size: clamp(.48rem, 2.3vw, .62rem) !important;
    line-height: 1.04 !important;
    overflow-wrap: anywhere !important;
  }

  .contact-grid .contact-card a {
    margin-top: auto !important;
    max-width: 100% !important;
    font-size: .31rem !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    border-bottom: 0 !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 10px !important;
  }

  .services-grid {
    gap: 5px !important;
  }

  .info-grid,
  .process-grid {
    gap: 4px !important;
  }

  .contact-grid {
    gap: 3px !important;
  }

  .services-grid > .service-card {
    min-height: 160px !important;
    padding: 11px 8px !important;
  }

  .services-grid .service-card .desc {
    font-size: .5rem !important;
  }

  .info-grid > .info-card {
    min-height: 112px !important;
    padding: 9px 5px !important;
  }

  .process-grid > .process-card {
    min-height: 128px !important;
    padding: 9px 5px !important;
  }

  .contact-grid > .contact-card {
    min-height: 102px !important;
    padding: 7px 3px !important;
  }

  .info-grid .card-kicker,
  .info-grid .eyebrow,
  .process-grid .process-card span {
    font-size: .34rem !important;
  }

  .info-grid .info-card h3,
  .info-grid .info-card h4,
  .process-grid .process-card h3 {
    font-size: .56rem !important;
  }

  .info-grid .info-card p,
  .process-grid .process-card p {
    font-size: .36rem !important;
  }

  .contact-grid .contact-label {
    font-size: .27rem !important;
  }

  .contact-grid .contact-card h3,
  .contact-grid .contact-card h4 {
    font-size: .41rem !important;
  }

  .contact-grid .contact-card a {
    font-size: .25rem !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding-inline: 8px !important;
  }

  .services-grid {
    gap: 4px !important;
  }

  .info-grid,
  .process-grid,
  .contact-grid {
    gap: 3px !important;
  }

  .services-grid > .service-card {
    min-height: 150px !important;
    padding: 9px 6px !important;
  }

  .services-grid .service-card .desc {
    display: none !important;
  }

  .info-grid > .info-card {
    min-height: 104px !important;
    padding: 7px 4px !important;
  }

  .process-grid > .process-card {
    min-height: 118px !important;
    padding: 7px 4px !important;
  }

  .contact-grid > .contact-card {
    min-height: 94px !important;
    padding: 6px 2px !important;
  }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .info-grid,
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* =========================================================
   RELEASE 2026-07-29.11 — ACCOUNT, GALLERY, ADMIN
   ========================================================= */
.account-nav-link{display:inline-flex!important;align-items:center;gap:8px}.account-dot{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--border-brand);background:var(--brand-deep);color:#fff;font-size:.66rem;font-weight:700;letter-spacing:.03em}.card-panel,.settings-card{padding:26px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.settings-card h2{margin:6px 0 14px;font-family:var(--font-display);font-size:1.45rem}.settings-note{margin-bottom:18px;color:var(--muted);font-size:.86rem;line-height:1.55}.settings-actions{display:flex;flex-wrap:wrap;gap:10px}.auth-card-wide{max-width:620px}.social-auth-grid{display:grid;gap:9px}.form-check{display:flex;align-items:flex-start;gap:10px;margin:14px 0 18px;color:var(--text-soft);font-size:.82rem}.form-check-input{margin-top:4px;accent-color:var(--brand-strong)}code{padding:.1em .35em;border-radius:5px;background:rgba(255,255,255,.06);color:var(--accent-soft)}

/* Gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.gallery-card{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.gallery-card button{width:100%;display:block;padding:0;border:0;background:transparent;color:var(--text);cursor:pointer;text-align:left}.gallery-card img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform var(--transition)}.gallery-card span{display:block;padding:15px 17px;font-family:var(--font-display);font-size:1.05rem}.gallery-card:hover img{transform:scale(1.025)}.gallery-modal-content{max-width:850px}.gallery-modal-content img{width:100%;max-height:70vh;object-fit:contain;border-radius:12px;background:#080a09}.gallery-modal-content h3{margin-top:15px;padding-right:0}

/* Profile */
.profile-layout{display:grid;grid-template-columns:minmax(230px,.42fr) minmax(0,1.3fr);gap:20px;align-items:start}.profile-summary{position:sticky;top:calc(var(--header-h) + 22px);text-align:center}.profile-avatar{width:88px;height:88px;display:grid;place-items:center;margin:0 auto 16px;border:1px solid var(--border-brand);border-radius:50%;background:linear-gradient(145deg,var(--brand-deep),var(--surface-2));font-family:var(--font-display);font-size:2rem}.profile-summary h2{font-family:var(--font-display);font-size:1.5rem}.profile-summary p{margin-top:5px;color:var(--muted);font-size:.8rem;word-break:break-word}.provider-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:16px}.settings-stack{display:grid;gap:14px}.danger-zone{border-color:rgba(215,101,101,.38);background:linear-gradient(145deg,rgba(215,101,101,.06),var(--surface))}.receipt-list{display:grid;gap:10px}.receipt-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--border);border-radius:12px;background:#101411}.receipt-card h3{margin:4px 0;font-family:var(--font-display);font-size:1.05rem}.receipt-card p{color:var(--muted);font-size:.8rem}

/* History */
.compact-heading{margin-top:58px}.history-grid{display:grid;gap:11px}.history-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 21px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.history-card h2{margin:8px 0 4px;font-family:var(--font-display);font-size:1.25rem}.history-card p{color:var(--muted);font-size:.82rem}.history-date{color:var(--text-soft)!important}.history-actions{display:flex;align-items:center;gap:10px}.receipt-number{color:var(--brand-soft);font-size:.68rem;font-weight:700}

/* Admin */
.admin-container{max-width:1440px}.admin-tabs{display:flex;gap:7px;margin:25px 0 18px;padding:5px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.admin-tab{flex:1;min-height:42px;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-weight:700;cursor:pointer}.admin-tab.active{background:var(--brand-deep);color:#fff}.admin-panel{display:none}.admin-panel.active{display:block}.calendar-admin-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:15px}.admin-slot-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:12px 0 18px}.slot-check input{position:absolute;opacity:0}.slot-check span{display:block;padding:8px 4px;border:1px solid var(--border);border-radius:8px;color:var(--text-soft);font-size:.72rem;text-align:center;cursor:pointer}.slot-check input:checked+span{border-color:var(--brand-soft);background:var(--brand-deep);color:#fff}.closure-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}.closure-item p{color:var(--muted);font-size:.78rem}.table-wrapper small{color:var(--muted)}

/* Contact cards */
.contact-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

@media(max-width:980px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-layout{grid-template-columns:1fr}.profile-summary{position:static}.calendar-admin-grid{grid-template-columns:1fr}.admin-slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.account-nav-link{justify-content:flex-start!important}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gallery-card span{padding:10px;font-size:.8rem}.settings-card{padding:18px}.receipt-card,.history-card{align-items:flex-start;flex-direction:column}.history-actions{width:100%;justify-content:space-between}.admin-tabs{overflow-x:auto}.admin-tab{min-width:105px}.admin-slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.contact-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important}.contact-grid>.contact-card{min-width:0!important;padding:7px 3px!important}.contact-grid .contact-label{font-size:.24rem!important}.contact-grid .contact-card h4{font-size:.38rem!important}.contact-grid .contact-card a{font-size:.22rem!important;overflow-wrap:anywhere}}
@media(max-width:480px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-avatar{width:70px;height:70px}.settings-actions>.btn{width:100%}.receipt-card .btn{width:100%}}


/* =========================================================
   V11 — FINAL PRODUCTION POLISH
   ========================================================= */
.customer-toolbar{justify-content:flex-start;margin-bottom:22px}.receipt-card-static{justify-content:flex-start}.receipt-card-static>div{min-width:0}.empty-state{padding:36px 24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);text-align:center}.empty-state h2{margin-bottom:8px;font-family:var(--font-display);font-size:1.5rem}.empty-state p{margin-bottom:20px;color:var(--muted)}.social-auth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-auth-grid .btn{min-width:0;white-space:normal}.settings-card form:last-child{margin-bottom:0}.profile-summary .badge{max-width:100%;overflow:hidden;text-overflow:ellipsis}.history-card,.receipt-card{box-shadow:0 10px 28px rgba(0,0,0,.08)}
@media(max-width:720px){.social-auth-grid{grid-template-columns:1fr}.customer-toolbar .btn{width:100%}.history-card,.receipt-card{width:100%}.profile-layout{gap:14px}.settings-card h2{font-size:1.25rem}}


/* Final responsive refinements */
@media(max-width:720px){
  .contact-grid .contact-label{font-size:.42rem!important;line-height:1.08!important;letter-spacing:.05em!important}
  .contact-grid .contact-card h3,.contact-grid .contact-card h4{font-size:.60rem!important;line-height:1.08!important}
  .contact-grid .contact-card a{font-size:.43rem!important;line-height:1.16!important}
  .contact-grid>.contact-card{min-height:108px!important;padding:9px 4px!important}
}
@media(max-width:480px){
  .contact-grid .contact-label{font-size:.34rem!important}
  .contact-grid .contact-card h3,.contact-grid .contact-card h4{font-size:.49rem!important}
  .contact-grid .contact-card a{font-size:.34rem!important}
  .contact-grid>.contact-card{min-height:98px!important;padding:7px 3px!important}
}
@media(max-width:360px){
  .contact-grid .contact-label{font-size:.30rem!important}
  .contact-grid .contact-card h3,.contact-grid .contact-card h4{font-size:.43rem!important}
  .contact-grid .contact-card a{font-size:.30rem!important}
}


/* Compact mobile card content */
.contact-value-short{display:none}
@media(max-width:720px){
  .info-grid .card-kicker,.info-grid .eyebrow{font-size:.48rem!important;letter-spacing:.08em!important}
  .info-grid .info-card h3,.info-grid .info-card h4{font-size:.74rem!important;line-height:1.08!important}
  .info-grid .info-card p{font-size:.52rem!important;line-height:1.18!important}
  .process-grid .process-card span{font-size:.46rem!important}
  .process-grid .process-card h3{font-size:.70rem!important;line-height:1.08!important}
  .process-grid .process-card p{font-size:.49rem!important;line-height:1.18!important}
}
@media(max-width:480px){
  .services-grid .service-card .desc{display:none!important}
  .process-grid>.process-card{min-height:102px!important}
  .process-grid .process-card p{display:none!important}
  .process-grid .process-card h3{margin-top:auto!important;margin-bottom:auto!important;font-size:.62rem!important}
  .info-grid .card-kicker,.info-grid .eyebrow{font-size:.41rem!important}
  .info-grid .info-card h3,.info-grid .info-card h4{font-size:.64rem!important}
  .info-grid .info-card p{font-size:.46rem!important}
  .contact-value-full{display:none!important}
  .contact-value-short{display:inline!important}
  .contact-grid .contact-label{font-size:.38rem!important}
  .contact-grid .contact-card h3,.contact-grid .contact-card h4{font-size:.52rem!important}
  .contact-grid .contact-card a{font-size:.44rem!important;font-weight:700!important}
}


/* ===== LOGIN / PASSWORD RECOVERY — RELEASE 12 ===== */
.forgot-row{display:flex;justify-content:flex-end;margin-top:9px}.forgot-link{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:4px 0;border:0;background:transparent;color:var(--brand-soft);font-size:.78rem;font-weight:700;line-height:1.25;cursor:pointer;text-align:right}.forgot-link:hover{color:var(--accent-soft);text-decoration:underline;text-underline-offset:3px}.forgot-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}.reset-password-modal{max-width:500px}.reset-password-modal .section-eyebrow{margin-bottom:10px}.reset-password-modal h3{margin-bottom:10px}.reset-password-modal .step-note{margin-bottom:20px}.reset-password-modal .alert.show{margin-bottom:16px}@media(max-width:520px){.forgot-row{margin-top:8px}.forgot-link{font-size:.75rem}.reset-password-modal{padding:24px 18px}.reset-password-modal h3{padding-right:58px;font-size:1.45rem}}


/* =========================================================
   FOOTER EDITORIALE — VERSIONE CONSEGNA
   ========================================================= */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #0b100d;
}

.site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(143, 200, 167, .38), transparent);
}

.site-footer .footer-main-grid {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding: 54px 28px 40px;
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(150px, .75fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.site-footer .footer-brand-block {
  min-width: 0;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  color: var(--text);
}

.site-footer .footer-brand img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  padding: 3px;
  object-fit: contain;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #153e29;
}

.site-footer .footer-brand-copy strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-footer .footer-brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: .84rem;
  line-height: 1.45;
}

.site-footer .footer-brand-block > p {
  max-width: 390px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.7;
  text-align: left;
}

.site-footer .footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 0;
  border: 0;
}

.site-footer .footer-column h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer .footer-column a {
  max-width: 100%;
  color: var(--text-soft);
  font-size: .83rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.site-footer .footer-column a:hover {
  color: var(--brand-soft);
}

.site-footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.site-footer .footer-socials a {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.site-footer .footer-socials a:hover {
  border-color: var(--brand-soft);
  background: rgba(143, 200, 167, .08);
  color: var(--brand-soft);
}

.site-footer .footer-bottom-row {
  min-height: 54px;
  padding: 14px max(28px, calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .12);
  text-align: left;
}

.site-footer .footer-bottom-row p {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
}

@media (max-width: 900px) {
  .site-footer .footer-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .site-footer .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 38px 16px 28px;
    gap: 28px 18px;
  }

  .site-footer .footer-brand-block {
    grid-column: 1 / -1;
  }

  .site-footer .footer-brand img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .site-footer .footer-brand-copy strong {
    font-size: 1.08rem;
  }

  .site-footer .footer-brand-block > p {
    display: block;
    margin-top: 16px;
    font-size: .77rem;
  }

  .site-footer .footer-socials {
    margin-top: 20px;
  }

  .site-footer .footer-socials a {
    width: 42px;
    height: 42px;
  }

  .site-footer .footer-column {
    padding: 0;
    border: 0;
  }

  .site-footer .footer-column h3 {
    font-size: .67rem;
  }

  .site-footer .footer-column a {
    font-size: .74rem;
  }

  .site-footer .footer-bottom-row {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .site-footer .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-brand-block {
    grid-column: auto;
  }
}


/* =========================================================
   MAPPA A TUTTA ALTEZZA + ICONE SOCIAL VERDI
   ========================================================= */
@media (min-width: 1121px) {
  .location-layout {
    align-items: stretch !important;
  }

  .location-layout > .map-container {
    position: relative;
    min-width: 0;
    min-height: 100%;
    align-self: stretch;
    overflow: hidden;
  }

  .location-layout > .map-container > .map-wrapper {
    position: absolute;
    inset: 0;
    min-height: 0 !important;
    height: 100% !important;
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  .location-layout > .map-container > .map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
  }
}

.site-footer .footer-socials a {
  border-color: rgba(143, 200, 167, .48);
  color: var(--brand-soft);
  background: rgba(143, 200, 167, .035);
}

.site-footer .footer-socials a svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.site-footer .footer-socials a:hover {
  border-color: var(--brand-soft);
  background: var(--brand-soft);
  color: #0b100d;
}

@media (max-width: 1120px) {
  .location-layout > .map-container {
    position: relative;
    min-width: 0;
    min-height: 360px;
  }

  .location-layout > .map-container > .map-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    height: 360px;
    min-height: 360px !important;
  }

  .location-layout > .map-container > .map-wrapper iframe {
    width: 100% !important;
    height: 360px !important;
    min-height: 360px !important;
  }
}

@media (max-width: 560px) {
  .location-layout > .map-container,
  .location-layout > .map-container > .map-wrapper,
  .location-layout > .map-container > .map-wrapper iframe {
    height: 280px !important;
    min-height: 280px !important;
  }

  .site-footer .footer-socials a svg {
    width: 19px;
    height: 19px;
  }
}


/* =========================================================
   V15 — FLUIDITÀ, GESTIONE UTENTI E RENDERING PROGRESSIVO
   ========================================================= */
.home-section,
.location-section,
.site-footer,
.gallery-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.admin-panel:not(.active) {
  content-visibility: hidden;
}

.users-management-card {
  padding: clamp(20px, 3vw, 30px);
}

.users-management-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.users-management-heading h2 {
  margin: 6px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.users-toolbar {
  margin-bottom: 16px;
}

.users-table {
  min-width: 980px;
}

.users-table td small {
  color: var(--muted);
}

.loading-screen {
  transition-duration: 180ms;
}

.page-gate {
  transition-duration: 160ms;
}

@media (max-width: 720px) {
  .users-management-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .users-toolbar .search-input,
  .users-toolbar .btn {
    width: 100%;
  }
}


/* =========================================================
   V17 — NAVIGAZIONE ISTANTANEA E CARICAMENTO PROGRESSIVO
   ========================================================= */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 170ms;
  animation-timing-function: cubic-bezier(.2,.7,.2,1);
}

.loading-screen {
  opacity: 0;
  animation: delayed-loader-visibility .01s linear 160ms forwards;
}

html.app-ready .loading-screen {
  animation: none;
  opacity: 0;
}

@keyframes delayed-loader-visibility {
  to { opacity: 1; }
}

.service-card,
.info-card,
.history-card,
.receipt-card,
.gallery-card,
.auth-card,
.admin-card {
  contain: layout paint;
}

.navbar,
.btn,
.gallery-card img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

img {
  content-visibility: auto;
}

html.is-offline::after {
  content: 'Connessione assente';
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 10020;
  transform: translateX(-50%);
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(12,15,13,.94);
  color: var(--text-soft);
  font-size: .75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  .loading-screen { animation-delay: 0s; }
}

/* Avvisi locali nelle operazioni sensibili del profilo */
.form-local-alert {
  margin: 14px 0 12px;
  scroll-margin-top: 100px;
}
.form-local-alert.show {
  animation: localAlertIn .18s ease-out both;
}
@keyframes localAlertIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .form-local-alert.show { animation: none; }
}

/* Ripristino backup amministrativo */
.backup-restore-card{max-width:880px}.backup-preview{margin:18px 0;padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.035)}.backup-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.backup-preview-head div{display:grid;gap:4px}.backup-preview-head small{color:var(--muted)}.backup-collection-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.backup-collection-list li{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.045)}.backup-warning{margin:12px 0 0;color:#f2c57c;font-size:.92rem}.backup-confirm-row{margin:18px 0}.backup-actions{display:flex;justify-content:flex-start}.backup-progress{margin-top:18px}.backup-progress-track{height:10px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.1)}.backup-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7ebf8e,#b6dfbd);transition:width .2s ease}.backup-progress p{margin:8px 0 0;color:var(--muted);font-size:.92rem}.security-note{margin-top:20px;padding:14px 16px;border-left:3px solid #d6a85f;background:rgba(214,168,95,.08);border-radius:8px;color:var(--muted)}@media(max-width:640px){.backup-preview-head{align-items:flex-start;flex-direction:column}.backup-collection-list{grid-template-columns:1fr}.backup-actions .btn{width:100%}}

/* =========================================================
   V22 — HERO EDITORIALE, ORARI AGGIORNATI E GALLERIA SALONE
   ========================================================= */
.home-page .navbar,
.gallery-page .navbar {
  background: rgba(10, 14, 11, .94);
}

.home-page .home-hero {
  min-height: min(790px, calc(100vh - var(--header-h)));
  background-image:
    linear-gradient(180deg, rgba(5, 12, 8, .30), rgba(5, 12, 8, .76)),
    linear-gradient(90deg, rgba(7, 16, 10, .60), rgba(7, 16, 10, .22), rgba(7, 16, 10, .60)),
    url('/img/gallery/salone-1.jpg');
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.home-page .home-hero::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .38));
}
.home-page .home-hero::after {
  content: '';
  inset: 34px;
  right: 34px;
  bottom: 34px;
  border: 1px solid rgba(255,255,255,.62);
  color: transparent;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}
.home-page .home-hero .hero-inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: clamp(76px, 10vw, 126px) 28px;
  text-align: center;
}
.home-page .home-hero .hero-copy {
  width: min(100%, 850px);
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-page .home-hero-logo {
  width: clamp(116px, 13vw, 176px);
  height: clamp(116px, 13vw, 176px);
  margin-bottom: 24px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  box-shadow: 0 26px 70px rgba(0,0,0,.38);
}
.home-page .home-hero .hero-eyebrow {
  margin-bottom: 15px;
  color: var(--accent-soft);
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.home-page .home-hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 7.1vw, 6.8rem);
  line-height: .96;
  text-shadow: 0 8px 38px rgba(0,0,0,.48);
}
.home-page .home-hero h1 span { color: #fff; }
.home-page .home-hero p.tagline {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.72;
  text-shadow: 0 3px 20px rgba(0,0,0,.52);
}
.home-page .home-hero .cta-row { justify-content: center; }
.home-page .home-hero .btn-outline {
  border-color: rgba(255,255,255,.65);
  background: rgba(0,0,0,.16);
}
.home-page .home-hero .hero-meta {
  width: min(100%, 690px);
  margin-top: 42px;
  padding: 18px 22px 0;
  border-top-color: rgba(255,255,255,.34);
}
.home-page .home-hero .hero-meta strong,
.home-page .home-hero .hero-meta span { text-shadow: 0 2px 12px rgba(0,0,0,.62); }
.home-page .home-hero .hero-meta span { color: rgba(255,255,255,.72); }

.opening-hours-grid .info-card h4 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.opening-hours-grid .info-card p strong { display: inline; font-size: inherit; }

.gallery-page .gallery-hero {
  min-height: clamp(560px, 74vh, 760px);
  display: grid;
  place-items: center;
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(5, 12, 8, .34), rgba(5, 12, 8, .82)),
    url('/img/gallery/salone-1.jpg');
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}
.gallery-page .gallery-hero::after {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(255,255,255,.56);
  pointer-events: none;
}
.gallery-hero-inner {
  width: min(100%, 790px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gallery-hero-inner img {
  width: clamp(112px, 13vw, 166px);
  height: clamp(112px, 13vw, 166px);
  margin-bottom: 22px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  box-shadow: 0 24px 64px rgba(0,0,0,.38);
}
.gallery-hero-inner .section-eyebrow { color: var(--accent-soft); }
.gallery-hero-inner h1 {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 8px 36px rgba(0,0,0,.52);
}
.gallery-hero-inner p {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.75;
}
.gallery-content { padding-top: 78px; }
.gallery-intro { margin-bottom: 48px; }
.gallery-sections { display: grid; gap: 74px; }
.gallery-group { min-width: 0; }
.gallery-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.gallery-group-heading h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.7vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
}
.gallery-grid-featured { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.gallery-card-featured { min-height: 0; }
.gallery-card .gallery-image-wrap {
  display: block;
  padding: 0 !important;
  overflow: hidden;
  background: #08100b;
}
.gallery-card .gallery-card-title {
  display: block;
  padding: 15px 17px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.gallery-card-featured img { aspect-ratio: 16 / 10; }
.gallery-card-featured .gallery-card-title { padding: 18px 20px; font-size: 1.28rem; }

@media (max-width: 1120px) {
  .home-page .home-hero { min-height: 690px; }
  .home-page .home-hero .hero-inner { padding-top: 82px; padding-bottom: 90px; }
}

@media (max-width: 720px) {
  .home-page .home-hero {
    min-height: 650px;
    background-position: center;
  }
  .home-page .home-hero::after,
  .gallery-page .gallery-hero::after { inset: 16px; }
  .home-page .home-hero .hero-inner { padding: 62px 24px 72px; }
  .home-page .home-hero h1 { font-size: clamp(2.8rem, 13.2vw, 4.6rem); }
  .home-page .home-hero .hero-meta {
    width: 100%;
    margin-top: 30px;
    padding-inline: 0;
  }
  .home-page .home-hero .hero-meta div {
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
  }
  .gallery-page .gallery-hero { min-height: 600px; padding: 62px 24px; }
  .gallery-hero-inner h1 { font-size: clamp(2.8rem, 13vw, 4.7rem); }
  .gallery-grid-featured { grid-template-columns: 1fr; gap: 14px; }
  .gallery-sections { gap: 54px; }
  .gallery-card-featured .gallery-card-title { padding: 14px 15px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .home-page .home-hero { min-height: 610px; }
  .home-page .home-hero-logo,
  .gallery-hero-inner img { width: 104px; height: 104px; }
  .home-page .home-hero p.tagline,
  .gallery-hero-inner p { font-size: .94rem; line-height: 1.62; }
  .gallery-page .gallery-hero { min-height: 560px; }
  .gallery-content { padding-top: 58px; }
}

.footer-hours {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.footer-hours span { display: block; }
.footer-hours strong { color: var(--text-soft); font-weight: 700; }


/* Galleria dinamica v25: storytelling sticky e reveal progressivi */
.gallery-story {
  display: grid;
  gap: 10vh;
  margin-top: 8px;
}
.gallery-story-slide {
  --story-shift: 0px;
  --story-copy-shift: 0px;
  position: relative;
  min-height: 112vh;
}
.gallery-story-button {
  position: sticky;
  top: 84px;
  width: 100%;
  height: calc(100vh - 116px);
  min-height: 560px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: #07100b;
  color: #fff;
  cursor: zoom-in;
  text-align: left;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
}
.gallery-story-media,
.gallery-story-shade {
  position: absolute;
  inset: 0;
  display: block;
}
.gallery-story-media { overflow: hidden; }
.gallery-story-media img {
  width: 100%;
  height: calc(100% + 84px);
  margin-top: -42px;
  object-fit: cover;
  transform: translate3d(0,var(--story-shift),0) scale(1.045);
  transition: filter .55s ease;
  will-change: transform;
}
.gallery-story-shade {
  background:
    linear-gradient(90deg, rgba(4,9,6,.76) 0%, rgba(4,9,6,.3) 48%, rgba(4,9,6,.08) 74%),
    linear-gradient(0deg, rgba(4,9,6,.62) 0%, transparent 55%);
}
.gallery-story-button::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 14px;
  pointer-events: none;
}
.gallery-story-copy {
  position: absolute;
  z-index: 2;
  left: clamp(28px,6vw,82px);
  bottom: clamp(34px,8vh,88px);
  width: min(560px,calc(100% - 56px));
  display: grid;
  gap: 12px;
  transform: translate3d(0,var(--story-copy-shift),0);
  will-change: transform;
}
.gallery-story-copy .section-eyebrow { color: var(--accent-soft); }
.gallery-story-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.7rem,7vw,6rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.045em;
  text-shadow: 0 8px 32px rgba(0,0,0,.46);
}
.gallery-story-copy > span:last-child {
  max-width: 430px;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  line-height: 1.6;
}
.gallery-story-number {
  position: absolute;
  right: 0;
  bottom: -6px;
  color: rgba(255,255,255,.18);
  font-family: var(--font-display);
  font-size: clamp(5rem,15vw,12rem);
  line-height: .7;
}
.gallery-story-button:hover .gallery-story-media img { filter: brightness(1.06); }
.gallery-reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  transition: opacity .7s ease, transform .85s cubic-bezier(.2,.75,.25,1);
}
.gallery-reveal.is-visible { opacity: 1; transform: none; }
.gallery-grid .gallery-reveal:nth-child(2n) { transition-delay: .08s; }
.gallery-grid .gallery-reveal:nth-child(3n) { transition-delay: .16s; }

@media (max-width: 720px) {
  .gallery-story { gap: 7vh; }
  .gallery-story-slide { min-height: 102vh; }
  .gallery-story-button {
    top: 72px;
    height: calc(100vh - 94px);
    min-height: 500px;
    border-radius: 16px;
  }
  .gallery-story-button::after { inset: 11px; border-radius: 10px; }
  .gallery-story-shade {
    background: linear-gradient(0deg, rgba(4,9,6,.82) 0%, rgba(4,9,6,.2) 72%);
  }
  .gallery-story-copy {
    left: 25px;
    bottom: 38px;
    width: calc(100% - 50px);
  }
  .gallery-story-copy strong { font-size: clamp(2.55rem,13vw,4.3rem); }
  .gallery-story-copy > span:last-child { font-size: .9rem; }
  .gallery-story-number { right: 2px; bottom: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-story-media img,
  .gallery-story-copy,
  .gallery-reveal { transform: none !important; transition: none !important; }
  .gallery-reveal { opacity: 1; }
}


/* Galleria v26 — stile editoriale immersivo ispirato all'hospitality */
.gallery-page .gallery-content { padding: 88px 0 110px; overflow: clip; }
.gallery-page .gallery-intro-wrap { margin-bottom: 54px; }
.gallery-page .gallery-intro { margin-bottom: 0; }
.gallery-page .gallery-sections { display: block; }
.gallery-page .gallery-group-featured { width: 100%; }
.gallery-page .gallery-group-featured > .gallery-group-heading { display: none; }

.gallery-editorial {
  display: grid;
  gap: 0;
  background: #07100b;
}
.gallery-editorial-panel {
  --editorial-progress: 0;
  position: relative;
  min-height: 118vh;
}
.gallery-editorial-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #07100b;
  color: #fff;
}
.gallery-editorial-media,
.gallery-editorial-overlay,
.gallery-editorial-frame { position: absolute; inset: 0; }
.gallery-editorial-media img {
  width: 100%;
  height: 112%;
  margin-top: -6%;
  object-fit: cover;
  transform: translate3d(0,calc(var(--editorial-progress) * 46px),0) scale(1.035);
  will-change: transform;
}
.gallery-editorial-overlay {
  background:
    linear-gradient(90deg,rgba(4,10,6,.76) 0%,rgba(4,10,6,.36) 44%,rgba(4,10,6,.08) 72%),
    linear-gradient(0deg,rgba(4,10,6,.68) 0%,transparent 58%);
}
.gallery-editorial-panel:nth-child(even) .gallery-editorial-overlay {
  background:
    linear-gradient(270deg,rgba(4,10,6,.76) 0%,rgba(4,10,6,.34) 44%,rgba(4,10,6,.08) 72%),
    linear-gradient(0deg,rgba(4,10,6,.68) 0%,transparent 58%);
}
.gallery-editorial-frame {
  inset: 28px;
  border: 1px solid rgba(255,255,255,.48);
  pointer-events: none;
}
.gallery-editorial-content {
  position: absolute;
  z-index: 2;
  left: clamp(34px,7vw,118px);
  bottom: clamp(46px,10vh,108px);
  width: min(650px,calc(100% - 68px));
  transform: translate3d(0,calc(var(--editorial-progress) * -20px),0);
  will-change: transform;
}
.gallery-editorial-panel:nth-child(even) .gallery-editorial-content {
  left: auto;
  right: clamp(34px,7vw,118px);
  text-align: right;
}
.gallery-editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-soft);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.gallery-editorial-kicker::before { content:''; width: 38px; height: 1px; background: currentColor; }
.gallery-editorial-panel:nth-child(even) .gallery-editorial-kicker { flex-direction: row-reverse; }
.gallery-editorial-title {
  display: block;
  margin: 15px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem,8vw,7.8rem);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.055em;
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.gallery-editorial-copy {
  display: block;
  max-width: 480px;
  color: rgba(255,255,255,.84);
  font-size: clamp(.96rem,1.35vw,1.12rem);
  line-height: 1.7;
}
.gallery-editorial-panel:nth-child(even) .gallery-editorial-copy { margin-left: auto; }
.gallery-editorial-index {
  position: absolute;
  right: 48px;
  top: 44px;
  z-index: 2;
  color: rgba(255,255,255,.66);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .12em;
}
.gallery-editorial-panel:nth-child(even) .gallery-editorial-index { right: auto; left: 48px; }
.gallery-editorial-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-editorial-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -8px; }

.gallery-cuts {
  padding: 112px max(24px,calc((100vw - 1180px)/2));
  background: var(--bg);
}
.gallery-cuts .gallery-group-heading { margin-bottom: 42px; }
.gallery-cuts .gallery-grid {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 22px;
}
.gallery-cuts .gallery-card { grid-column: span 4; border-radius: 0; background: transparent; border: 0; overflow: visible; }
.gallery-cuts .gallery-card:nth-child(1),
.gallery-cuts .gallery-card:nth-child(5) { grid-column: span 7; }
.gallery-cuts .gallery-card:nth-child(2),
.gallery-cuts .gallery-card:nth-child(6) { grid-column: span 5; }
.gallery-cuts .gallery-card button { width: 100%; border: 0; border-radius: 0; background: transparent; text-align: left; }
.gallery-cuts .gallery-image-wrap { aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; }
.gallery-cuts .gallery-card:nth-child(1) .gallery-image-wrap,
.gallery-cuts .gallery-card:nth-child(5) .gallery-image-wrap { aspect-ratio: 16/10; }
.gallery-cuts .gallery-image-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .5s ease; }
.gallery-cuts .gallery-card:hover img { transform:scale(1.035); filter:brightness(1.06); }
.gallery-cuts .gallery-card-title { padding:14px 0 0; font-size:1rem; color:var(--text); }

@media (max-width: 760px) {
  .gallery-page .gallery-content { padding-top: 62px; }
  .gallery-page .gallery-intro-wrap { margin-bottom: 36px; }
  .gallery-editorial-panel { min-height: 105vh; }
  .gallery-editorial-sticky { min-height: 540px; }
  .gallery-editorial-frame { inset: 14px; }
  .gallery-editorial-overlay,
  .gallery-editorial-panel:nth-child(even) .gallery-editorial-overlay {
    background: linear-gradient(0deg,rgba(4,10,6,.88) 0%,rgba(4,10,6,.22) 68%);
  }
  .gallery-editorial-content,
  .gallery-editorial-panel:nth-child(even) .gallery-editorial-content {
    left: 28px;
    right: auto;
    bottom: 48px;
    width: calc(100% - 56px);
    text-align: left;
  }
  .gallery-editorial-panel:nth-child(even) .gallery-editorial-copy { margin-left: 0; }
  .gallery-editorial-panel:nth-child(even) .gallery-editorial-kicker { flex-direction: row; }
  .gallery-editorial-index,
  .gallery-editorial-panel:nth-child(even) .gallery-editorial-index { top: 29px; right: 30px; left: auto; }
  .gallery-editorial-title { font-size: clamp(3rem,15vw,5rem); }
  .gallery-cuts { padding: 78px 20px 90px; }
  .gallery-cuts .gallery-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-cuts .gallery-card,
  .gallery-cuts .gallery-card:nth-child(n) { grid-column: auto; }
  .gallery-cuts .gallery-image-wrap,
  .gallery-cuts .gallery-card:nth-child(n) .gallery-image-wrap { aspect-ratio: 4/5; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-editorial-media img,
  .gallery-editorial-content { transform:none !important; }
}

/* Galleria v27 — compatta, elegante e mobile-first */
.gallery-page .gallery-content {
  padding: 54px 0 78px;
  overflow: hidden;
}
.gallery-page .gallery-intro-wrap {
  margin-bottom: 28px;
}
.gallery-page .gallery-intro {
  align-items: end;
}
.gallery-compact-featured {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 68px;
}
.gallery-compact-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.gallery-compact-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #07100b;
  aspect-ratio: 5 / 4;
}
.gallery-compact-item button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: zoom-in;
  text-align: left;
}
.gallery-compact-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.gallery-compact-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(3,8,5,.78) 0%, rgba(3,8,5,.10) 58%);
}
.gallery-compact-item button:hover img { transform: scale(1.035); filter: brightness(1.04); }
.gallery-compact-copy {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 4px;
}
.gallery-compact-copy small {
  color: var(--accent-soft);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gallery-compact-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 600;
  line-height: 1;
}
.gallery-compact-dots {
  display: none;
}
.gallery-cuts {
  padding: 0 max(20px, calc((100vw - 1180px)/2));
  background: var(--bg);
}
.gallery-cuts .gallery-group-heading {
  margin-bottom: 24px;
}
.gallery-cuts .gallery-group-heading h2 {
  margin-top: 6px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}
.gallery-cuts .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-cuts .gallery-card,
.gallery-cuts .gallery-card:nth-child(n) {
  grid-column: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.gallery-cuts .gallery-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.gallery-cuts .gallery-image-wrap,
.gallery-cuts .gallery-card:nth-child(n) .gallery-image-wrap {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
}
.gallery-cuts .gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.gallery-cuts .gallery-card:hover img { transform: scale(1.035); }
.gallery-cuts .gallery-card-title {
  display: block;
  padding: 10px 2px 0;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.3;
}
.gallery-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.75,.25,1);
}
.gallery-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .gallery-page .gallery-content { padding: 42px 0 62px; }
  .gallery-page .gallery-intro-wrap {
    width: calc(100% - 32px);
    margin-bottom: 22px;
  }
  .gallery-page .gallery-intro {
    display: block;
  }
  .gallery-page .gallery-intro .section-subtitle {
    margin-top: 10px;
    font-size: .9rem;
    line-height: 1.55;
  }
  .gallery-compact-featured {
    width: 100%;
    margin-bottom: 46px;
  }
  .gallery-compact-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 16px 4px;
    overscroll-behavior-inline: contain;
  }
  .gallery-compact-track::-webkit-scrollbar { display: none; }
  .gallery-compact-item {
    flex: 0 0 calc(100vw - 46px);
    aspect-ratio: 4 / 5;
    max-height: 520px;
    border-radius: 16px;
    scroll-snap-align: center;
  }
  .gallery-compact-copy {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }
  .gallery-compact-copy strong {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }
  .gallery-compact-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
  }
  .gallery-compact-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 24%, transparent);
    transition: width .25s ease, border-radius .25s ease, background .25s ease;
  }
  .gallery-compact-dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: var(--accent);
  }
  .gallery-cuts {
    padding: 0 16px;
  }
  .gallery-cuts .gallery-group-heading {
    margin-bottom: 18px;
  }
  .gallery-cuts .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .gallery-cuts .gallery-image-wrap,
  .gallery-cuts .gallery-card:nth-child(n) .gallery-image-wrap {
    border-radius: 12px;
  }
  .gallery-cuts .gallery-card-title {
    padding-top: 8px;
    font-size: .82rem;
  }
}

@media (max-width: 380px) {
  .gallery-compact-item { flex-basis: calc(100vw - 36px); }
  .gallery-cuts { padding-inline: 12px; }
  .gallery-cuts .gallery-grid { gap-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-compact-item img,
  .gallery-cuts .gallery-image-wrap img,
  .gallery-reveal { transition: none !important; transform: none !important; }
  .gallery-reveal { opacity: 1; }
}

/* v28: immagini della galleria solo visuali, senza apertura fullscreen */
.gallery-card-static{width:100%;display:block;color:var(--text);text-align:left}
.gallery-compact-static{position:relative;display:block;width:100%;height:100%;overflow:hidden}
.gallery-compact-static>img{display:block;width:100%;height:100%;object-fit:cover}

/* v30 — intestazione galleria compatta e pulita */
.gallery-page .gallery-hero {
  min-height: 0;
  padding: 48px 24px 52px;
  background: linear-gradient(180deg, #082417 0%, #061b12 100%);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.gallery-page .gallery-hero::after {
  content: none;
  display: none;
}
.gallery-hero-inner {
  width: min(100%, 680px);
}
.gallery-hero-inner img {
  width: 82px;
  height: 82px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: none;
}
.gallery-hero-inner .section-eyebrow {
  font-size: .68rem;
}
.gallery-hero-inner h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.45rem, 5.2vw, 4.25rem);
  line-height: 1;
  text-shadow: none;
}
.gallery-hero-inner p {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.55;
}
.gallery-hero-inner .btn.lg {
  min-height: 46px;
  padding: 12px 22px;
}

@media (max-width: 720px) {
  .gallery-page .gallery-hero {
    min-height: 0;
    padding: 34px 18px 38px;
  }
  .gallery-hero-inner img {
    width: 68px;
    height: 68px;
    margin-bottom: 11px;
  }
  .gallery-hero-inner h1 {
    margin: 7px 0 10px;
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
  .gallery-hero-inner p {
    margin-bottom: 17px;
    font-size: .9rem;
    line-height: 1.5;
  }
  .gallery-hero-inner .btn.lg {
    width: auto;
    min-height: 44px;
    padding: 11px 18px;
    font-size: .76rem;
  }
}


/* v33 — rivenditore ufficiale */
.gallery-products { padding: 0 16px 18px; }
.official-products-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.official-product-card {
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, #0c1710);
}
.official-product-logo {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 10px;
  border-radius: 12px;
  background: #f4f2ea;
  overflow: hidden;
}
.official-product-logo img { display:block; width:100%; max-width:280px; max-height:105px; object-fit:contain; }
.official-product-card p { margin:0; color:var(--text-soft); font-size:.9rem; }
.official-product-card strong { color:var(--text); }
.mezzalama-brand { background:#111311; }
@media (max-width: 640px) {
  .gallery-products { padding-inline: 16px; }
  .official-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .official-product-card { min-height: 168px; padding: 14px; gap: 10px; }
  .official-product-logo { min-height: 82px; padding: 8px; }
  .official-product-logo img { max-height: 72px; }
  .official-product-card p { font-size:.78rem; line-height:1.4; }
}


/* v35 — prodotti sopra l'introduzione della galleria */
.gallery-products-top {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 34px;
}
.gallery-products-top .gallery-products { padding: 0; }
.gallery-products-top .gallery-group-heading { margin-bottom: 18px; }
@media (max-width: 640px) {
  .gallery-products-top {
    width: calc(100% - 24px);
    margin-bottom: 26px;
  }
}
