:root{
  --salvia:#7d8f76;
  --salvia-scuro:#5e6f58;
  --salvia-prof:#3f4a3b;
  --avorio:#f4f1ea;
  --avorio2:#ece7dc;
  --inchiostro:#2b2e29;
  --creta:#b9a07f;
  --earth:#2f2a22;
  --display:'Cormorant Garamond',Georgia,serif;
  --ui:'Jost',system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{background:var(--avorio);color:var(--inchiostro);font-family:var(--ui);font-weight:300;line-height:1.6;overflow-x:hidden}
h1,h2,h3,.display{font-family:var(--display);font-weight:300;line-height:1.08;letter-spacing:.01em}
.eyebrow{font-family:var(--ui);font-weight:300;text-transform:uppercase;letter-spacing:.32em;font-size:.7rem;color:var(--salvia)}
.eyebrow.light{color:rgba(244,241,234,.8)}
.eyebrow.creta{color:var(--creta)}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--salvia);outline-offset:3px}
img{display:block;max-width:100%}
.wrap{max-width:74rem;margin:0 auto;width:100%}
.px{padding-left:1.5rem;padding-right:1.5rem}
@media(min-width:768px){.px{padding-left:3rem;padding-right:3rem}}

/* NAV */
.topbar{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.5rem;transition:background .4s,padding .4s,color .4s}
.topbar.scrolled{background:rgba(244,241,234,.95);backdrop-filter:blur(8px);box-shadow:0 1px 0 rgba(43,46,41,.08)}
@media(min-width:768px){.topbar{padding:1.3rem 3rem}}
.logo-mini{display:flex;align-items:center;gap:.6rem;color:var(--inchiostro)}
/* logo "due figure": immagine usata come maschera, si ricolora con currentColor come faceva l'SVG */
.logo-mark{display:inline-block;background-color:currentColor;
  -webkit-mask:url(assets/img/logo-sagome.webp) center/contain no-repeat;
  mask:url(assets/img/logo-sagome.webp) center/contain no-repeat}
.logo-mini .logo-mark{width:26px;height:32px}
.hero-logo .logo-mark,.logo-foot .logo-mark{width:100%;height:100%}
.logo-mini span{font-family:var(--display);font-size:1.15rem;letter-spacing:.02em;white-space:nowrap}
.topbar.light .logo-mini{color:var(--avorio)}
.menu-links{display:none;gap:2.2rem}
@media(min-width:900px){.menu-links{display:flex}}
.menu-links a{font-size:.72rem;text-transform:uppercase;letter-spacing:.2em;opacity:.85;transition:opacity .3s}
.topbar.light .menu-links a{color:var(--avorio)}
.menu-links a:hover{opacity:1}
.btn-resv{font-size:.72rem;text-transform:uppercase;letter-spacing:.2em;border:1px solid currentColor;padding:.6rem 1.1rem;transition:background .3s,color .3s}
.topbar.light .btn-resv{color:var(--avorio)}
.btn-resv:hover{background:var(--salvia);color:var(--avorio);border-color:var(--salvia)}

/* HERO */
.hero{position:relative;min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;overflow:hidden;background:var(--salvia-prof)}
.hero-stage{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero-img{position:absolute;inset:-8% 0;width:100%;height:116%;object-fit:cover;will-change:transform}
.hero-canvas{cursor:grab;touch-action:none;display:block}
.hero-canvas:active{cursor:grabbing}
.hero-veil{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(43,55,40,.62) 0%,rgba(43,55,40,.34) 45%,rgba(43,55,40,.72) 100%)}
.hero-content{position:relative;z-index:5;color:var(--avorio);padding:2rem 1.5rem;max-width:42rem}
.hero-logo{width:120px;height:120px;margin:0 auto 1.6rem;color:var(--avorio)}
.hero h1{font-size:clamp(2.8rem,9vw,6.5rem);color:var(--avorio);margin-bottom:1rem;text-shadow:0 2px 50px rgba(0,0,0,.4)}
.hero .sub{font-family:var(--ui);font-weight:200;text-transform:uppercase;letter-spacing:.4em;font-size:.8rem;color:#f4f1ea;margin-bottom:2.2rem;text-shadow:0 1px 4px rgba(43,55,40,.6),0 1px 26px rgba(0,0,0,.45)}
.hero .descr{font-size:clamp(1.05rem,2vw,1.25rem);max-width:34rem;margin:0 auto 2.4rem;color:rgba(244,241,234,.95);text-shadow:0 1px 22px rgba(0,0,0,.45)}
/* avviso stagione: senza data-reveal, deve leggersi anche se GSAP non carica */
.hero .avviso{font-size:clamp(1.05rem,2.1vw,1.3rem);line-height:1.55;max-width:36rem;margin:0 auto 2.2rem;padding:1rem 1.5rem;border:1px solid rgba(244,241,234,.65);background:rgba(20,19,16,.38);color:var(--avorio);letter-spacing:.02em;text-shadow:0 1px 18px rgba(0,0,0,.4)}
.btn-hero{display:inline-block;background:var(--avorio);color:var(--salvia-prof);font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;padding:1rem 2.4rem;transition:background .3s,color .3s}
.btn-hero:hover{background:var(--salvia);color:var(--avorio)}
.scroll-cue{position:absolute;bottom:1.6rem;left:50%;transform:translateX(-50%);z-index:5;color:rgba(244,241,234,.7);font-size:.62rem;letter-spacing:.3em;text-transform:uppercase}
.scroll-cue::after{content:"";display:block;width:1px;height:34px;margin:.6rem auto 0;background:currentColor;opacity:.5;animation:cue 2.4s ease-in-out infinite}
@keyframes cue{0%,100%{transform:scaleY(.3);opacity:.2}50%{transform:scaleY(1);opacity:.6}}

section{padding:6rem 0}
@media(min-width:768px){section{padding:8.5rem 0}}
h2.big{font-size:clamp(2.2rem,5vw,4rem);line-height:1.1}

/* FILOSOFIA */
.filo{text-align:center}
.filo .eyebrow{margin-bottom:1.8rem}
.filo h2{max-width:48rem;margin:0 auto 2.5rem;font-size:clamp(2.2rem,5vw,3.8rem)}
.filo .corpo{max-width:40rem;margin:0 auto;display:grid;gap:1.5rem}
.filo p{font-size:1.12rem;color:rgba(43,46,41,.82);line-height:1.8}
.firma{font-family:var(--display);font-style:italic;font-size:1.4rem;color:var(--salvia);margin-top:1rem}

/* SPLIT + tilt 3D */
.materia{background:var(--avorio2)}
.split{display:grid;gap:0;align-items:stretch}
@media(min-width:860px){.split{grid-template-columns:1fr 1fr}}
.split.invert .split-img{order:2}
.split-img{min-height:62vh;overflow:hidden}
.split-img img{width:100%;height:100%;object-fit:cover;will-change:transform}
.split-txt{display:flex;flex-direction:column;justify-content:center;padding:3.5rem 2rem}
@media(min-width:768px){.split-txt{padding:5rem 4rem}}
.split-txt .eyebrow{margin-bottom:1.4rem}
.split-txt h3{font-size:clamp(1.9rem,3.5vw,2.8rem);margin-bottom:1.4rem}
.split-txt p{font-size:1.08rem;color:rgba(43,46,41,.82);line-height:1.75;max-width:30rem}

.tilt3d{perspective:1100px}
.tilt3d img{transform-style:preserve-3d;transition:transform .25s ease-out}

/* FULL VIDEO */
.full-video{position:relative;height:100svh;min-height:520px;overflow:hidden;display:flex;align-items:flex-end;padding:0}
.bg-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.full-veil{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(43,55,40,.2),rgba(43,55,40,.6))}
.full-veil.dark{background:linear-gradient(180deg,rgba(30,26,18,.3),rgba(30,26,18,.72))}
.full-caption{position:relative;z-index:2;padding:0 clamp(1.5rem,5vw,4rem) clamp(3rem,8vh,6rem);color:var(--avorio)}
.full-caption h2{font-size:clamp(2.2rem,6vw,4.4rem);margin-top:.8rem}

/* GALLERIA 3D */
.galleria{background:var(--avorio);overflow:hidden;perspective:1500px;perspective-origin:50% 42%}
.galleria .intro{text-align:center;margin-bottom:3.5rem}
.gal3d{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;padding:0 clamp(1rem,4vw,3rem);transform-style:preserve-3d;transition:transform .1s linear;will-change:transform}
@media(max-width:760px){.gal3d{grid-template-columns:repeat(2,1fr);gap:.6rem}}
.g-cell{overflow:hidden;aspect-ratio:4/5;background:var(--avorio2);transform-style:preserve-3d;will-change:transform;box-shadow:0 18px 40px rgba(43,46,41,.14)}
.g-cell img,.g-cell video{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.1s ease}
.g-cell:hover img,.g-cell:hover video{transform:scale(1.06)}
.gal-video .g-cell{background:#1c241c}

/* CERNIERA 3D */
.cerniera{position:relative;height:92vh;min-height:520px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,var(--salvia-prof),var(--earth))}
#grain{position:absolute;inset:0;width:100%;height:100%;display:block}
.cerniera-text{position:relative;z-index:2;text-align:center;color:var(--avorio)}
.cerniera-text h2{font-size:clamp(2rem,6vw,4.2rem);margin-top:.8rem}

/* RADICI */
.band-earth{background:var(--earth);color:#e9e2d6}
.radici-text{padding-top:6rem;padding-bottom:8rem}
.two-col{display:grid;gap:3rem;align-items:center}
@media(min-width:860px){.two-col{grid-template-columns:1fr 1fr;gap:5rem}}
.rad-imgs{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.rad-imgs figure{aspect-ratio:3/4;overflow:hidden;perspective:1000px}
.rad-imgs img{width:100%;height:100%;object-fit:cover;will-change:transform}
.rad-prose{display:flex;flex-direction:column;gap:1.5rem}
.rad-prose p{font-size:1.15rem;line-height:1.75;color:rgba(233,226,214,.88)}
.rad-prose .firma{color:var(--creta)}
.rad-prose-center{max-width:46ch;margin:0 auto;text-align:center;align-items:center}
.grani-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:3.5rem;perspective:1400px}
.grani-grid figure{aspect-ratio:4/5;overflow:hidden}
.grani-grid img{width:100%;height:100%;object-fit:cover;will-change:transform}
@media(max-width:760px){.grani-grid{grid-template-columns:repeat(2,1fr);gap:.6rem}}

/* INFO */
.info{background:var(--salvia-prof);color:var(--avorio)}
.info-grid{display:grid;gap:3rem}
@media(min-width:768px){.info-grid{grid-template-columns:1.2fr 1fr;gap:5rem}}
.info h2{color:var(--avorio);margin-bottom:1.5rem}
.lead{color:rgba(244,241,234,.82);font-size:1.1rem;line-height:1.75;max-width:32rem;margin-bottom:2.5rem}
.info-block{margin-bottom:1.8rem}
.info-block .lab{font-size:.7rem;text-transform:uppercase;letter-spacing:.28em;color:var(--creta);margin-bottom:.5rem}
.info-block .val{font-family:var(--display);font-size:1.5rem;color:var(--avorio)}
.info-block .val a{border-bottom:1px solid rgba(244,241,234,.3)}
.info-block .note{font-family:var(--ui);font-size:.8rem;color:rgba(244,241,234,.55)}
.info-cta{display:flex;flex-direction:column;gap:1rem;margin-top:1rem}
.info-cta a{text-align:center;padding:1.1rem;font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;transition:background .3s,color .3s}
.cta-call{background:var(--creta);color:var(--salvia-prof)}
.cta-call:hover{background:var(--avorio)}
.cta-map{border:1px solid rgba(244,241,234,.4);color:var(--avorio)}
.cta-map:hover{background:var(--avorio);color:var(--salvia-prof)}
.cta-ig{background:var(--salvia);color:var(--avorio)}
.cta-ig:hover{background:var(--avorio);color:var(--salvia-prof)}

/* CARTA */
.carta{background:var(--avorio2);color:#2b2620}
.carta-head{text-align:center;margin-bottom:3.5rem}
.carta-head .eyebrow{margin-bottom:1.2rem}
.carta-sub{font-family:var(--display);font-style:italic;font-size:1.15rem;color:var(--salvia-scuro);margin-top:1rem}
.carta-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem 3rem}
@media(max-width:860px){.carta-cols{grid-template-columns:1fr;gap:1.8rem;max-width:36rem;margin:0 auto}}
.carta-group h3{font-family:var(--ui);font-weight:400;font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--salvia);margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid color-mix(in srgb,var(--salvia) 40%,transparent)}
.carta-group h3:not(:first-child){margin-top:2.2rem}
.carta-group ul{list-style:none;display:flex;flex-direction:column;gap:.9rem}
.carta-group li{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.carta-group .d{font-family:var(--display);font-size:1.12rem;line-height:1.3}
.carta-group .p{font-family:var(--ui);font-weight:300;font-size:.95rem;color:var(--salvia-scuro);white-space:nowrap}
.carta-note{text-align:center;max-width:50ch;margin:3.5rem auto 0;font-family:var(--display);font-style:italic;font-size:1.05rem;color:#6b6357;line-height:1.6}

footer{background:var(--inchiostro);color:rgba(244,241,234,.65);padding:3rem 0;text-align:center}
.logo-foot{width:64px;height:64px;margin:0 auto 1.2rem;color:var(--salvia)}
footer .brand{font-family:var(--display);font-size:1.4rem;color:var(--avorio);margin-bottom:.4rem}
footer .small{font-size:.8rem;line-height:1.8}
footer .legal{margin-top:1.5rem;font-size:.7rem;opacity:.6}

/* CHIUSURA */
.closing{min-height:90vh;display:flex;align-items:center;justify-content:center;text-align:center;background:var(--avorio);padding:5rem 1.5rem}
.closing-line{font-family:var(--display);font-style:italic;font-weight:300;font-size:clamp(1.9rem,5.5vw,3.8rem);line-height:1.25;color:var(--salvia-prof);max-width:16ch}

/* REVEAL */
[data-reveal]{opacity:0;transform:translateY(24px);transition:opacity 1s cubic-bezier(.2,.7,.2,1),transform 1s cubic-bezier(.2,.7,.2,1)}
[data-reveal].in{opacity:1;transform:none}

/* logo reveal + micro-interazione */
@keyframes logo-rise{from{opacity:0;transform:translateY(12px) scale(.92)}to{opacity:1;transform:none}}
.hero-logo .logo-mark{animation:logo-rise 1.2s cubic-bezier(.22,1,.36,1) both;transform-origin:bottom center}
.logo-mini .logo-mark{transition:transform .5s cubic-bezier(.22,1,.36,1),filter .5s ease}
.logo-mini:hover .logo-mark{transform:translateY(-1px) scale(1.06)}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-reveal]{opacity:1;transform:none}
  .hero-img,.split-img img,.rad-imgs img{transform:none!important;inset:0;height:100%}
  .g-cell{transform:none!important}
  .scroll-cue::after{animation:none}
  .bg-video{display:none}
  .hero-logo .logo-mark{animation:none}
  .logo-mini:hover .logo-mark{transform:none}
}

/* LOGO ANIMATO NELL'HERO: line-art dal marchio, tratto avorio su foto */
.hero-logo{width:auto;height:clamp(150px,22svh,220px);margin:0 auto 1.4rem;color:var(--avorio)}
.hero-logo svg{height:100%;width:auto;display:block;margin:0 auto;overflow:visible}
.hero-logo path{fill:none;stroke:var(--avorio);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.hero-logo .dett{stroke:rgba(244,241,234,.72);stroke-width:2.6}

/* FILIERA: spiga disegnata + credito Mulino Marino */
.filiera{margin-top:3.5rem;display:flex;flex-direction:column;align-items:center;gap:1.3rem;text-align:center}
.spiga{height:110px;width:auto;overflow:visible}
.spiga path{fill:none;stroke:var(--salvia-scuro);stroke-width:2.6;stroke-linecap:round}
.filiera-txt{max-width:46ch;font-family:var(--display);font-style:italic;font-size:1.05rem;color:#6b6357;line-height:1.6}
.filiera-logo img{height:100px;width:auto;opacity:.85;transition:opacity .3s,transform .3s}
.filiera-logo:hover img{opacity:1;transform:translateY(-2px)}

