@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Bebas+Neue&family=DM+Sans:wght@300;400;500&display=swap');

:root{--gold:#C5A55A;--gold-light:#E8D5A3;--gold-dim:rgba(197,165,90,.5);--navy:#0A0E1A;--navy-mid:#131830;--navy-light:#1a2040;--cream:#F5F0E8;--cream-dim:#D4C9B8;--white:#FFF;--red:#CE2B37;--green:#009246}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',sans-serif;background:var(--navy);color:var(--cream);overflow-x:hidden;line-height:1.7}

/* ── NAVIGATION ── */
nav{position:fixed;top:0;width:100%;z-index:100;padding:1.2rem 3rem;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(to bottom,rgba(10,14,26,.95),transparent);transition:background .4s}
nav.scrolled{background:rgba(10,14,26,.97);backdrop-filter:blur(12px)}
.nav-brand{font-family:'Bebas Neue',sans-serif;font-size:1.3rem;letter-spacing:.35em;color:var(--gold);text-decoration:none}
.nav-links{display:flex;gap:2.5rem;list-style:none}
.nav-links a{text-decoration:none;color:var(--cream-dim);font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;transition:color .3s;position:relative}
.nav-links a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:1px;background:var(--gold);transition:width .3s}
.nav-links a:hover{color:var(--gold)}.nav-links a:hover::after{width:100%}
.nav-links a.active{color:var(--gold)}
.nav-links a.active::after{width:100%}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;z-index:101}
.hamburger span{width:24px;height:1.5px;background:var(--gold);transition:all .3s}

/* ── HERO ── */
.hero{height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 30% 50%,rgba(197,165,90,.06) 0%,transparent 60%),radial-gradient(ellipse at 70% 30%,rgba(184,50,47,.04) 0%,transparent 50%)}
.hero-texture{position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");opacity:.5;pointer-events:none}
.hero-deco{position:absolute;border:1px solid rgba(197,165,90,.08);border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);animation:pr 6s ease-in-out infinite}
.hd1{width:500px;height:500px}.hd2{width:600px;height:600px;animation-delay:-2s}.hd3{width:700px;height:700px;animation-delay:-4s}
@keyframes pr{0%,100%{opacity:.3;transform:translate(-50%,-50%) scale(1)}50%{opacity:.08;transform:translate(-50%,-50%) scale(1.05)}}
.hero-content{position:relative;z-index:2;animation:fu 1.2s ease-out}
@keyframes fu{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}
.hero-pre{font-size:.7rem;letter-spacing:.5em;text-transform:uppercase;color:var(--gold);margin-bottom:1.5rem;animation:fu 1.2s ease-out .2s both}
.hero h1{font-family:'Playfair Display',serif;font-size:clamp(3rem,8vw,7.5rem);font-weight:900;line-height:.95;color:var(--white);margin-bottom:.5rem;animation:fu 1.2s ease-out .4s both}
.hero h1 em{font-style:italic;font-weight:400;color:var(--gold-light)}
.hero-sub{font-family:'Cormorant Garamond',serif;font-size:clamp(1rem,2vw,1.5rem);font-weight:300;font-style:italic;color:var(--cream-dim);margin-top:1rem;animation:fu 1.2s ease-out .6s both}
.hero-motto{font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-weight:600;color:var(--gold);letter-spacing:.15em;margin-top:2.5rem;animation:fu 1.2s ease-out .8s both}
.scroll-ind{position:absolute;bottom:3rem;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.5rem;animation:fu 1.2s ease-out 1s both}
.scroll-ind span{font-size:.6rem;letter-spacing:.3em;text-transform:uppercase;color:var(--cream-dim)}
.scroll-line{width:1px;height:40px;background:linear-gradient(to bottom,var(--gold),transparent);animation:sp 2s ease-in-out infinite}
@keyframes sp{0%,100%{opacity:1;height:40px}50%{opacity:.4;height:25px}}

/* ── PAGE HEADERS (non-home pages) ── */
.page-header{padding:10rem 3rem 5rem;text-align:center;position:relative;overflow:hidden}
.page-header::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 80%,rgba(197,165,90,.06) 0%,transparent 60%)}
.page-header .hero-texture{position:absolute;inset:0;pointer-events:none;opacity:.3}
.page-header-pre{font-size:.7rem;letter-spacing:.5em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.page-header h1{font-family:'Playfair Display',serif;font-size:clamp(2.5rem,5vw,4.5rem);font-weight:700;color:var(--white);line-height:1.1}
.page-header h1 em{font-style:italic;font-weight:400;color:var(--gold-light)}
.page-header-sub{font-family:'Cormorant Garamond',serif;font-size:1.15rem;font-weight:300;font-style:italic;color:var(--cream-dim);margin-top:1rem;max-width:600px;margin-left:auto;margin-right:auto}

/* ── SECTIONS ── */
section{padding:6rem 3rem;max-width:1200px;margin:0 auto}
.slbl{font-family:'Bebas Neue',sans-serif;font-size:.75rem;letter-spacing:.4em;color:var(--gold);margin-bottom:1rem;display:flex;align-items:center;gap:1rem}
.slbl::before{content:'';width:30px;height:1px;background:var(--gold)}
.sttl{font-family:'Playfair Display',serif;font-size:clamp(2rem,4vw,3.5rem);font-weight:700;color:var(--white);line-height:1.15;margin-bottom:2rem}
.sttl em{font-style:italic;font-weight:400;color:var(--gold-light)}
.divider{width:100%;max-width:1200px;margin:0 auto;padding:0 3rem}
.divider-line{height:1px;background:linear-gradient(to right,transparent,rgba(197,165,90,.3),transparent)}

/* ── BIOGRAPHY ── */
.bio-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start}
.bio-text p{font-family:'Cormorant Garamond',serif;font-size:1.15rem;line-height:1.9;color:var(--cream-dim);margin-bottom:1.5rem}
.bio-text p:first-of-type::first-letter{font-family:'Playfair Display',serif;font-size:3.5rem;float:left;line-height:1;margin-right:.5rem;color:var(--gold);font-weight:700}
.bio-sb{position:relative;padding:2.5rem;border:1px solid rgba(197,165,90,.15);background:rgba(197,165,90,.03)}
.bio-sb::before{content:'"';font-family:'Playfair Display',serif;font-size:6rem;color:var(--gold);opacity:.25;position:absolute;top:.5rem;left:1.5rem;line-height:1}
.bio-q{font-family:'Cormorant Garamond',serif;font-size:1.3rem;font-style:italic;line-height:1.8;color:var(--cream);margin-bottom:1.5rem;padding-top:1rem}
.bio-qa{font-size:.75rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold)}
.bio-fs{display:flex;gap:2rem;margin-top:2.5rem;padding-top:2rem;border-top:1px solid rgba(197,165,90,.12)}
.bio-f{flex:1}.bio-fv{font-family:'Bebas Neue',sans-serif;font-size:1.8rem;color:var(--gold);line-height:1.2}
.bio-fl{font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;color:var(--cream-dim);margin-top:.3rem}

/* ── BIO IMAGE ── */
.bio-hero-img{width:100%;max-width:500px;margin:3rem auto;display:block;border:1px solid rgba(197,165,90,.15);filter:sepia(10%) contrast(1.05)}

/* ── STATS ── */
.stats-s{background:var(--navy-mid);padding:5rem 0;max-width:none}
.stats-in{max-width:1200px;margin:0 auto;padding:0 3rem}
.stats-g{display:grid;grid-template-columns:repeat(5,1fr);gap:1.5rem;margin-top:3rem}
.stat-c{text-align:center;padding:2rem 1rem;border:1px solid rgba(197,165,90,.1);position:relative;overflow:hidden;transition:all .4s}
.stat-c:hover{border-color:rgba(197,165,90,.3);background:rgba(197,165,90,.04);transform:translateY(-4px)}
.stat-c::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:30px;height:2px;background:var(--gold)}
.stat-n{font-family:'Bebas Neue',sans-serif;font-size:3.5rem;color:var(--gold);line-height:1}
.stat-l{font-family:'Cormorant Garamond',serif;font-size:.95rem;color:var(--cream-dim);margin-top:.5rem;font-style:italic}
.stat-sub{font-size:.65rem;color:rgba(212,201,184,.5);letter-spacing:.1em;text-transform:uppercase;margin-top:.3rem}

/* ── GALLERY ── */
.gal-s{max-width:none;padding:5rem 0;background:var(--navy-mid)}
.gal-in{max-width:1400px;margin:0 auto;padding:0 3rem}
.photo-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;margin-top:2rem}
.ph-c{position:relative;overflow:hidden;aspect-ratio:4/3;border:1px solid rgba(197,165,90,.1);cursor:pointer;transition:all .4s}
.ph-c:hover{border-color:rgba(197,165,90,.4);transform:scale(1.02);z-index:2}
.ph-c img{width:100%;height:100%;object-fit:cover;filter:sepia(15%) contrast(1.05);transition:all .4s}
.ph-c:hover img{filter:sepia(0%) contrast(1.1);transform:scale(1.05)}
.ph-cap{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(10,14,26,.9));padding:2rem 1rem 1rem;transform:translateY(100%);transition:transform .3s}
.ph-c:hover .ph-cap{transform:translateY(0)}
.ph-ct{font-family:'Cormorant Garamond',serif;font-size:.9rem;color:var(--cream);font-style:italic}
.ph-cy{font-family:'Bebas Neue',sans-serif;font-size:.7rem;letter-spacing:.2em;color:var(--gold);margin-bottom:.3rem}

/* Gallery filter buttons */
.gal-filters{display:flex;flex-wrap:wrap;gap:.8rem;margin-bottom:2rem}
.gal-filter{padding:.5rem 1.2rem;font-family:'DM Sans',sans-serif;font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;border:1px solid rgba(197,165,90,.2);background:transparent;color:var(--cream-dim);cursor:pointer;transition:all .3s}
.gal-filter:hover,.gal-filter.active{border-color:var(--gold);color:var(--gold);background:rgba(197,165,90,.08)}

/* ── TIMELINE ── */
.storia-intro{font-family:'Cormorant Garamond',serif;font-size:1.2rem;line-height:1.9;color:var(--cream-dim);max-width:700px;margin-bottom:3rem}
.tl{position:relative;padding-left:3rem}
.tl::before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:linear-gradient(to bottom,var(--gold),rgba(197,165,90,.1))}
.tl-i{position:relative;margin-bottom:3rem;padding-left:2rem;opacity:0;transform:translateX(-20px);animation:si .6s ease-out forwards}
.tl-i:nth-child(1){animation-delay:.1s}.tl-i:nth-child(2){animation-delay:.2s}.tl-i:nth-child(3){animation-delay:.3s}
.tl-i:nth-child(4){animation-delay:.4s}.tl-i:nth-child(5){animation-delay:.5s}.tl-i:nth-child(6){animation-delay:.6s}
.tl-i:nth-child(7){animation-delay:.7s}.tl-i:nth-child(8){animation-delay:.8s}.tl-i:nth-child(9){animation-delay:.9s}
@keyframes si{to{opacity:1;transform:translateX(0)}}
.tl-i::before{content:'';position:absolute;left:-3.35rem;top:.4rem;width:8px;height:8px;border:2px solid var(--gold);border-radius:50%;background:var(--navy)}
.tl-y{font-family:'Bebas Neue',sans-serif;font-size:1rem;letter-spacing:.2em;color:var(--gold);margin-bottom:.3rem}
.tl-t{font-family:'Playfair Display',serif;font-size:1.3rem;color:var(--white);margin-bottom:.5rem}
.tl-d{font-family:'Cormorant Garamond',serif;font-size:1rem;color:var(--cream-dim);line-height:1.7}

/* ── PALMARES ── */
.palm-hl{font-family:'Cormorant Garamond',serif;font-size:1.2rem;color:var(--cream-dim);line-height:1.9;max-width:700px;margin-bottom:3rem}
.palm-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem}
.palm-c{padding:1.8rem;border:1px solid rgba(197,165,90,.1);background:rgba(19,24,48,.5);transition:all .3s}
.palm-c:hover{border-color:rgba(197,165,90,.25);background:rgba(197,165,90,.04)}
.palm-cy{font-family:'Bebas Neue',sans-serif;font-size:.85rem;letter-spacing:.2em;color:var(--gold);margin-bottom:.5rem}
.palm-ct{font-family:'Playfair Display',serif;font-size:1.1rem;color:var(--white);margin-bottom:.3rem}
.palm-cd{font-size:.8rem;color:var(--cream-dim)}
.palm-b{display:inline-block;padding:.2rem .6rem;font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;border:1px solid;margin-top:.6rem}
.bi{border-color:rgba(0,140,69,.4);color:#4CAF50}.be{border-color:rgba(33,150,243,.4);color:#42A5F5}.bm{border-color:rgba(197,165,90,.4);color:var(--gold)}

/* ── ENCOUNTERS ── */
.enc-g{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:3rem}
.enc-c{padding:2rem;border:1px solid rgba(197,165,90,.1);text-align:center;transition:all .3s;position:relative;overflow:hidden}
.enc-c:hover{border-color:rgba(197,165,90,.3);transform:translateY(-3px)}
.enc-c img{width:100%;height:200px;object-fit:cover;margin-bottom:1rem;filter:sepia(10%) contrast(1.05);transition:filter .3s}
.enc-c:hover img{filter:sepia(0%) contrast(1.1)}
.enc-i{font-size:2.5rem;margin-bottom:1rem}
.enc-n{font-family:'Playfair Display',serif;font-size:1.2rem;color:var(--white);margin-bottom:.3rem}
.enc-x{font-family:'Cormorant Garamond',serif;font-size:.95rem;font-style:italic;color:var(--cream-dim)}

/* ── VIDEO ── */
.vid-s{max-width:none;padding:5rem 0;background:var(--navy-mid)}
.vid-in{max-width:1200px;margin:0 auto;padding:0 3rem}
.vid-intro{font-family:'Cormorant Garamond',serif;font-size:1.1rem;color:var(--cream-dim);max-width:700px;margin-bottom:2rem;font-style:italic}
.vid-links{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:2rem}
.vid-link{padding:2rem;border:1px solid rgba(197,165,90,.15);background:rgba(197,165,90,.03);text-decoration:none;color:inherit;transition:all .3s;display:block}
.vid-link:hover{border-color:rgba(197,165,90,.4);background:rgba(197,165,90,.06);transform:translateY(-3px)}
.vid-link-icon{font-size:2rem;margin-bottom:.8rem}
.vid-link-title{font-family:'Playfair Display',serif;font-size:1.1rem;color:var(--white);margin-bottom:.4rem}
.vid-link-desc{font-family:'Cormorant Garamond',serif;font-size:.9rem;color:var(--cream-dim);font-style:italic;line-height:1.6}
.vid-link-cta{display:inline-block;margin-top:1rem;font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);border-bottom:1px solid var(--gold);padding-bottom:2px}

/* ── PHILOSOPHY ── */
.phil-s{text-align:center;background:var(--navy-mid);max-width:none;padding:6rem 3rem}
.phil-in{max-width:800px;margin:0 auto}
.phil-q{font-family:'Playfair Display',serif;font-size:clamp(1.8rem,3vw,2.8rem);font-style:italic;color:var(--cream);line-height:1.5;margin:2rem 0}
.phil-q::before{content:'"';font-size:4rem;color:var(--gold);opacity:.3;margin-right:.3rem}
.phil-q::after{content:'"';font-size:4rem;color:var(--gold);opacity:.3;margin-left:.3rem}
.phil-a{font-size:.75rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-top:1.5rem}

/* ── FAMIGLIA ── */
.fam-t{font-family:'Cormorant Garamond',serif;font-size:1.2rem;line-height:2;color:var(--cream-dim);max-width:700px}
.fam-sig{font-family:'Playfair Display',serif;font-style:italic;font-size:1.4rem;color:var(--gold-light);margin-top:2rem}
.leg-g{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:3rem}
.leg-c{padding:2rem;border:1px solid rgba(197,165,90,.1);background:rgba(19,24,48,.5)}
.leg-ct{font-family:'Playfair Display',serif;font-size:1.2rem;color:var(--white);margin-bottom:.5rem}
.leg-cx{font-family:'Cormorant Garamond',serif;font-size:1rem;color:var(--cream-dim);line-height:1.7}

/* ── FOOTER ── */
footer{text-align:center;padding:4rem 3rem;border-top:1px solid rgba(197,165,90,.1)}
.ft-n{font-family:'Playfair Display',serif;font-size:1.5rem;color:var(--white);margin-bottom:.5rem}
.ft-y{font-family:'Bebas Neue',sans-serif;letter-spacing:.3em;color:var(--gold);font-size:.9rem;margin-bottom:1rem}
.ft-c{font-size:.7rem;color:rgba(212,201,184,.4);letter-spacing:.1em}
.ft-f{display:flex;justify-content:center;gap:3px;margin-bottom:1.5rem}
.ft-f span{width:20px;height:3px}.fg{background:var(--green)}.fw{background:#fff}.fr{background:var(--red)}
.ft-nav{display:flex;justify-content:center;gap:2rem;margin-bottom:2rem;flex-wrap:wrap}
.ft-nav a{color:var(--cream-dim);text-decoration:none;font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;transition:color .3s}
.ft-nav a:hover{color:var(--gold)}

/* ── LIGHTBOX ── */
.lb{display:none;position:fixed;inset:0;background:rgba(0,0,0,.95);z-index:1000;justify-content:center;align-items:center;cursor:pointer}
.lb.active{display:flex}
.lb img{max-width:90%;max-height:90vh;object-fit:contain;border:1px solid rgba(197,165,90,.2)}
.lb-x{position:absolute;top:2rem;right:2rem;font-size:2rem;color:var(--gold);cursor:pointer;font-family:sans-serif}

/* ── HOMEPAGE PREVIEW CARDS ── */
.preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:3rem}
.preview-card{border:1px solid rgba(197,165,90,.1);padding:2.5rem;text-decoration:none;color:inherit;transition:all .4s;position:relative;overflow:hidden}
.preview-card::before{content:'';position:absolute;top:0;left:0;width:100%;height:2px;background:var(--gold);transform:scaleX(0);transition:transform .4s;transform-origin:left}
.preview-card:hover{border-color:rgba(197,165,90,.3);transform:translateY(-5px);background:rgba(197,165,90,.03)}
.preview-card:hover::before{transform:scaleX(1)}
.preview-card-num{font-family:'Bebas Neue',sans-serif;font-size:2.5rem;color:var(--gold);opacity:.3;margin-bottom:.5rem}
.preview-card-title{font-family:'Playfair Display',serif;font-size:1.3rem;color:var(--white);margin-bottom:.5rem}
.preview-card-desc{font-family:'Cormorant Garamond',serif;font-size:.95rem;color:var(--cream-dim);font-style:italic;line-height:1.6}
.preview-card-cta{display:inline-block;margin-top:1.2rem;font-size:.65rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);border-bottom:1px solid rgba(197,165,90,.3);padding-bottom:2px;transition:border-color .3s}
.preview-card:hover .preview-card-cta{border-color:var(--gold)}

/* ── FEATURED PHOTO ON HOME ── */
.featured-photo{position:relative;max-width:900px;margin:4rem auto;overflow:hidden;border:1px solid rgba(197,165,90,.15)}
.featured-photo img{width:100%;display:block;filter:sepia(10%)}
.featured-photo-cap{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(10,14,26,.95));padding:3rem 2rem 1.5rem}
.featured-photo-cap h3{font-family:'Playfair Display',serif;font-size:1.3rem;color:var(--white)}
.featured-photo-cap p{font-family:'Cormorant Garamond',serif;font-size:.95rem;color:var(--cream-dim);font-style:italic}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  nav{padding:1rem 1.5rem}.nav-links{display:none}.hamburger{display:flex}
  section{padding:4rem 1.5rem}.bio-grid{grid-template-columns:1fr;gap:2rem}
  .stats-g{grid-template-columns:repeat(2,1fr)}.enc-g{grid-template-columns:1fr}
  .palm-g{grid-template-columns:1fr}.vid-links{grid-template-columns:1fr}
  .leg-g{grid-template-columns:1fr}.photo-g{grid-template-columns:repeat(2,1fr)}
  .stats-in,.gal-in,.vid-in,.divider{padding:0 1.5rem}.phil-s{padding:4rem 1.5rem}
  .preview-grid{grid-template-columns:1fr}.page-header{padding:8rem 1.5rem 3rem}
}
@media(max-width:500px){.stats-g{grid-template-columns:1fr 1fr}.bio-fs{flex-direction:column;gap:1rem}.photo-g{grid-template-columns:1fr}}

/* ── ANIMATIONS ── */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .8s ease,transform .8s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
