/* Font di sistema: elimina una richiesta bloccante e migliora il caricamento mobile. */

:root {
  color-scheme: light;
  --green: #0b3d2e;
  --green-deep: #062419;
  --cream: #f7f3e8;
  --red: #c1272d;
  --blue: #1b4b7a;
  --ink: #1a1a1a;
  --muted: #60635e;
  --paper: rgba(255, 255, 255, .78);
  --paper-strong: rgba(255, 255, 255, .92);
  --glass: rgba(255, 255, 255, .54);
  --glass-dark: rgba(7, 31, 22, .74);
  --line: rgba(11, 61, 46, .13);
  --shadow: 0 18px 60px rgba(11, 61, 46, .13);
  --shadow-deep: 0 26px 70px rgba(2, 21, 14, .26);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #f7f3e8;
  --muted: #bac6bd;
  --paper: rgba(12, 35, 26, .8);
  --paper-strong: rgba(13, 42, 31, .94);
  --glass: rgba(18, 50, 38, .68);
  --glass-dark: rgba(4, 21, 14, .8);
  --line: rgba(236, 247, 238, .14);
  --shadow: 0 22px 70px rgba(0, 0, 0, .34);
  --shadow-deep: 0 30px 90px rgba(0, 0, 0, .52);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: rgba(193, 39, 45, .24); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.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; }
.page { min-height: 100vh; overflow: hidden; position: relative; }
.page::before, .page::after { content: ''; position: absolute; z-index: -1; width: 42rem; height: 42rem; border-radius: 50%; filter: blur(34px); pointer-events: none; opacity: .34; }
.page::before { left: -22rem; top: 5rem; background: #8fc07a; }
.page::after { right: -25rem; top: 34rem; background: #e89c79; }
:root[data-theme='dark'] .page { background: radial-gradient(circle at 25% 0%, #16513b 0%, transparent 35%), radial-gradient(circle at 93% 12%, rgba(27, 75, 122, .36), transparent 32%), #061e15; }
:root[data-theme='dark'] .page::before { background: #0b6a4b; opacity: .2; }
:root[data-theme='dark'] .page::after { background: #c1272d; opacity: .13; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 98px 0; }
.section-tight { padding: 42px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 15px; color: var(--red); font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 20px; height: 3px; border-radius: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.025em; line-height: .92; }
h1 { font-size: clamp(3.6rem, 8vw, 7.8rem); max-width: 11ch; margin-bottom: 25px; }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 17px; }
h3 { font-size: 1.8rem; margin-bottom: 8px; }
.lead { max-width: 57ch; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.glass { background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(19px) saturate(150%); -webkit-backdrop-filter: blur(19px) saturate(150%); }
.glass-dark { background: var(--glass-dark); border: 1px solid rgba(255,255,255,.13); box-shadow: var(--shadow-deep); backdrop-filter: blur(20px) saturate(145%); -webkit-backdrop-filter: blur(20px) saturate(145%); }
.surface { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }

.topbar { position: sticky; top: 0; z-index: 50; padding: 17px 0; }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 12px 8px 18px; border-radius: 19px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 170px; }
.brand img { display: block; width: 164px; height: 57px; object-fit: contain; object-position: left center; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .13)); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 20px; flex: 1; }
.nav-links a { color: var(--muted); font-size: .88rem; font-weight: 700; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.language-select { width: 58px; border: 0; color: var(--ink); background: transparent; font-size: .78rem; font-weight: 800; outline: none; }
.theme-button, .icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.25); font-weight: 800; transition: transform .2s ease, background .2s ease; }
.theme-button:hover, .icon-button:hover { transform: translateY(-2px); background: var(--paper-strong); }
.preferences-dock { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 7px; min-height: 52px; padding: 6px 7px 6px 11px; border-radius: 17px; color: var(--ink); background: var(--glass-dark); box-shadow: var(--shadow-deep); }
.preferences-dock .preferences-icon { font-size: .9rem; filter: saturate(.85); }
.preferences-dock .preferences-language { width: 45px; color: #f7f3e8; background: transparent; }
.preferences-dock .preferences-language option { color: #1a1a1a; background: #f7f3e8; }
.preferences-divider { width: 1px; height: 25px; background: rgba(247,243,232,.22); }
.preferences-dock .preferences-theme { width: 36px; height: 36px; border-color: rgba(247,243,232,.18); color: #f7f3e8; background: rgba(255,255,255,.09); }
.preferences-dock .preferences-theme:hover { background: rgba(255,255,255,.18); }
.nav-toggle { display: none; width: 42px; height: 40px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-strong); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.tour-launcher { position: fixed; z-index: 89; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 7px; min-height: 52px; padding: 7px 14px; border: 1px solid rgba(247,243,232,.15); border-radius: 17px; color: #f7f3e8; background: var(--glass-dark); box-shadow: var(--shadow-deep); font-weight: 800; cursor: pointer; }.tour-launcher span { color: #f6c453; }
.tour-overlay { position: fixed; z-index: 500; inset: 0; background: rgba(1, 12, 8, .78); backdrop-filter: blur(3px); }.tour-spotlight { position: fixed; z-index: 501; border: 2px solid #f6c453; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(1,12,8,.13), 0 0 0 5px rgba(246,196,83,.23); pointer-events: none; transition: all .28s ease; }.tour-card { position: fixed; z-index: 502; width: min(310px, calc(100vw - 32px)); padding: 20px; border: 1px solid rgba(246,196,83,.52); border-radius: 18px; background: var(--paper-strong); box-shadow: var(--shadow-deep); }.tour-card h2 { margin: 4px 0 8px; font-size: 2.2rem; }.tour-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }.tour-card > div, .tour-intro-card > div { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:17px; }.tour-count { color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }.tour-skip, .tour-direct { border:0; color:var(--muted); background:transparent; font-weight:800; cursor:pointer; }.tour-intro-card { display:none; position:fixed; z-index:503; top:50%; left:50%; width:min(410px,calc(100vw - 32px)); padding:30px; border:1px solid rgba(246,196,83,.52); border-radius:24px; background:var(--paper-strong); box-shadow:var(--shadow-deep); transform:translate(-50%,-50%); text-align:center; }.tour-intro-card > span { color:var(--red); font-weight:900; letter-spacing:.06em; text-transform:uppercase; font-size:.73rem; }.tour-intro-card h2 { margin:10px 0; font-size:3rem; line-height:.9; }.tour-intro-card p { margin:0; color:var(--muted); line-height:1.5; }.tour-intro-card > div { justify-content:center; }.tour-intro .tour-card, .tour-intro .tour-spotlight { display:none; }.tour-intro .tour-intro-card { display:block; }.tour-active { overflow:hidden; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.article-card > img, .article-placeholder { width: 100%; height: 190px; object-fit: cover; background: linear-gradient(135deg, var(--green), var(--blue)); }
.article-placeholder { display: grid; place-items: center; color: #f7f3e8; font-size: 2rem; }
.article-card-copy { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.article-card h2 { margin: 3px 0 9px; font-size: 1.24rem; }
.article-card p { margin: 0; color: var(--muted); }
.article-card details { margin-top: auto; padding-top: 16px; }
.article-card summary { cursor: pointer; color: var(--red); font-weight: 800; }
.article-card details p { margin-top: 12px; white-space: pre-line; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 13px; color: #fff; background: var(--red); box-shadow: 0 10px 22px rgba(193, 39, 45, .25); font-size: .88rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(193, 39, 45, .34); }
.button:disabled { cursor: wait; transform: none; opacity: .62; }
.button-secondary { color: var(--green); background: rgba(255,255,255,.7); border-color: rgba(11, 61, 46, .16); box-shadow: none; }
:root[data-theme='dark'] .button-secondary { color: var(--cream); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.button-secondary:hover { box-shadow: var(--shadow); }
.button-blue { background: var(--blue); box-shadow: 0 10px 22px rgba(27, 75, 122, .24); }
.button-danger { color: var(--red); background: transparent; border-color: rgba(193,39,45,.35); box-shadow: none; }
.button-compact { min-height: 37px; padding: 0 12px; border-radius: 10px; font-size: .78rem; }

.home-hero { padding: 44px 0 76px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr); align-items: center; gap: 34px; }
.hero-copy { padding: 44px 0; }
.hero-copy .lead { margin-bottom: 28px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); color: var(--muted); font-size: .76rem; font-weight: 700; }
.hero-chip::before { content: '✓'; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(11, 61, 46, .11); color: var(--green); font-size: .68rem; }

.booking-panel { position: relative; padding: 24px; border-radius: var(--radius-xl); overflow: hidden; }
.booking-panel::after { content: ''; position: absolute; right: -45px; top: -62px; width: 150px; height: 150px; border: 17px solid rgba(193,39,45,.13); border-radius: 50%; pointer-events: none; }
.booking-panel-head { position: relative; z-index: 1; margin-bottom: 20px; }
.booking-panel-head h2 { font-size: 2.35rem; margin-bottom: 7px; }
.booking-panel-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .form-label { color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea, .control { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: rgba(255,255,255,.48); transition: border .2s ease, box-shadow .2s ease, background .2s ease; }
.field textarea { min-height: 90px; padding: 12px 13px; resize: vertical; }
:root[data-theme='dark'] .field input, :root[data-theme='dark'] .field select, :root[data-theme='dark'] .field textarea, :root[data-theme='dark'] .control { background: rgba(255,255,255,.055); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(193,39,45,.7); box-shadow: 0 0 0 4px rgba(193,39,45,.11); }
.field input[type='file'] { padding: 10px; min-height: auto; font-size: .78rem; }
.field input[type='checkbox'] { width: 18px; min-height: 18px; accent-color: var(--red); }
.booking-total { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin: 18px 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-total small { display: block; color: var(--muted); font-size: .75rem; }
.booking-total strong { color: var(--green); font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 1; }
:root[data-theme='dark'] .booking-total strong { color: #9ce9b6; }
.booking-breakdown { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .72rem; text-align: right; }

.score-stage { margin-top: 46px; min-height: 245px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(130deg, #062e21, #0e5940 54%, #062c20); box-shadow: var(--shadow-deep); }
.score-stage::before { content: ''; position: absolute; inset: 18px 7%; border: 2px solid rgba(255,255,255,.26); border-radius: 999px; }
.score-stage::after { content: ''; position: absolute; inset: 18px 50%; border-left: 2px solid rgba(255,255,255,.26); }
.pitch-lines { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 70px, rgba(255,255,255,.03) 70px 140px); }
.foosbar { position: absolute; width: 120%; height: 12px; left: -10%; border-radius: 20px; background: linear-gradient(90deg, #bfc5c1, #fff, #858e8a, #e5ece5); box-shadow: 0 6px 12px rgba(0,0,0,.48); transform: rotate(-6deg); }
.foosbar.top { top: 40px; animation: slide-bar-one 8s ease-in-out infinite alternate; }
.foosbar.bottom { bottom: 48px; transform: rotate(5deg); animation: slide-bar-two 7s ease-in-out infinite alternate; }
.players { position: absolute; display: flex; gap: 35px; }
.players.top { top: 25px; left: 17%; }
.players.bottom { bottom: 27px; right: 16%; }
.player { width: 32px; height: 57px; position: relative; border-radius: 12px 12px 7px 7px; background: var(--red); box-shadow: inset -7px 0 0 rgba(0,0,0,.17), 0 6px 9px rgba(0,0,0,.27); }
.player::before { content: ''; position: absolute; top: -17px; left: 7px; width: 18px; height: 18px; border-radius: 50%; background: #f7c48f; }
.players.blue .player, .players.bottom .player { background: #1f65a4; }
.ball { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 30% 28%, #fff 0 17%, #c8c9c5 19% 43%, #212421 45%); box-shadow: 0 6px 14px rgba(0,0,0,.46); animation: ball-rush 5.2s cubic-bezier(.55,.04,.39,.97) infinite; }
.stage-copy { position: relative; z-index: 2; max-width: 350px; padding: 20px; color: #fff; text-align: center; text-shadow: 0 2px 9px rgba(0,0,0,.5); }
.stage-copy .eyebrow { color: #f4c850; justify-content: center; }
.stage-copy h2 { margin-bottom: 9px; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.stage-copy p { margin: 0; color: rgba(255,255,255,.82); font-size: .88rem; line-height: 1.55; }
@keyframes ball-rush { 0%, 6% { transform: translate(-220px, 70px) scale(.8); opacity: 0; } 15% { opacity: 1; } 42% { transform: translate(140px, -60px) scale(1.05); } 68% { transform: translate(-20px, 55px) scale(.94); } 90% { opacity: 1; } 100% { transform: translate(250px, -88px) scale(.75); opacity: 0; } }
@keyframes slide-bar-one { from { translate: -14px 0; } to { translate: 28px 0; } }
@keyframes slide-bar-two { from { translate: 22px 0; } to { translate: -24px 0; } }

.section-heading { max-width: 660px; margin-bottom: 38px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { min-height: 225px; padding: 26px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.step-number { display: block; color: rgba(193,39,45,.72); font-family: 'Barlow Condensed', sans-serif; font-size: 4.9rem; font-weight: 800; line-height: .75; margin-bottom: 24px; }
.step-card h3 { font-size: 2rem; }
.step-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.split-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.callout { min-height: 305px; position: relative; padding: 38px; border-radius: var(--radius-xl); overflow: hidden; }
.callout h2 { max-width: 11ch; font-size: clamp(2.4rem, 4vw, 3.7rem); }
.callout p { max-width: 46ch; color: var(--muted); line-height: 1.65; }
.callout-red { color: #fff; background: linear-gradient(135deg, #a41d27, #d43a3b); }
.callout-red p { color: rgba(255,255,255,.84); }
.callout-red::after { content: '⚽'; position: absolute; right: -20px; bottom: -60px; font-size: 16rem; opacity: .16; transform: rotate(-16deg); }
.callout-green { background: linear-gradient(135deg, #dbe8ce, #f8f2e5); }
:root[data-theme='dark'] .callout-green { background: linear-gradient(135deg, #103e2d, #0b2c21); }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.faq { padding: 22px; border-radius: var(--radius-md); }
.faq h3 { font-size: 1.45rem; }
.faq p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.footer { margin-top: 40px; padding: 35px 0 45px; color: rgba(247,243,232,.76); background: var(--green-deep); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand img { filter: drop-shadow(0 5px 7px rgba(0,0,0,.26)); }
.footer p { margin: 0; max-width: 55ch; font-size: .8rem; line-height: 1.5; }

dialog { max-width: min(470px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 25px; overflow: hidden; color: var(--ink); background: var(--paper-strong); box-shadow: var(--shadow-deep); }
dialog::backdrop { background: rgba(1, 18, 12, .62); backdrop-filter: blur(5px); }
.promo-card { min-height: 365px; padding: 33px; position: relative; overflow: hidden; background: linear-gradient(135deg, #093e2e, #0d6545); color: #fff; }
.promo-card::after { content: '⚽'; position: absolute; right: -64px; bottom: -71px; font-size: 16rem; opacity: .14; }
.promo-close { position: absolute; z-index: 1; top: 15px; right: 15px; color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.11); }
.promo-badge { display: inline-block; margin-bottom: 19px; padding: 6px 10px; border-radius: 999px; color: #173223; background: #f3c646; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.promo-card h2 { position: relative; z-index: 1; max-width: 9ch; font-size: 4rem; }
.promo-card p { position: relative; z-index: 1; max-width: 33ch; color: rgba(255,255,255,.82); line-height: 1.55; }
.promo-card .button { position: relative; z-index: 1; color: #1a1a1a; background: #f3c646; box-shadow: none; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr); }
.auth-art { padding: 26px min(8vw, 115px); position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 25% 17%, #207452, transparent 34%), linear-gradient(135deg, #041d14, #0c4d37); }
.auth-art .brand { margin-bottom: clamp(60px, 16vh, 175px); }
.auth-art .brand img { width: 220px; height: 80px; }
.auth-art h1 { max-width: 8ch; font-size: clamp(4rem, 7vw, 7rem); }
.auth-art p { max-width: 45ch; color: rgba(255,255,255,.78); line-height: 1.7; }
.auth-art::after { content: ''; position: absolute; bottom: -12%; right: -9%; width: 430px; height: 430px; border: 32px solid rgba(193,39,45,.65); border-radius: 50%; }
.auth-form-side { display: grid; place-items: center; padding: 34px; background: var(--cream); }
:root[data-theme='dark'] .auth-form-side { background: #07241a; }
.auth-box { width: min(430px, 100%); padding: 30px; border-radius: var(--radius-xl); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; margin-bottom: 28px; border-radius: 14px; background: rgba(11,61,46,.08); }
.auth-tab { min-height: 43px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: .8rem; font-weight: 800; }
.auth-tab.is-active { color: #fff; background: var(--green); box-shadow: 0 7px 14px rgba(11,61,46,.2); }
.auth-box h2 { margin-bottom: 8px; font-size: 3rem; }
.auth-box p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.auth-form { display: grid; gap: 15px; margin-top: 24px; }
.auth-form .button { width: 100%; margin-top: 4px; }
.demo-hint { margin-top: 18px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: .77rem; line-height: 1.55; }
.demo-hint strong { display: block; color: var(--ink); margin-bottom: 3px; }

.dashboard-page { min-height: 100vh; padding: 17px; background: var(--cream); }
:root[data-theme='dark'] .dashboard-page { background: #061f16; }
.dashboard-shell { min-height: calc(100vh - 34px); display: grid; grid-template-columns: 256px minmax(0, 1fr); overflow: hidden; border-radius: 28px; }
.sidebar { display: flex; flex-direction: column; padding: 22px 13px; color: #f7f3e8; background: linear-gradient(165deg, #093d2e, #061f16); }
.sidebar .brand { padding: 0 7px 26px; }
.sidebar .brand img { width: 193px; height: 70px; }
.side-nav { display: grid; gap: 5px; }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; border-radius: 12px; color: rgba(247,243,232,.68); font-size: .85rem; font-weight: 700; transition: color .2s, background .2s; }
.side-link::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .66; }
.side-link:hover, .side-link:focus-visible, .side-link.active { color: #fff; background: rgba(255,255,255,.11); }
.sidebar-spacer { flex: 1; }
.sidebar-user { margin: 18px 7px 6px; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.07); }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--red); font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 800; }
.sidebar-user strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; white-space: nowrap; }
.sidebar-user span { display: block; color: rgba(247,243,232,.57); font-size: .68rem; margin-top: 2px; }
.side-logout { width: 100%; margin-top: 13px; padding: 10px; border: 0; border-radius: 11px; color: rgba(247,243,232,.73); background: transparent; font-size: .78rem; font-weight: 800; text-align: left; }
.side-logout:hover { color: #fff; background: rgba(255,255,255,.08); }
.dashboard-main { min-width: 0; padding: 25px clamp(20px, 3vw, 42px) 48px; background: var(--paper); }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
.dashboard-top h1 { margin: 0; font-size: clamp(2.6rem, 4.6vw, 4.3rem); }
.dashboard-top .eyebrow { margin-bottom: 8px; }
.dashboard-top p { margin: 0; color: var(--muted); font-size: .86rem; }
.dashboard-actions { display: flex; align-items: center; gap: 8px; }
.dashboard-actions .language-select { padding: 0 4px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metric { min-height: 134px; padding: 18px; border-radius: var(--radius-md); position: relative; overflow: hidden; }
.metric::after { content: ''; position: absolute; right: -30px; bottom: -41px; width: 102px; height: 102px; border: 17px solid rgba(11,61,46,.09); border-radius: 50%; }
.metric:nth-child(2)::after, .metric:nth-child(5)::after { border-color: rgba(193,39,45,.1); }
.metric:nth-child(3)::after, .metric:nth-child(6)::after { border-color: rgba(27,75,122,.11); }
.metric small { display: block; position: relative; z-index: 1; color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.metric strong { display: block; position: relative; z-index: 1; margin-top: 18px; color: var(--green); font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; line-height: 1; }
:root[data-theme='dark'] .metric strong { color: #a8edba; }
.dash-section { scroll-margin-top: 24px; margin-top: 43px; }
.dashboard-panel[hidden] { display: none !important; }
.dashboard-panel:not([hidden]) { animation: dashboard-panel-in .24s ease both; }
.dashboard-panel.dash-section { margin-top: 0; }
@keyframes dashboard-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.dash-section-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.dash-section-header h2 { margin: 0; font-size: 2.85rem; }
.dash-section-header p { margin: 0; color: var(--muted); font-size: .82rem; }
.data-card { border-radius: var(--radius-lg); overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .82rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.customer-cell strong { display: block; font-size: .83rem; }
.customer-cell span { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; }
.status-pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 8px; border-radius: 999px; background: rgba(11,61,46,.1); color: var(--green); font-size: .68rem; font-weight: 800; }
.status-richiesta, .status-manutenzione, .status-da_ritirare { color: #a75d06; background: rgba(231,163,54,.15); }
.status-confermata, .status-in_corso, .status-prenotato { color: var(--blue); background: rgba(27,75,122,.13); }
.status-consegnata, .status-completata, .status-disponibile { color: var(--green); background: rgba(11,61,46,.12); }
.status-da_consegnare, .status-in_consegna { color: var(--red); background: rgba(193,39,45,.12); }
:root[data-theme='dark'] .status-pill { color: #bdebc9; background: rgba(116,214,143,.12); }
.status-select { min-width: 145px; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: transparent; font-size: .75rem; }

.management-layout { display: grid; grid-template-columns: minmax(280px, .73fr) minmax(0, 1.27fr); align-items: start; gap: 15px; }
.management-form { padding: 20px; border-radius: var(--radius-lg); }
.management-form h3 { font-size: 2.1rem; }
.comodato-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.comodato-grid .management-form { min-height: 100%; }
.comodato-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.form-hint { margin: 12px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.management-form .form-grid { margin-top: 17px; }
.form-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 17px; }
.inventory-grid, .point-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.inventory-card, .point-card { min-height: 186px; padding: 16px; border-radius: var(--radius-md); position: relative; overflow: hidden; }
.inventory-card { display: grid; grid-template-columns: 93px minmax(0,1fr); gap: 13px; }
.asset-photo { width: 93px; height: 143px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #0b3d2e, #176248); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 800; }
.asset-photo img { width: 100%; height: 100%; object-fit: cover; }
.asset-card-main { min-width: 0; }
.asset-card-main h3, .point-card h3 { margin-bottom: 4px; font-size: 1.55rem; }
.asset-card-main p, .point-card p { margin-bottom: 10px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.asset-meta, .point-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; color: var(--muted); font-size: .7rem; }
.asset-card-actions, .point-card-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.point-card { min-height: 175px; }
.point-card::after { content: ''; position: absolute; right: -26px; top: -37px; width: 100px; height: 100px; border: 16px solid rgba(27,75,122,.1); border-radius: 50%; }
.point-card > * { position: relative; z-index: 1; }
.point-card .status-pill { margin: 10px 0 0; }
.applications-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.applications-section .dash-section-header h3 { margin: 0; font-size: 2.15rem; }
.inline-check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.settings-form { padding: 23px; border-radius: var(--radius-lg); }
.settings-form .divider { height: 1px; margin: 24px 0; background: var(--line); }
.settings-form h3 { font-size: 2.1rem; }
.price-fields { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 15px; }
.notice { padding: 12px 14px; border-left: 3px solid var(--blue); border-radius: 9px; color: var(--muted); background: rgba(27,75,122,.08); font-size: .78rem; line-height: 1.5; }

.address-field { position: relative; }
.address-suggestions { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow-deep); }
.address-suggestion { width: 100%; display: block; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; font: inherit; font-size: .76rem; line-height: 1.35; text-align: left; }
.address-suggestion:hover, .address-suggestion:focus-visible { color: var(--green); background: rgba(11,61,46,.07); }
.address-empty, .address-attribution { display: block; margin: 0; padding: 10px 13px; color: var(--muted); font-size: .7rem; }
.address-attribution { padding-top: 7px; text-align: right; }
.location-button { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; color: var(--blue); background: transparent; font: inherit; font-size: .72rem; font-weight: 900; cursor: pointer; }
.location-button::before { content: '⌖'; font-size: 1rem; }
.location-button:hover { color: var(--red); }
.location-button:disabled { opacity: .55; cursor: wait; }
.duration-custom { width: 100%; margin-top: 8px; }
.section-cta { display: table; margin: 24px auto 0; }
.hero-page-cta { display: inline-flex; margin-top: 24px; }
.page-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.page-editor-card { padding: 18px; border-radius: var(--radius-md); }
.page-editor-card h3 { margin: 0; font-size: 1.8rem; }
.page-editor-card .form-grid { margin-top: 12px; }

.section-tables { padding-top: 38px; overflow: hidden; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.split-heading .section-heading { margin: 0; }
.text-link { color: var(--green); font-size: .82rem; font-weight: 900; white-space: nowrap; }
.model-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.model-card { min-height: 290px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease; }
.model-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-deep); }
.model-card-field { height: 112px; position: relative; display: flex; align-items: center; justify-content: space-around; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0b3d2e, #176248); }
.model-card-field::before, .model-card-field::after { content: ''; position: absolute; width: 110%; height: 2px; left: -5%; background: rgba(255,255,255,.43); }
.model-card-field::before { top: 42%; } .model-card-field::after { bottom: 26%; }
.model-card-field span { position: absolute; z-index: 2; font-size: 2rem; animation: ball-float 2.8s ease-in-out infinite; }
.model-card-field i { z-index: 1; width: 17px; height: 43px; border-radius: 9px 9px 4px 4px; background: var(--red); transform: rotate(-18deg); }
.model-navy .model-card-field { background: linear-gradient(135deg, #1b4b7a, #0b3d2e); }
.model-navy .model-card-field i { background: #4b93d4; }
.model-gold .model-card-field { background: linear-gradient(135deg, #845b14, #0b3d2e); }
.model-gold .model-card-field i { background: #f5c451; }
.model-card-copy { padding: 17px; }
.model-tag { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: var(--green); background: rgba(11,61,46,.1); font-size: .63rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.model-card h3 { margin: 10px 0 6px; font-size: 2rem; }
.model-card p { min-height: 40px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.model-card strong, .catalog-bottom strong { display: block; margin-top: 15px; color: var(--green); font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; }
.model-card strong small, .catalog-bottom small { color: var(--muted); font-family: inherit; font-size: .8rem; }
.home-gallery-layer { min-height: 146px; display: grid; grid-template-columns: 1.25fr repeat(4, .75fr); gap: 8px; margin-top: 16px; padding: 8px; border-radius: var(--radius-lg); color: #fff; background: #0b3d2e; overflow: hidden; }
.gallery-layer-copy { display: flex; flex-direction: column; justify-content: end; min-width: 0; padding: 16px; color: #fff; background: linear-gradient(135deg, rgba(193,39,45,.96), #8d151b); border-radius: 13px; }
.gallery-layer-copy span { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.gallery-layer-copy strong { margin-top: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; }
.gallery-layer-image { min-width: 0; overflow: hidden; border-radius: 11px; background: rgba(255,255,255,.1); }
.gallery-layer-image img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; transition: transform .4s ease; }
.gallery-layer-image:hover img { transform: scale(1.1) rotate(1deg); }
@keyframes ball-float { 50% { transform: translate(9px,-7px) rotate(20deg); } }

.public-page { min-height: 72vh; }
.inner-hero { position: relative; overflow: hidden; padding: 102px 0 65px; color: #fff; background: radial-gradient(circle at 72% 18%, rgba(193,39,45,.75), transparent 24%), linear-gradient(135deg, #062d20, #0b3d2e); }
.inner-hero::after { content: '⚽'; position: absolute; right: 8%; bottom: -75px; opacity: .14; font-size: 20rem; transform: rotate(-16deg); }
.inner-hero .container { position: relative; z-index: 1; max-width: 860px; }
.inner-hero h1 { max-width: 760px; margin: 8px 0 12px; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .86; }
.inner-hero p:not(.eyebrow) { max-width: 600px; margin: 0; color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.55; }
.inner-hero-gallery { background: radial-gradient(circle at 78% 15%, rgba(27,75,122,.75), transparent 25%), linear-gradient(135deg, #061f16, #123e64); }
.catalog-grid { display: grid; gap: 19px; }
.catalog-card { min-height: 305px; display: grid; grid-template-columns: minmax(250px,.76fr) minmax(0,1.24fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--paper); box-shadow: var(--shadow); }
.catalog-visual { position: relative; display: grid; place-items: center; min-height: 275px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0b3d2e, #176248); }
.catalog-visual.catalog-image { display: block; background: #0b3d2e; }
.catalog-visual.catalog-image::before, .catalog-visual.catalog-image::after { display: none; }
.catalog-visual.catalog-image img { width: 100%; height: 100%; min-height: 275px; object-fit: cover; }
.catalog-visual::before { content: ''; position: absolute; width: 135%; height: 135%; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; }
.catalog-visual::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.55); }
.catalog-ball { z-index: 2; font-size: 3.6rem; animation: ball-float 2.8s ease-in-out infinite; }
.catalog-handle { position: absolute; z-index: 1; top: 30%; left: -10px; width: 62%; height: 12px; border-radius: 999px; background: rgba(255,255,255,.75); transform: rotate(-18deg); }
.catalog-handle.right { top: auto; right: -10px; bottom: 27%; left: auto; transform: rotate(19deg); }
.catalog-players { position: absolute; z-index: 2; top: 33%; left: 31%; display: flex; gap: 13px; transform: rotate(-18deg); }
.catalog-players i { width: 15px; height: 39px; border-radius: 8px 8px 3px 3px; background: var(--red); }
.model-navy .catalog-visual { background: linear-gradient(135deg, #1b4b7a, #0b3d2e); }.model-navy .catalog-players i { background: #5ba1de; }.model-gold .catalog-visual { background: linear-gradient(135deg, #8c641b, #0b3d2e); }.model-gold .catalog-players i { background: #f4c554; }
.catalog-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px; }.catalog-copy h2 { margin: 10px 0; font-size: 3.4rem; }.catalog-copy p { max-width: 550px; margin: 0; color: var(--muted); line-height: 1.55; }.catalog-bottom { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 15px; }.catalog-bottom strong { margin: 0; }

.public-gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-rows: 112px; gap: 12px; }
.public-gallery-item { position: relative; grid-column: span 4; grid-row: span 2; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-lg); color: #fff; background: #0b3d2e; cursor: zoom-in; box-shadow: var(--shadow); animation: gallery-in .55s both; }
.public-gallery-item:nth-child(3n+2) { grid-row: span 3; }.public-gallery-item:nth-child(4n) { grid-column: span 5; }.public-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }.public-gallery-item:hover img { transform: scale(1.08); filter: brightness(.72); }.public-gallery-item > span { position: absolute; inset: auto 0 0; display: grid; gap: 3px; padding: 38px 15px 15px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.82)); transform: translateY(20px); opacity: .85; transition: transform .3s ease, opacity .3s ease; }.public-gallery-item:hover > span { transform: translateY(0); opacity: 1; }.public-gallery-item small { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.public-gallery-item strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; }.public-gallery-item em { color: rgba(255,255,255,.78); font-size: .72rem; font-style: normal; line-height: 1.35; }@keyframes gallery-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gallery-dialog { position: fixed; max-width: min(940px, calc(100% - 30px)); max-height: min(90vh, 780px); padding: 0; border: 0; border-radius: var(--radius-lg); color: var(--ink); background: var(--paper); box-shadow: var(--shadow-deep); }.gallery-dialog::backdrop { background: rgba(2,18,12,.78); backdrop-filter: blur(5px); }.gallery-dialog img { display: block; width: 100%; max-height: 65vh; object-fit: contain; background: #061f16; }.gallery-dialog div { padding: 18px 22px 23px; }.gallery-dialog h2 { margin: 0 0 7px; font-size: 2.4rem; }.gallery-dialog p { margin: 0; color: var(--muted); line-height: 1.5; }

.about-page { padding-top: 105px; }.about-layout { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); align-items: center; gap: 30px; }.about-mark { min-height: 300px; display: grid; place-items: center; border-radius: var(--radius-xl); color: #f7f3e8; background: linear-gradient(145deg, #0b3d2e, #1b4b7a); font-family: 'Barlow Condensed', sans-serif; font-size: clamp(7rem, 18vw, 13rem); font-weight: 900; letter-spacing: -.08em; line-height: .8; box-shadow: var(--shadow-deep); }.about-mark span { color: var(--red); font-family: sans-serif; font-size: .23em; transform: rotate(18deg); }.about-copy { padding: clamp(25px,4vw,53px); border-radius: var(--radius-xl); }.about-copy h1 { max-width: 750px; margin: 8px 0 18px; font-size: clamp(3.8rem,7vw,6.6rem); line-height: .88; }.about-copy .lead { max-width: 680px; color: var(--muted); line-height: 1.65; }.about-note { margin: 18px 0 25px; color: var(--blue); font-weight: 800; }

.gallery-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }.gallery-admin-card { min-height: 230px; position: relative; overflow: hidden; border-radius: var(--radius-md); }.gallery-admin-card img { width: 100%; height: 130px; object-fit: cover; }.gallery-admin-card > div:not(.gallery-card-actions) { padding: 9px 13px 57px; }.gallery-admin-card h3 { margin: 0; font-size: 1.5rem; }.gallery-admin-card p { margin: 4px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.35; }.gallery-card-actions { position: absolute; right: 11px; bottom: 11px; display: flex; gap: 6px; }

.point-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr); gap: 14px; }
.point-welcome { min-height: 168px; padding: 23px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, #0a3d2d, #1b4b7a); overflow: hidden; position: relative; }
.point-welcome::after { content: '⚽'; position: absolute; font-size: 10rem; right: -33px; bottom: -53px; opacity: .15; }
.point-welcome h2 { position: relative; z-index: 1; margin-bottom: 7px; font-size: 3rem; }
.point-welcome p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.81); font-size: .85rem; }
.point-profile { padding: 20px; border-radius: var(--radius-lg); }
.point-profile h3 { font-size: 2rem; }
.point-profile p { margin: 0 0 7px; color: var(--muted); font-size: .8rem; }
.point-profile strong { color: var(--green); font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; }
:root[data-theme='dark'] .point-profile strong { color: #a8edba; }

.empty { padding: 34px 20px; color: var(--muted); font-size: .85rem; text-align: center; }
.tour-overlay { background: transparent; backdrop-filter: none; }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(410px, calc(100% - 40px)); padding: 14px 16px; border-radius: 14px; color: #fff; background: var(--green); box-shadow: var(--shadow-deep); font-size: .85rem; font-weight: 700; animation: toast-in .25s ease both; }
.toast-error { background: var(--red); }
@keyframes toast-in { from { transform: translateY(15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 980px) {
  .nav { flex-wrap: wrap; }
  .nav-links { width: 100%; order: 3; display: flex; gap: 14px; overflow-x: auto; padding: 7px 3px 2px; scrollbar-width: none; white-space: nowrap; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; font-size: .72rem; }
  .hero-grid, .auth-page, .management-layout, .point-summary, .about-layout, .comodato-grid { grid-template-columns: 1fr; }
  .comodato-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { padding-top: 26px; }
  .auth-art { min-height: 390px; }
  .auth-art .brand { margin-bottom: 55px; }
  .dashboard-shell { grid-template-columns: 210px minmax(0,1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inventory-grid, .point-grid { grid-template-columns: 1fr; }
  .model-showcase { grid-template-columns: 1fr; }
  .home-gallery-layer { grid-template-columns: 1.25fr repeat(3,.75fr); }
  .home-gallery-layer .gallery-layer-image:last-child { display: none; }
  .catalog-card { grid-template-columns: 1fr; }
  .public-gallery-grid { grid-auto-rows: 104px; }
  .gallery-admin-grid { grid-template-columns: 1fr; }
  .page-editor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 26px, 1180px); }
  .topbar { padding: 8px 0; }
  .nav { position:relative; min-height: 58px; padding: 6px 8px 6px 11px; flex-wrap:nowrap; }
  .brand { min-width: 135px; }
  .brand img { width: 135px; height: 46px; }
  .nav-actions .button { display: none; }
  .preferences-dock { right: 13px; bottom: 13px; min-height: 47px; padding: 5px 6px 5px 9px; border-radius: 15px; }
  .article-grid { grid-template-columns: 1fr; }
  .nav-toggle { display:block; margin-left:auto; }.nav-menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }.nav-menu-open .nav-toggle span:nth-child(2) { opacity:0; }.nav-menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }.nav-links { display:none; position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:55; width:auto; max-height:calc(100vh - 88px); padding:9px; overflow-y:auto; border:1px solid var(--line); border-radius:18px; background:var(--paper-strong); box-shadow:var(--shadow-deep); }.nav-menu-open .nav-links { display:grid; }.nav-links a { min-height:43px; display:flex; align-items:center; padding:0 12px; border-radius:11px; font-size:.9rem; white-space:normal; }.nav-links a:hover { background:rgba(193,39,45,.08); }
  .tour-launcher { left:13px; bottom:13px; min-height:47px; border-radius:15px; }.tour-card { padding:17px; }.tour-card h2 { font-size:1.9rem; }
  .home-hero { padding-top: 19px; }
  h1 { font-size: clamp(3.4rem, 17vw, 5.1rem); }
  .hero-grid { gap: 12px; }
  .booking-panel { padding: 18px; }
  .form-grid, .split-callout, .steps, .faq-grid { grid-template-columns: 1fr; }
  .booking-total { grid-template-columns: 1fr; }
  .booking-breakdown { justify-content: flex-start; text-align: left; }
  .section { padding: 63px 0; }
  .split-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-tables { padding-top: 26px; }
  .home-gallery-layer { min-height: 128px; grid-template-columns: 1.3fr repeat(2,.7fr); }.home-gallery-layer .gallery-layer-image:nth-last-child(-n+2) { display: none; }
  .inner-hero { padding: 76px 0 49px; }.inner-hero h1 { font-size: 4.5rem; }
  .catalog-copy { padding: 22px; }.catalog-copy h2 { font-size: 2.8rem; }.catalog-bottom { align-items: flex-start; flex-direction: column; }.catalog-bottom .button { width: 100%; text-align: center; }
  .public-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 130px; gap: 9px; }.public-gallery-item, .public-gallery-item:nth-child(4n) { grid-column: span 1; grid-row: span 2; }.public-gallery-item:nth-child(3n+2) { grid-row: span 3; }.public-gallery-item > span { transform: none; opacity: 1; }
  .about-page { padding-top: 66px; }.about-mark { min-height: 190px; }.about-copy h1 { font-size: 4.25rem; }
  .score-stage { min-height: 215px; margin-top: 25px; }
  .callout { min-height: 260px; padding: 26px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .auth-page { display: block; }
  .auth-art { min-height: 320px; padding: 20px 25px; }
  .auth-art .brand { margin-bottom: 45px; }
  .auth-art .brand img { width: 180px; }
  .auth-art h1 { font-size: 4rem; }
  .auth-form-side { padding: 19px 13px 30px; }
  .auth-box { padding: 22px; }
  .dashboard-page { padding: 0; }
  .dashboard-shell { min-height: 100vh; display: block; border-radius: 0; }
  .sidebar { padding: 10px 11px; position: sticky; top: 0; z-index: 30; flex-direction: row; align-items: center; gap: 8px; border-radius: 0 0 18px 18px; }
  .sidebar .brand { padding: 0; }
  .sidebar .brand img { width: 130px; height: 48px; }
  .side-nav { width: 100%; order: 3; display: flex; gap: 5px; overflow-x: auto; padding: 3px 0 1px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-link { min-height: 35px; flex: 0 0 auto; padding: 0 9px; font-size: .68rem; white-space: nowrap; }
  .side-link::before { width: 5px; height: 5px; }
  .sidebar-spacer, .sidebar-user { display: none; }
  .side-logout { width: auto; margin: 0 0 0 auto; padding: 7px 9px; font-size: .7rem; }
  .dashboard-main { padding: 25px 13px 42px; }
  .dashboard-top { align-items: flex-start; margin-bottom: 23px; }
  .dashboard-top h1 { font-size: 3rem; }
  .dashboard-actions { gap: 4px; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .metric { min-height: 112px; padding: 13px; }
  .metric strong { margin-top: 14px; font-size: 2.15rem; }
  .dash-section { margin-top: 33px; }
  .dashboard-panel.dash-section { margin-top: 0; }
  .dash-section-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dash-section-header h2 { font-size: 2.55rem; }
  .management-form, .settings-form { padding: 16px; }
  .price-fields { grid-template-columns: 1fr; }
  .inventory-card { grid-template-columns: 76px minmax(0,1fr); }
  .asset-photo { width: 76px; height: 128px; }
}
