/* PCPC — Porto Cervo Padel Club
   Struttura e stile ispirati a un club privato: forest + cream, serif, mono, angoli netti.
   Cambia i colori qui. */
:root {
  --forest: #18362c;
  --forest-2: #0a4a3c;
  --cream: #f4efe7;
  --cream-dark: #e6d9cb;
  --navy: #04204a;
  --burgundy: #38040e;
  --accent: #874046;
  --line: rgba(0, 51, 40, .16);
  --line-light: rgba(252, 251, 247, .22);
  --display: "Fraunces", Georgia, serif;   /* sostituto di Canela */
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1240px;
  --rail: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--cream); color: var(--forest); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
body.lock { overflow: hidden; }
.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.mono { font: 500 11px/1.5 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.page { position: relative; }

/* Binari verticali (linee sottili ai lati, su tutta la pagina) */
.rails { position: absolute; inset: 0; pointer-events: none; z-index: 40; mix-blend-mode: difference; }
.rails::before, .rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.17); left: var(--rail); }
.rails::after { left: auto; right: var(--rail); }

/* Logo: usa img/logo-*.png se presente, altrimenti wordmark */
.logo { display: inline-flex; align-items: center; justify-content: center; }
.logo img { height: 100%; width: auto; }
.logo.has-img .wordmark { display: none; }
.wordmark { font-family: var(--display); line-height: .9; text-align: center; display: inline-block; }
.wordmark .a { display: block; font-style: italic; font-weight: 400; font-size: .52em; }
.wordmark .b { display: block; font-weight: 500; font-size: 1em; letter-spacing: -.01em; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--forest); color: var(--cream); display: grid; place-content: center; justify-items: center; gap: 26px; transition: opacity .8s, visibility .8s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader .logo { height: 170px; font-size: 52px; }
.loader .mono { opacity: .7; letter-spacing: .3em; }
.loader-bar { width: 184px; height: 1px; background: var(--line-light); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--cream); width: 0; animation: load 1.4s ease forwards; }
@keyframes load { to { width: 100%; } }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--cream); transition: transform .5s cubic-bezier(.2,.8,.2,1), background .4s; }
.nav.hide { transform: translateY(-100%); }
.nav.bg { background: var(--forest); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--rail) + 20px); height: 84px; }
/* Header: sull'hero solo wordmark, poi logo completo con icona */
.nav-brand { display: grid; align-items: center; height: 52px; }
.nav-brand > * { grid-area: 1 / 1; justify-self: start; transition: opacity .45s ease, transform .45s ease; }
.nav-wm img { height: 50px; width: auto; }
/* Logo completo dopo l'hero: icona + wordmark separati, così si può ingrandire solo la scritta */
.nav-full { display: flex; align-items: center; gap: 14px; }
.nf-icon { height: 40px; width: auto; }
.nf-wm { height: 50px; width: auto; }
.nav .logo { height: 40px; font-size: 24px; }
.nav-wm { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nav.on-hero .nav-wm { opacity: 1; transform: none; pointer-events: auto; }
.nav.on-hero .nav-full { opacity: 0; transform: translateY(6px); pointer-events: none; }
.nav-r { display: flex; align-items: center; gap: 20px; }
.lang { opacity: .8; }
.lang:hover { opacity: 1; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--cream); color: var(--forest); font: 600 10px var(--mono); }
.burger { width: 40px; height: 40px; display: grid; align-content: center; justify-items: end; gap: 7px; }
.burger i { display: block; height: 1.5px; background: currentColor; width: 24px; transition: width .3s; }
.burger i + i { width: 16px; }
.burger:hover i + i { width: 24px; }

/* Menu a schermo intero */
.menu { position: fixed; inset: 0; z-index: 99; background: var(--forest); color: var(--cream); display: grid; align-content: center; padding: 100px calc(var(--rail) + 30px) 60px; clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
body.menu-open .menu { clip-path: inset(0); }
.menu a.big { display: block; font: 400 clamp(38px, 7vw, 92px)/1.12 var(--display); letter-spacing: -.02em; padding: 4px 0; transition: transform .3s, color .3s; }
.menu a.big:hover { transform: translateX(14px); color: var(--cream-dark); font-style: italic; }
.menu .foot-m { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; opacity: .7; }

/* Instagram laterale + torna su */
.side-ig { position: fixed; left: 6px; top: 50%; transform: translateY(-50%); z-index: 90; width: 34px; height: 34px; display: grid; place-items: center; background: #fff; color: var(--forest); transition: background .25s, color .25s; }
.side-ig:hover { background: var(--forest); color: #fff; }
.side-ig svg { width: 18px; height: 18px; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; background: var(--forest); color: var(--cream); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s, background .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent); }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 32px; font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.btn-cream { background: var(--cream); color: var(--forest); }
.btn-cream:hover { background: var(--burgundy); color: var(--cream); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--accent); }
.btn-line { border: 1px solid currentColor; }
.btn-line:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.on-dark .btn-line:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-sm { padding: 12px 20px; }
.btn:disabled { opacity: .4; pointer-events: none; }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 560px; width: 100%; overflow: hidden; color: var(--cream); background: linear-gradient(180deg, #3d6e78 0%, #2a5560 52%, #8e4a33 52.2%, #b4573a 100%); }
.hero > img, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero .hero-m { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,54,44,.5), rgba(24,54,44,.5) 70%, rgba(24,54,44,.68)); }
.hero-c { position: absolute; inset: 0; z-index: 2; display: grid; align-content: start; justify-items: center; gap: 28px; text-align: center; padding: clamp(96px, 14vh, 140px) 20px 0; }
.hero-c .logo { height: auto; font-size: clamp(60px, 9vw, 130px); }
.hero-c .logo img { height: clamp(110px, 15vw, 190px); }
.hero-c .sub { opacity: .88; letter-spacing: .28em; }
.hero .cue { position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; opacity: .8; }
.hero .cue i { width: 1px; height: 46px; background: var(--cream); transform-origin: top; animation: drop 2.2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Marquee */
.marquee { background: var(--burgundy); color: var(--cream); overflow: hidden; white-space: nowrap; height: 56px; display: flex; align-items: center; }
.marquee .track { display: inline-flex; animation: scroll 38s linear infinite; }
.marquee span { margin: 0 22px; font: 500 12px var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.marquee .star { color: var(--cream); opacity: .7; letter-spacing: 0; }
@keyframes scroll { to { transform: translateX(-50%); } }



/* Utilità sezioni */
section { position: relative; }
.pad { padding: clamp(72px, 10vw, 130px) 0; }
.kicker { display: block; margin-bottom: 20px; opacity: .55; }
.h-xl { font: 400 clamp(38px, 6vw, 84px)/1.02 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.h-lg { font: 400 clamp(30px, 4.4vw, 58px)/1.06 var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.lead { font-size: clamp(15px, 1.35vw, 18px); max-width: 54ch; opacity: .8; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-cream { background: var(--cream); }
.on-dark .kicker { opacity: .6; }

/* Stats */
.stats .row { display: grid; margin: 56px auto 0; border-top: 1px solid var(--line); }
.stats .row.r4 { grid-template-columns: repeat(2, 1fr); }
.stats .row.r3 { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-top: 0; }
.stat { padding: 40px 16px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child, .row.r4 .stat:nth-child(2n+1) { border-left: 0; }
.row.r4 .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat b { display: block; font: 400 clamp(44px, 6vw, 84px)/1 var(--display); }
.stat .mono { display: block; margin-top: 12px; opacity: .6; }
.stat small { display: block; margin-top: 6px; font-size: 12px; opacity: .5; }
.stats .committee { margin: 44px 0 28px; opacity: .6; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Luoghi & eventi */
.loc-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.loc-head p { max-width: 38ch; opacity: .75; font-size: 14px; }
.flyers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Locandine eventi (poster originali PCPC, modificabili da index.html) */
.flyer { position: relative; aspect-ratio: 5/6; overflow: hidden; color: var(--cream); background: var(--forest); isolation: isolate; }
.flyer .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.flyer:hover .bg { transform: scale(1.05); }
.flyer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24,54,44,.82), rgba(24,54,44,.45) 42%, rgba(24,54,44,.9)); }
.flyer.warm::before { background: linear-gradient(180deg, rgba(135,64,70,.75), rgba(24,54,44,.35) 50%, rgba(24,54,44,.92)); }
.flyer.blue::before { background: linear-gradient(180deg, rgba(4,32,74,.8), rgba(4,32,74,.4) 45%, rgba(24,54,44,.9)); }
.flyer.light { color: var(--forest); background: var(--cream-dark); }
.flyer.light::before { background: linear-gradient(180deg, rgba(230,217,203,.94), rgba(230,217,203,.6) 55%, rgba(230,217,203,.92)); }
.flyer .poster { position: absolute; inset: 14px; border: 1px solid currentColor; padding: 22px 20px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flyer .poster > .mono { font-size: 9px; opacity: .85; }
.flyer .f-logo { height: 62px; width: auto; margin-bottom: 14px; }
.flyer h3 { font: 400 clamp(30px, 3.2vw, 44px)/.98 var(--display); letter-spacing: -.01em; text-transform: uppercase; margin: auto 0 6px; }
.flyer h3 em { display: block; font-size: .55em; text-transform: none; font-weight: 400; margin-bottom: 8px; }
.flyer .sub { font-size: 12px; opacity: .85; max-width: 26ch; }
.flyer .date { margin-top: 18px; padding-top: 14px; border-top: 1px solid currentColor; width: 100%; display: flex; justify-content: center; align-items: baseline; gap: 10px; font-family: var(--display); }
.flyer .date b { font-weight: 400; font-size: 40px; line-height: 1; }
.flyer .date span { font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.flyer .venue { margin-top: 8px; }
.flyer .state { position: absolute; top: 24px; right: 24px; padding: 4px 8px; background: var(--cream); color: var(--forest); font: 500 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.flyer.light .state { background: var(--forest); color: var(--cream); }
.more-loc { margin-top: 36px; text-align: center; opacity: .6; }

/* Lifestyle */
.life { padding: clamp(72px, 10vw, 130px) 0; border-bottom: 1px solid var(--line); }
.life .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.life.flip .grid2 > :first-child { order: 2; }
.life .h-lg { margin-bottom: 22px; }
.ticks { list-style: none; margin: 28px 0 34px; border-top: 1px solid var(--line); }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; align-items: baseline; }
.ticks li::before { content: "★"; font-size: 10px; opacity: .6; }
.credits { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; opacity: .5; }
.ph { position: relative; aspect-ratio: 3/4; background: linear-gradient(160deg, #0a4a3c, #7fa89b); overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); opacity: .75; }
.ph.has::after { display: none; }

.archive { padding: clamp(72px, 10vw, 130px) 0; }
.arch-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.arch { position: relative; display: block; overflow: hidden; }
.arch .ph { aspect-ratio: 3/4; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.arch:hover .ph { transform: scale(1.03); }
.arch .cap { padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.arch .cap .mono { opacity: .55; }
.arch .cap h3 { font: 400 20px var(--display); }
.arch .lim { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--cream); color: var(--forest); padding: 5px 9px; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }

/* DJ */
.dj { padding: clamp(72px, 10vw, 130px) 0; overflow: hidden; }
.dj-top { max-width: 760px; margin-bottom: 56px; }
.dj-top h2 { font: 400 italic clamp(44px, 7.4vw, 108px)/1 var(--display); letter-spacing: -.02em; text-transform: none; }
.dj-top p { margin-top: 22px; opacity: .8; max-width: 48ch; }
.dj-stage { position: relative; aspect-ratio: 4/3; max-width: 880px; margin-left: auto; overflow: hidden; background: linear-gradient(160deg, #0a4a3c, #04204a); }
.dj-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dj-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,20,15,.75)); }
.play { position: absolute; z-index: 2; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 14px; }
.play .disc { width: 54px; height: 54px; border-radius: 50%; background: var(--cream); color: var(--forest); display: grid; place-items: center; font-size: 14px; transition: transform .3s; }
.play:hover .disc { transform: scale(1.08); }
.play.on .disc { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dj-handle { position: absolute; z-index: 2; right: 20px; bottom: 22px; opacity: .8; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--line-light); }
.pillars div { padding: 28px 28px 0 0; }
.pillars .mono { color: var(--cream); opacity: .6; }
.pillars p { margin-top: 10px; font-size: 14px; opacity: .75; }

/* Gallery */
.gallery { padding: clamp(72px, 9vw, 120px) 0; }
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gal-head blockquote { font: 400 italic clamp(18px, 2vw, 26px)/1.25 var(--display); max-width: 20ch; text-align: right; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal-grid figure { position: relative; }
.gal-grid .ph { aspect-ratio: 3/4; }
.gal-grid figcaption { position: absolute; z-index: 2; left: 12px; bottom: 10px; color: var(--cream); font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.gal-grid .ph::after { display: none; }
.gal-grid .ph.nofile::after { display: block; left: auto; right: 12px; }

/* Partner */
.partners { padding: clamp(60px, 8vw, 100px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.partners .head { text-align: center; margin-bottom: 44px; }
.partners .track { display: flex; gap: 90px; width: max-content; animation: scroll 30s linear infinite; align-items: center; }
.partner { height: 44px; display: flex; align-items: center; font: 400 italic 26px var(--display); opacity: .45; white-space: nowrap; }
.partner img { height: 100%; width: auto; filter: brightness(0); }

/* Footer */
.footer { background: var(--forest); color: var(--cream); padding: clamp(80px, 10vw, 130px) 0 30px; position: relative; z-index: 50; overflow: hidden; text-align: center; }
.footer .logo { height: 200px; font-size: 84px; margin-bottom: 30px; }
.footer blockquote { font: 400 italic clamp(22px, 3vw, 38px)/1.2 var(--display); margin-bottom: 40px; }
.footer .links { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; opacity: .85; }
.footer .links a:hover { opacity: .6; }
.footer .copy { margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; opacity: .55; padding-inline: calc(var(--rail) + 8px); }

/* Join (form) */
.form { display: flex; max-width: 520px; margin: 36px auto 0; border: 1px solid var(--line-light); }
.form input { flex: 1; min-width: 0; padding: 18px 20px; font: inherit; border: 0; background: transparent; color: var(--cream); }
.form input::placeholder { color: rgba(252,251,247,.55); }
.form input:focus { outline: none; background: rgba(255,255,255,.07); }
.form-msg { margin-top: 14px; min-height: 22px; font-size: 14px; opacity: .85; }

/* Shop */
.shop-hero { padding: 170px 0 60px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.chip { padding: 11px 18px; border: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: all .2s; }
.chip.on, .chip:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
.shop-grid { padding-top: 50px; }
.product { display: flex; flex-direction: column; }
.thumb { aspect-ratio: 4/5; display: grid; place-items: center; position: relative; overflow: hidden; }
.thumb svg { width: 56%; height: 56%; transition: transform .5s; }
.product:hover .thumb svg { transform: scale(1.06) rotate(-2deg); }
.badge { position: absolute; top: 14px; left: 14px; background: var(--cream); color: var(--forest); padding: 5px 10px; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.product .series { margin-top: 16px; opacity: .55; font-size: 10px; }
.product h3 { font: 400 20px/1.2 var(--display); margin-top: 4px; }
.price { font: 500 13px var(--mono); margin-top: 6px; }
.sizes { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.size { min-width: 34px; height: 30px; padding: 0 8px; border: 1px solid var(--line); font: 500 11px var(--mono); }
.size.on { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.add { margin-top: 14px; padding: 14px; border: 1px solid currentColor; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; transition: background .25s, color .25s; }
.add:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }

/* Carrello */
.overlay { position: fixed; inset: 0; background: rgba(0,20,15,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 190; }
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(440px, 100%); background: var(--cream); color: var(--forest); z-index: 200; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
body.cart-open .overlay { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font: 400 26px var(--display); }
.close { font-size: 28px; line-height: 1; width: 36px; height: 36px; }
.drawer-body { flex: 1; overflow: auto; padding: 6px 24px; }
.empty { text-align: center; opacity: .6; padding: 70px 0; font: 400 italic 20px var(--display); }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .mini { width: 70px; height: 84px; display: grid; place-items: center; }
.line .mini svg { width: 68%; height: 68%; }
.line h4 { font: 400 18px var(--display); }
.line small { font: 500 11px var(--mono); opacity: .6; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; border: 1px solid var(--line); }
.qty button { width: 28px; height: 28px; }
.qty span { font: 500 12px var(--mono); min-width: 16px; text-align: center; }
.remove { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .6; text-decoration: underline; }
.drawer-foot { padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; font: 400 24px var(--display); margin-bottom: 16px; }
.drawer-foot .btn { width: 100%; }
.note { margin-top: 12px; text-align: center; opacity: .55; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; background: var(--forest); color: var(--cream); padding: 14px 24px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: all .3s; z-index: 250; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .life .grid2 { grid-template-columns: 1fr; }
  .life.flip .grid2 > :first-child { order: 0; }
  .flyers, .arch-grid, .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillars div { padding: 24px 0; border-bottom: 1px solid var(--line-light); }
  .stats .row.r3 { grid-template-columns: 1fr; }
  .stats .row.r3 .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stats .row.r3 .stat:first-child { border-top: 0; }
}
@media (max-width: 767px) {
  .hero .hero-m { display: block; }
  .nav-in { padding: 0 calc(var(--rail) + 8px); height: 72px; }
  .nav .join { display: none; }
  .nav .logo { height: 34px; font-size: 20px; }
  .nav-wm img { height: 40px; }
  .nf-icon { height: 32px; }
  .nf-wm { height: 40px; }
  .video .txt { padding-bottom: 56px; }
  .gal-head blockquote { text-align: left; }
  .side-ig { display: none; }
  .form { flex-direction: column; }
  .footer .copy { justify-content: center; text-align: center; }
}
@media (max-width: 520px) { .flyers, .arch-grid { grid-template-columns: 1fr; } .gal-grid { gap: 8px; } .grid { gap: 22px 10px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* Cursore pallina da tennis (solo con mouse) */
.has-ball-cursor, .has-ball-cursor * { cursor: none !important; }
.ball-cursor { position: fixed; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; z-index: 30000; opacity: 0; transition: opacity .25s; will-change: transform; }
.ball-cursor.show { opacity: 1; }
.ball-cursor .inner { width: 100%; height: 100%; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ball-cursor.link .inner { transform: scale(1.7); }
.ball-cursor.down .inner { transform: scale(.78); }
.ball-cursor svg { width: 100%; height: 100%; overflow: visible; }
.ball-cursor .b { fill: var(--cur, #18362c); transition: fill .2s; }
.ball-cursor .s { fill: none; stroke: var(--cur-seam, #f4efe7); stroke-width: 2.4; stroke-linecap: round; transition: stroke .2s; }

/* Esperienza: foto a tutto schermo + pallina che arriva al giocatore (segue lo scroll) */
.exp { position: relative; height: 300vh; background: #2f7bc0; }
.exp-stage { position: sticky; top: 0; height: 100vh; min-height: 520px; overflow: hidden; }
.exp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.exp .txt { position: absolute; z-index: 3; left: calc(var(--rail) + 28px); top: 98px; color: var(--forest); }
.exp .txt .mono { display: block; margin-bottom: 14px; color: var(--forest); opacity: .85; }
.exp .txt h2 { font: 400 clamp(26px, 5.4vw, 88px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.exp-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; z-index: 2; background: linear-gradient(180deg, transparent, rgba(8,28,20,.55)); pointer-events: none; }
.exp-caption { position: absolute; z-index: 3; left: calc(var(--rail) + 28px); bottom: clamp(26px, 6vh, 60px); max-width: 36ch; color: var(--cream); font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; }
.exp-ball { position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.exp-ball img { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,30,60,.35); }
.exp-ball .trail { position: absolute; right: 50%; top: 50%; height: 46%; margin-top: -23%; width: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(244,239,231,0), rgba(244,239,231,.75)); transform-origin: 100% 50%; filter: blur(2px); }
.exp-ring { position: absolute; z-index: 4; left: 0; top: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 2px solid #fff; opacity: 0; pointer-events: none; }
.exp-ring.hit { animation: ring .9s ease-out forwards; }
@keyframes ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@media (max-width: 767px) {
  .exp-photo { object-position: 63% 50%; }
  .exp .txt { left: calc(var(--rail) + 14px); }
}

/* Bottone "Diventa socio": stato di conferma con onda pulsante */
#joinCta { position: relative; max-width: 88vw; text-align: center; line-height: 1.5; }
#joinCta .lbl { display: inline-block; transition: opacity .16s ease; }
#joinCta.pulse::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
#joinCta.pulse, #joinCta.pulse::after { animation: wave 1.8s ease-out infinite; }
#joinCta.pulse::after { animation-delay: .9s; }
@keyframes wave { 0% { box-shadow: 0 0 0 0 rgba(244,239,231,.65); } 100% { box-shadow: 0 0 0 26px rgba(244,239,231,0); } }
