/* ============================================================
   Luca Montella | Bespoke Key Advisor — lucamontella.it
   Ricostruzione statica pulita (sostituisce il build Astro/Zyro)
   ============================================================ */

/* ---------- Font auto-ospitati (no Google Fonts → privacy/GDPR) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/inter-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/inter-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Outfit';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/outfit-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Outfit';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/outfit-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Outfit';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/outfit-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Outfit';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/outfit-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Outfit';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/outfit-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Outfit';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/outfit-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Outfit';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/outfit-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Outfit';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/outfit-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- Design tokens ---------- */
:root{
  --dark:        #123a2b;   /* base smeraldo scuro e caldo */
  --dark-2:      #0d2c20;   /* variante piu' profonda (top bar, footer) */
  --dark-3:      #071d15;   /* fondali profondi */
  --emerald:     #1f7d5a;   /* verde acceso per glow/atmosfera */
  --cream:       #f4e6c6;   /* titoli su scuro (cream dorato) */
  --cream-soft:  #f7efe2;   /* superfici chiare / card */
  --gold:        #c9a04c;   /* oro */
  --gold-light:  #ecd089;   /* oro chiaro / highlight */
  --gold-deep:   #9c7428;   /* oro profondo */
  --peach:       #e8c87f;   /* bordi dorati */
  --orange:      #e0a23c;   /* accento (virato verso oro) */
  --text:        #ece7d8;   /* testo body su scuro */
  --text-dim:    #b7c3b8;   /* testo secondario su scuro */
  --ink:         #133229;   /* testo su superfici chiare */
  --white:       #ffffff;
  --gold-grad:   linear-gradient(120deg, #9c7428 0%, #ecd089 45%, #c9a04c 72%, #b8862f 100%);

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 40px -18px rgba(28, 20, 6, .58);   /* penombra oro scuro */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@keyframes menuFade{ from{ opacity:0; } to{ opacity:1; } }
body{
  font-family:var(--font-body);
  color:var(--text);
  background:var(--dark);
  line-height:1.65;
  font-size:clamp(1rem,.97rem + .2vw,1.075rem);
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; cursor:pointer; border:none; background:none; color:inherit; }

/* ---------- Tipografia ---------- */
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:600; line-height:1.12; color:var(--cream); }
h1{ font-size:clamp(2.1rem,1.4rem + 3.2vw,3.6rem); }
h2{ font-size:clamp(1.8rem,1.2rem + 2.6vw,3rem); }
h3{ font-size:clamp(1.25rem,1.05rem + 1vw,1.6rem); }
p{ color:var(--text); }
.lead{ font-size:clamp(1.05rem,1rem + .5vw,1.3rem); color:var(--text); }
.accent{ color:var(--orange); }
.cream{ color:var(--cream); }

/* ---------- Layout ---------- */
.container{ width:min(100% - 2.4rem, var(--maxw)); margin-inline:auto; }
.section{ padding:clamp(2.5rem,1.5rem + 3vw,4.5rem) 0; position:relative; }
.section--tight{ padding:clamp(2.5rem,1.5rem + 4vw,4.5rem) 0; }
.section-head{ text-align:center; max-width:820px; margin:0 auto clamp(2rem,4vw,3.5rem); }
.section-head p{ color:var(--text-dim); margin-top:1rem; }
.eyebrow{ font-family:var(--font-head); text-transform:uppercase; letter-spacing:.18em; font-size:.78rem; font-weight:600; color:var(--orange); }

/* fondali scuri */
.bg-dark{ background:var(--dark); }
.bg-darker{ background:var(--dark-2); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:var(--font-head); font-weight:600; font-size:1rem;
  padding:.95rem 1.9rem; border-radius:999px;
  border:1.5px solid transparent; transition:.25s var(--ease);
  text-align:center; line-height:1.1;
}
.btn-cream{ background:var(--cream-soft); color:var(--ink); border-color:var(--peach); }
.btn-cream:hover{ background:#fff; transform:translateY(-2px); }
.btn-orange{ background:transparent; color:var(--orange); border-color:var(--peach); }
.btn-orange:hover{ background:var(--orange); color:var(--dark); border-color:var(--orange); transform:translateY(-2px); }
.btn-solid{ background:var(--orange); color:var(--dark); border-color:var(--orange); }
.btn-solid:hover{ background:#ff955a; transform:translateY(-2px); box-shadow:0 12px 26px -12px rgba(255,131,43,.7); }
.btn-lg{ padding:1.1rem 2.4rem; font-size:1.08rem; }

.link-arrow{ font-family:var(--font-head); font-weight:600; color:var(--cream); display:inline-flex; gap:.5rem; transition:.2s var(--ease); }
.link-arrow:hover{ color:var(--orange); gap:.85rem; }

/* ---------- Top bar ---------- */
.topbar{ background:var(--dark-2); text-align:center; padding:.5rem 1rem; }
.topbar a{ display:inline-block; padding:.25rem .4rem; font-family:var(--font-head); font-weight:500; color:var(--cream); font-size:.92rem; text-decoration:underline; text-underline-offset:3px; }
.topbar a:hover{ color:var(--orange); }

/* ---------- Header / nav ---------- */
.site-header{ position:sticky; top:0; z-index:60; background:var(--dark); border-bottom:1px solid rgba(255,217,190,.08); }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding:.7rem 0; }
.brand{ display:flex; align-items:center; flex-shrink:0; }
.brand img{ height:62px; width:auto; }
.nav-menu{ display:flex; align-items:center; gap:clamp(1rem,2vw,2rem); }
.nav-menu > li > a{ font-family:var(--font-head); font-weight:500; color:var(--cream); padding:.5rem 0; position:relative; font-size:1rem; transition:.2s; }
.nav-menu > li > a:hover, .nav-menu > li > a[aria-current="page"]{ color:var(--orange); }
.nav-menu > li > a[aria-current="page"]::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--orange); border-radius:2px; }

/* dropdown */
.has-dropdown{ position:relative; }
.dropdown-toggle{ display:inline-flex; align-items:center; gap:.35rem; background:none; color:var(--cream); font-family:var(--font-head); font-weight:500; font-size:1rem; }
.dropdown-toggle svg{ transition:transform .25s var(--ease); }
.has-dropdown:hover .dropdown-toggle svg, .has-dropdown:focus-within .dropdown-toggle svg{ transform:rotate(180deg); }
.dropdown{
  position:absolute; top:calc(100% + .6rem); left:50%; transform:translateX(-50%) translateY(8px);
  background:var(--dark-2); border:1px solid rgba(255,217,190,.14); border-radius:var(--radius-sm);
  padding:.5rem; min-width:270px; box-shadow:var(--shadow);
  opacity:0; visibility:hidden; transition:.22s var(--ease); z-index:70;
}
@media (min-width:901px){ .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); } }
.dropdown a{ display:block; padding:.7rem .9rem; border-radius:8px; color:var(--text); font-size:.95rem; transition:.18s; }
.dropdown a:hover{ background:rgba(255,217,190,.08); color:var(--cream); }

.nav-actions{ display:flex; align-items:center; gap:1rem; flex-shrink:0; }
.icon-link{ color:var(--cream); display:inline-flex; transition:.2s; }
.icon-link:hover{ color:var(--orange); transform:translateY(-2px); }
.icon-link svg{ width:26px; height:26px; }

.nav-toggle{ display:none; color:var(--cream); }
.nav-toggle svg{ width:30px; height:30px; }

/* ---------- Hero ---------- */
.hero{ position:relative; padding:clamp(1.5rem,1rem + 2.5vw,3rem) 0 clamp(2rem,4vw,3.5rem); overflow:hidden; }
.hero__title{ text-align:center; max-width:1000px; margin:0 auto; }
.hero__title .sig{ display:block; font-family:var(--font-head); font-weight:400; font-size:clamp(1rem,.9rem + .6vw,1.35rem); color:var(--gold); margin-top:1.2rem; letter-spacing:.02em; }
.hero__sub{ text-align:center; max-width:760px; margin:1.2rem auto 0; color:var(--text); }
.hero__grid{ display:grid; grid-template-columns:minmax(0,.74fr) minmax(0,1.26fr); gap:clamp(1.5rem,4vw,3.5rem); align-items:center; margin-top:clamp(2rem,4vw,3.5rem); }
.hero__photo{ background:transparent; overflow:visible; display:flex; align-items:flex-end; justify-content:center; }
.hero__photo img{ width:auto; max-width:100%; height:auto; max-height:clamp(420px,56vh,560px); object-fit:contain; object-position:bottom; filter:drop-shadow(0 26px 50px rgba(0,0,0,.45)); }
@media (min-width:901px){ .hero__photo img{ max-height:clamp(500px,66vh,700px); margin-bottom:calc(-1 * clamp(1.6rem,3.5vw,3.2rem)); } }
.kpi-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(1.2rem,3vw,2.2rem); }
.kpi{ display:flex; gap:1rem; align-items:flex-start; }
.kpi svg{ width:46px; height:46px; flex-shrink:0; stroke:var(--cream); }
.kpi__num{ font-family:var(--font-head); font-weight:700; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); color:var(--cream); line-height:1; }
.kpi__label{ font-family:var(--font-head); font-weight:600; color:var(--text); margin-top:.25rem; font-size:1.05rem; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; margin-top:clamp(2rem,4vw,3rem); }

/* ---------- Cards (sfide) ---------- */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(1.5rem,3vw,2.6rem); }
.card{ text-align:center; }
.card__icon{ width:64px; height:64px; margin:0 auto 1.1rem; }
.card__icon svg{ width:100%; height:100%; stroke:var(--cream); fill:none; }
.card h3{ color:var(--cream); margin-bottom:.7rem; }
.card p{ color:var(--text-dim); }

/* ---------- Pillars (3 colonne con foto) ---------- */
.pillars{ display:grid; gap:clamp(1.5rem,3vw,2.5rem); grid-template-columns:repeat(3,1fr); }
.pillar{ background:var(--cream-soft); color:var(--ink); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.pillar__media{ aspect-ratio:16/11; overflow:hidden; }
.pillar__media img{ width:100%; height:100%; object-fit:cover; }
.pillar__body{ padding:1.6rem 1.5rem 1.8rem; }
.pillar__body h3{ color:var(--ink); margin-bottom:.7rem; }
.pillar__body p{ color:#41504a; font-size:.97rem; }

/* sezione pilastri intro su scuro */
.pillars-intro{ text-align:center; max-width:860px; margin:0 auto clamp(.8rem,1.6vw,1.4rem); }
.pillars-intro p{ color:var(--text-dim); margin-top:1rem; }

/* ---------- CTA / impegno ---------- */
.commit{ text-align:center; max-width:880px; margin:0 auto; }
.commit p{ color:var(--text); margin:1.4rem 0 0; font-size:1.12rem; }
.cta-band{ text-align:center; }
.cta-band h2{ margin-bottom:1rem; }
.cta-band p{ color:var(--text-dim); max-width:680px; margin:0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--dark-2); padding-top:clamp(3rem,5vw,4.5rem); border-top:1px solid rgba(255,217,190,.1); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1.4fr; gap:clamp(2rem,4vw,3.5rem); padding-bottom:2.5rem; }
.footer-brand h3{ color:var(--orange); font-size:1.35rem; margin-bottom:.4rem; }
.footer-brand .role{ color:var(--cream); font-family:var(--font-head); font-weight:500; margin-bottom:1.2rem; }
.footer-brand p{ color:var(--text-dim); line-height:1.5; }
.footer-social{ display:flex; gap:.9rem; margin-top:1.4rem; }
.footer-social a{ width:42px; height:42px; border:1px solid rgba(255,217,190,.25); border-radius:10px; display:grid; place-items:center; color:var(--cream); transition:.2s var(--ease); }
.footer-social a:hover{ background:var(--orange); border-color:var(--orange); color:var(--dark); transform:translateY(-2px); }
.footer-social svg{ width:20px; height:20px; }
.footer-col h4{ color:var(--orange); font-size:1.15rem; margin-bottom:1.1rem; }
.footer-col ul li{ margin-bottom:.7rem; }
.footer-col a, .footer-col p{ color:var(--text-dim); transition:.18s; }
.footer-col a:hover{ color:var(--cream); }
.footer-contacts a{ display:block; margin-bottom:.7rem; text-decoration:underline; text-underline-offset:3px; }
.footer-bottom{ border-top:1px solid rgba(255,217,190,.1); padding:1.3rem 0; display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; justify-content:space-between; align-items:center; }
.footer-bottom, .footer-bottom a{ color:var(--text-dim); font-size:.85rem; }
.footer-legal a{ display:inline-block; margin:0 .1rem; padding:.45rem .3rem; }   /* area tappabile più ampia su mobile */
.footer-legal a:hover{ color:var(--cream); }

/* ---------- Floating WhatsApp ---------- */
.wa-float{ position:fixed; right:18px; bottom:18px; width:56px; height:56px; border-radius:50%; background:#25d366; display:grid; place-items:center; z-index:80; box-shadow:0 10px 26px -8px rgba(0,0,0,.5); transition:.2s var(--ease); }
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:32px; height:32px; fill:#fff; }

/* ---------- Generic content (data-deletion, testo lungo) ---------- */
.prose{ max-width:780px; margin:0 auto; }
.prose h2{ margin:2rem 0 1rem; }
.prose h3{ margin:1.6rem 0 .8rem; }
.prose p{ color:var(--text); margin-bottom:1rem; }
.prose ul{ list-style:disc; padding-left:1.3rem; margin-bottom:1rem; color:var(--text); }
.prose ul li{ margin-bottom:.5rem; }
.prose a{ color:var(--orange); text-decoration:underline; }

/* page hero (sotto-pagine) */
/* Hero di pagina compatto: poco spazio sopra l'occhiello e verso la prima sezione */
.page-hero{ text-align:center; padding:clamp(1.8rem,1.2rem + 2vw,3rem) 0 clamp(.5rem,.3rem + .7vw,1.1rem); }
.page-hero p{ color:var(--text-dim); max-width:760px; margin:1.2rem auto 0; }
.page-hero + .section, .page-hero + .hscroll{ padding-top:clamp(.6rem,.3rem + .8vw,1.2rem); }

/* split content (sezioni alternate testo+foto) */
.split{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(1.8rem,4vw,4rem); align-items:center; }
.split + .split{ margin-top:clamp(3rem,5vw,5rem); }
.split--rev .split__media{ order:2; }
.split__media{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.split__media img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
/* ritratto ritagliato (sfondo trasparente): nessuna cornice/ombra, figura intera appoggiata sul marmo */
.split__media--portrait{ background:transparent; box-shadow:none; overflow:visible; border-radius:0; }
.split__media--portrait img{ aspect-ratio:auto; height:auto; object-fit:contain; }
/* desktop: il ritratto si allinea all'altezza del blocco di testo (img assoluta = non detta l'altezza della riga) */
@media (min-width:901px){
  .split__media--portrait{ align-self:stretch; position:relative; min-height:360px; }
  .split__media--portrait img{ position:absolute; inset:0; width:100%; height:100%; object-position:center bottom; filter:drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
}
.split__body h3{ color:var(--cream); margin-bottom:1rem; }
.split__body h3 .accent{ display:block; }
.split__body p{ color:var(--text-dim); margin-bottom:1rem; }

/* contatti */
.contact-cards{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(1.5rem,3vw,2.5rem); }
.contact-card{ background:rgba(255,217,190,.05); border:1px solid rgba(255,217,190,.14); border-radius:var(--radius); padding:2rem; text-align:center; }
.contact-card h3, .contact-card h2{ margin-bottom:.8rem; }
.contact-card h2{ font-size:clamp(1.25rem,1.05rem + 1vw,1.6rem); } /* card su /percorso-strategico/: h2 per ordine heading corretto, ma dimensione = h3 */
.contact-card p{ color:var(--text-dim); margin-bottom:1.4rem; }
.contact-info{ display:grid; gap:1.2rem; margin-top:2.5rem; }
.contact-info .row{ display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap; }
.contact-info .row strong{ color:var(--cream); font-family:var(--font-head); }
.contact-info .row a, .contact-info .row span{ color:var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero__grid{ grid-template-columns:1fr; }
  .hero__photo{ max-width:420px; margin:0 auto; }
  .cards{ grid-template-columns:1fr; max-width:460px; margin-inline:auto; }
  .pillars{ grid-template-columns:1fr; max-width:460px; margin-inline:auto; }
  .split{ grid-template-columns:1fr; }
  .split--rev .split__media{ order:0; }
  .footer-grid{ grid-template-columns:1fr; }
  .contact-cards{ grid-template-columns:1fr; }

  .nav-toggle{ display:inline-flex; }
  /* chiuso = display:none (niente overflow orizzontale); aperto = comparsa in dissolvenza */
  .nav-menu{
    position:fixed; inset:0 0 0 auto; width:min(80vw,340px); z-index:65;
    background:var(--dark-2); flex-direction:column; align-items:flex-start;
    padding:5rem 1.8rem 2rem; gap:.4rem; box-shadow:var(--shadow); overflow-y:auto;
    display:none;
  }
  .nav-menu.open{ display:flex; animation:menuFade .26s var(--ease); }
  .nav-menu > li{ width:100%; }
  .nav-menu > li > a, .dropdown-toggle{ display:block; width:100%; padding:.8rem 0; font-size:1.1rem; }
  .has-dropdown .dropdown{ position:static; opacity:1; visibility:visible; transform:none; background:transparent; border:none; box-shadow:none; padding:0 0 .5rem 1rem; min-width:0; }
  .nav-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:55; opacity:0; visibility:hidden; transition:.3s; }
  .nav-overlay.open{ opacity:1; visibility:visible; }
}
@media (max-width: 560px){
  .kpi-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; text-align:center; }
}

/* reveal on scroll */
.reveal{ opacity:0; transform:translateY(24px); transition:.7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ *{ scroll-behavior:auto !important; } .reveal{ opacity:1; transform:none; } }

/* ============================================================
   LUXURY LAYER — Emerald & Gold
   Profondità, fili d'oro, glow, transizioni scenografiche
   ============================================================ */

/* Fondale con profondità: aloni smeraldo + oro, non più piatto */
body{
  background:
    radial-gradient(1300px 820px at 78% -8%, rgba(31,125,90,.22), transparent 62%),
    radial-gradient(1000px 720px at -5% 102%, rgba(201,160,76,.09), transparent 58%),
    var(--dark);
  background-attachment: fixed;
}

/* Scrollbar elegante */
*{ scrollbar-color: var(--gold) var(--dark-2); }
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background:var(--dark-2); }
::-webkit-scrollbar-thumb{ background:linear-gradient(var(--gold-deep),var(--gold)); border-radius:10px; border:2px solid var(--dark-2); }
::selection{ background:rgba(201,160,76,.32); color:#fff; }

/* Grandi titoli velati d'oro */
.hero__title h1, .section-head h2, .pillars-intro h2, .commit h2, .cta-band h2, .page-hero h1{
  background:linear-gradient(180deg, var(--cream) 0%, #ecd9af 55%, var(--gold-light) 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.accent{ background:var(--gold-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.eyebrow, .link-arrow{ color:var(--gold-light); }
.link-arrow:hover{ color:var(--cream); }

/* Filo d'oro tra le sezioni (venatura del marmo) */
.section, .site-footer{ position:relative; }
.section + .section::before, .hero + .section::before, .site-footer::before{
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:min(86%,1100px); height:1px; opacity:.55;
  background:linear-gradient(90deg, transparent, var(--gold-deep) 16%, var(--gold-light) 50%, var(--gold-deep) 84%, transparent);
}

/* Aura di profondità dietro l'hero */
.hero::before{
  content:""; position:absolute; inset:-12% -20% auto -20%; height:130%; z-index:-1; pointer-events:none;
  background:
    radial-gradient(620px 400px at 30% 32%, rgba(31,125,90,.32), transparent 70%),
    radial-gradient(520px 360px at 80% 42%, rgba(201,160,76,.20), transparent 72%);
  filter:blur(8px); animation:auraDrift 20s ease-in-out infinite alternate;
}
@keyframes auraDrift{ from{ transform:translate3d(-2%,0,0) scale(1);} to{ transform:translate3d(3%,2%,0) scale(1.08);} }

/* Bottoni oro lussuosi */
.btn-solid{ background:var(--gold-grad); background-size:200% 100%; color:var(--dark); border-color:transparent; box-shadow:0 12px 32px -14px rgba(201,160,76,.6); }
.btn-solid:hover{ background-position:100% 0; transform:translateY(-2px); box-shadow:0 18px 44px -16px rgba(236,208,137,.75); }
.btn-orange{ color:var(--gold-light); border-color:var(--gold); }
.btn-orange:hover{ background:var(--gold-grad); color:var(--dark); border-color:transparent; transform:translateY(-2px); }
.btn-cream{ box-shadow:0 8px 24px -14px rgba(30, 21, 6, .55); }

/* KPI dorati */
.kpi__num{ color:var(--gold-light); }
.kpi svg{ stroke:var(--gold-light); }

/* Card sfide: profondità + glow oro all'hover */
.card{ padding:1.8rem 1.4rem; border-radius:var(--radius); background:linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,0)); border:1px solid rgba(201,160,76,.14); transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.card:hover{ transform:translateY(-6px); border-color:rgba(201,160,76,.45); box-shadow:0 26px 52px -24px rgba(36, 25, 7, .8), inset 0 0 0 1px rgba(201,160,76,.12); }
.card__icon svg{ stroke:var(--gold-light); }

/* Pilastri: lift + cornice d'oro all'hover */
.pillar{ border:1px solid transparent; transition:transform .45s var(--ease), box-shadow .45s var(--ease); }
.pillar:hover{ transform:translateY(-8px); box-shadow:0 32px 64px -26px rgba(38, 27, 8, .72), 0 0 0 1px var(--gold); }
.pillar__media{ position:relative; }
.pillar__media::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 58%, rgba(13,44,32,.45)); }

/* Contatti */
.contact-card{ background:linear-gradient(165deg, rgba(201,160,76,.07), rgba(255,255,255,.01)); border-color:rgba(201,160,76,.16); transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.contact-card:hover{ transform:translateY(-5px); border-color:rgba(201,160,76,.42); box-shadow:0 26px 52px -24px rgba(36, 25, 7, .8); }
.contact-info .row strong{ color:var(--gold-light); }

/* Header / nav dorati */
.site-header{ border-bottom:1px solid rgba(201,160,76,.18); box-shadow:0 12px 34px -22px rgba(26, 18, 5, .62); }
.topbar{ border-bottom:1px solid rgba(201,160,76,.12); }
.nav-menu > li > a:hover, .nav-menu > li > a[aria-current="page"]{ color:var(--gold-light); }
.nav-menu > li > a[aria-current="page"]::after{ background:var(--gold-grad); }
.icon-link:hover{ color:var(--gold-light); }

/* Footer dorato */
.footer-brand h3{ background:var(--gold-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.footer-col h4{ color:var(--gold-light); }
.footer-social a:hover{ background:var(--gold-grad); border-color:transparent; color:var(--dark); }
.footer-contacts a:hover{ color:var(--gold-light); }

/* Reveal scenografico: slide + scale, con stagger */
.reveal{ opacity:0; transform:translateY(36px) scale(.98); transition:opacity .85s var(--ease), transform .85s var(--ease); transition-delay:var(--d,0s); }
.reveal.in{ opacity:1; transform:none; }
.cards > *:nth-child(2), .pillars > *:nth-child(2), .contact-cards > *:nth-child(2){ --d:.12s; }
.cards > *:nth-child(3), .pillars > *:nth-child(3){ --d:.24s; }

/* Parallax: evita scatti */
.pillar__media img, .split__media:not(.split__media--portrait) img{ will-change:transform; }

/* WhatsApp: battito */
.wa-float{ animation:waPulse 2.8s infinite; }
@keyframes waPulse{ 0%{ box-shadow:0 0 0 0 rgba(37,211,102,.45);} 70%{ box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow:0 0 0 0 rgba(37,211,102,0);} }

@media (prefers-reduced-motion: reduce){ .hero::before, .wa-float{ animation:none; } }

/* ============================================================
   CINEMATIC LAYER — smooth scroll, reveal in scena, marmo
   ============================================================ */

/* Lenis smooth scroll */
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-smooth iframe{ pointer-events:none; }

/* Fallback: senza JS nessun contenuto resta nascosto */
html:not(.js) .reveal, html:not(.js) .img-reveal, html:not(.js) .reveal-words .word{ opacity:1 !important; transform:none !important; clip-path:none !important; }

/* Marmo verde+oro fluido dietro l'hero */
.hero{ isolation:isolate; }
.hero__marble{
  position:absolute; inset:-22%; z-index:-2; pointer-events:none; opacity:.95; filter:blur(24px) saturate(1.3);
  background:
    radial-gradient(40% 56% at 16% 24%, rgba(38,165,118,.92), transparent 64%),
    radial-gradient(36% 50% at 76% 18%, rgba(220,176,84,.78), transparent 66%),
    radial-gradient(52% 66% at 66% 82%, rgba(20,105,74,.95), transparent 68%),
    radial-gradient(34% 48% at 24% 86%, rgba(236,208,137,.6), transparent 68%),
    radial-gradient(30% 42% at 90% 62%, rgba(201,160,76,.6), transparent 70%);
  animation:marbleFlow 22s ease-in-out infinite alternate;
}
@keyframes marbleFlow{ 0%{ transform:scale(1) translate(0,0) rotate(0deg);} 100%{ transform:scale(1.22) translate(2.5%,-2%) rotate(7deg);} }

/* Tocco marmo soffuso anche sui page-hero delle sottopagine */
.page-hero{ position:relative; isolation:isolate; overflow:clip; }   /* contiene il bagliore ::before (altrimenti sborda di lato = overflow orizzontale) */
.page-hero::before{
  content:""; position:absolute; inset:-30% -10% auto -10%; height:170%; z-index:-1; pointer-events:none; opacity:.4; filter:blur(48px);
  background:
    radial-gradient(40% 60% at 25% 30%, rgba(31,125,90,.5), transparent 70%),
    radial-gradient(34% 50% at 78% 35%, rgba(201,160,76,.3), transparent 72%);
  animation:marbleFlow 32s ease-in-out infinite alternate;
}

/* Parallax via custom property (coesiste con clip-path) */
.js .pillar__media img, .js .split__media:not(.split__media--portrait) img{
  transform:translate3d(0,var(--py,0),0) scale(1.08);
}

/* Immagini: reveal cinematografico a tendina */
.img-reveal{ clip-path:inset(0 0 100% 0); transition:clip-path 1.1s var(--ease); }
.img-reveal.in{ clip-path:inset(0 0 0 0); }

/* Titoli: parole che salgono in sequenza */
.reveal-words .word{ display:inline-block; opacity:0; transform:translateY(.72em) rotate(2.5deg); transition:opacity .7s var(--ease), transform .7s var(--ease); transition-delay:calc(var(--wi,0) * .045s); background-image:linear-gradient(180deg, var(--cream), #ecd9af 55%, var(--gold-light)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.reveal-words.in .word{ opacity:1; transform:none; }

/* Venatura d'oro che si disegna allo scroll */
.section + .section::before, .site-footer::before{ transform:translateX(-50%) scaleX(0); transform-origin:center; transition:transform 1.2s var(--ease) .1s; }
.section.in-view::before, .site-footer.in-view::before{ transform:translateX(-50%) scaleX(1); }

@media (prefers-reduced-motion: reduce){ .hero__marble, .page-hero::before{ animation:none; } }

/* ============================================================
   HORIZONTAL SCROLL — Esplora le aree (scroll verticale → orizzontale)
   ============================================================ */
.hscroll{ position:relative; background:var(--dark-2); }   /* altezza: gestita da JS (desktop) e dalle media query */
.hscroll__sticky{ position:sticky; top:84px; height:calc(100vh - 84px); overflow:hidden; display:flex; flex-direction:column; justify-content:center; }
.hscroll__head{ text-align:center; padding:0 6vw clamp(1.5rem,3vw,2.5rem); }
.hscroll__track{ display:flex; gap:clamp(1.2rem,2.2vw,2.2rem); padding:0 8vw; will-change:transform; }
.hcard__go{ display:inline-flex; align-items:center; min-height:40px; gap:.4rem; margin-top:.8rem; color:var(--gold-light); font-family:var(--font-head); font-weight:600; font-size:.9rem; transition:gap .2s var(--ease); }
.hslide:hover .hcard__go{ gap:.85rem; }
@media (max-width:900px){
  /* scroll-driven come desktop: sticky + translate restano attivi (li gestisce il JS); lo slide riempie quasi tutta la viewport */
  .hscroll__track{ padding:0 7vw; gap:1.4rem; }
}

/* ============================================================
   MARBLE BACKGROUND — marmo verde + oro diffuso su tutto il sito
   ============================================================ */
body{ background:#0a2418 !important; }
body::before{ content:""; position:fixed; inset:0; z-index:-3; background:url('/assets/marble-bg.webp') center center / cover no-repeat; }
@media (max-width:900px){ body::before{ background-image:url('/assets/marble-bg-m.webp'); } }
body::after{ content:""; position:fixed; inset:0; z-index:-2; background:linear-gradient(180deg, rgba(8,26,19,.78), rgba(7,22,16,.88)); }
/* sezioni trasparenti: il marmo filtra ovunque */
.bg-dark{ background:transparent !important; }
.bg-darker{ background:rgba(6,20,15,.42) !important; }
.hscroll{ background:transparent !important; }
.section{ background:transparent; }
.site-header{ background:rgba(9,28,21,.72) !important; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
/* Su mobile niente backdrop-filter sull'header: creerebbe un containing-block per il menu off-canvas (position:fixed), agganciandolo all'header invece che al viewport */
@media (max-width:900px){ .site-header{ background:var(--dark) !important; -webkit-backdrop-filter:none; backdrop-filter:none; } }
.topbar{ background:rgba(7,22,16,.82) !important; }
.site-footer{ background:rgba(7,22,16,.76) !important; }
/* via il vecchio alone radiale dell'hero (sostituito dal marmo globale) */
.hero__marble{ display:none !important; }
.hero::before{ display:none !important; }

/* ============================================================
   REFINEMENTS — hero, bottoni, foto, icone, spazi
   ============================================================ */
.hero__title{ max-width:1240px; }
.hero__title h1{ font-size:clamp(2rem,1.1rem + 3vw,3.25rem); }
.hero__sub{ max-width:940px; }
.hero__grid{ align-items:end; margin-top:clamp(1.4rem,3vw,2.4rem); }
.hero__right{ display:flex; flex-direction:column; gap:clamp(1.4rem,2.6vw,2.2rem); align-self:center; }
.hero__cta{ justify-content:flex-start; margin-top:0; }
@media (max-width:900px){ .hero__cta{ justify-content:center; } .hero__right{ align-items:center; } }

/* Icone KPI: badge tondo dorato */
.kpi__icon{ width:56px; height:56px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; background:linear-gradient(150deg, rgba(201,160,76,.20), rgba(201,160,76,.04)); border:1px solid rgba(201,160,76,.34); box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.kpi__icon svg{ width:28px; height:28px; stroke:var(--gold-light); }
.kpi svg{ width:28px; height:28px; }

/* Bottoni: hover sobrio (via il glow colorato) */
.btn-solid{ box-shadow:0 10px 26px -14px rgba(0,0,0,.6) !important; }
.btn-solid:hover{ box-shadow:0 14px 30px -14px rgba(0,0,0,.7) !important; transform:translateY(-2px); filter:brightness(1.05); }
.btn-orange:hover{ background:var(--gold-grad); color:var(--dark); border-color:transparent; box-shadow:0 12px 28px -16px rgba(0,0,0,.55); }

/* Foto sezioni sicurezza: abbassa il crop (mostra la scritta in alto) */
.split__media:not(.split__media--portrait) img{ object-position:center 16%; }

/* Spazio "Esplora": titolo non parte centrato lasciando vuoto sopra */
.hscroll__sticky{ justify-content:flex-start; padding-top:clamp(1.5rem,4vh,3rem); }
.commit{ margin-bottom:0; }

/* Thank-you / percorso strategico */
.ps-num{ display:inline-block; font-family:var(--font-head); font-weight:700; font-size:1.7rem; line-height:1; color:var(--gold-light); margin-bottom:.7rem; }
.ps-save{ display:flex; flex-direction:row; align-items:flex-end; justify-content:center; gap:clamp(1.5rem,4vw,3rem); flex-wrap:wrap; }
.ps-save__col{ display:flex; flex-direction:column; align-items:flex-start; gap:1.1rem; }
.ps-save__photo img{ height:clamp(220px,30vh,320px); width:auto; object-fit:contain; filter:drop-shadow(0 18px 34px rgba(0,0,0,.5)); -webkit-mask-image:linear-gradient(to bottom,#000 80%,transparent); mask-image:linear-gradient(to bottom,#000 80%,transparent); }
.ps-qr{ width:132px; padding:9px; background:#fff; border-radius:14px; box-shadow:var(--shadow); }
.ps-qr img{ width:100%; height:auto; display:block; aspect-ratio:1/1; object-fit:contain; }

/* ============================================================
   HSLIDE — slide grandi rettangolari (stile archigreen)
   ============================================================ */
@media (min-width:901px){ .hscroll{ height:420vh; } }   /* fallback altezza solo desktop; su mobile resta height:auto */
.hscroll__track{ gap:clamp(2.5rem,4vw,5rem); align-items:start; padding:0 2.5vw; }
.hslide{ flex:0 0 min(95vw,1560px); display:grid; grid-template-columns:0.78fr 1.22fr; grid-template-rows:auto auto; grid-template-areas:"num media" "text media"; column-gap:clamp(2rem,4vw,4.5rem); align-content:start; padding-top:clamp(1.5rem,4vh,3.5rem); }
.hslide__num{ grid-area:num; align-self:start; font-family:var(--font-head); font-weight:700; font-size:clamp(3rem,5.5vw,6rem); line-height:1; color:transparent; -webkit-text-stroke:1.5px rgba(201,160,76,.55); }
.hslide__text{ grid-area:text; align-self:start; padding-top:.3rem; }
.hslide__media{ grid-area:media; align-self:start; height:clamp(360px,54vh,520px); }
.hslide__cat{ font-family:var(--font-head); text-transform:uppercase; letter-spacing:.18em; font-size:.74rem; font-weight:600; color:var(--gold-light); }
.hslide__text h3{ font-size:clamp(1.6rem,1.1rem + 1.6vw,2.7rem); color:var(--cream); margin:.5rem 0 1rem; line-height:1.1; }
.hslide__text p{ color:var(--text); max-width:44ch; margin-bottom:1.5rem; }
.hslide__media{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); border:1px solid rgba(201,160,76,.2); }
.hslide__media img{ width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.hslide:hover .hslide__media img{ transform:scale(1.05); }
/* reveal a comparsa delle foto durante lo scroll orizzontale */
/* reveal foto slide solo desktop: su mobile (track traslato sotto overflow:hidden) le slide fuori vista resterebbero invisibili */
@media (min-width:901px){
  .js .hslide__media{ opacity:0; transform:translateY(24px) scale(1.04); transition:opacity .9s var(--ease), transform .9s var(--ease); }
  .hslide.slide-in .hslide__media{ opacity:1; transform:none; }
}
@media (max-width:900px){
  /* svh = altezza viewport "piccola" (barra URL inclusa): lo sticky non sfora mai sotto la barra del browser */
  .hscroll__sticky{ height:calc(100svh - 84px); padding-top:1rem; }
  .hscroll__head{ padding-bottom:1rem; }
  .hslide{ grid-template-columns:1fr; grid-template-rows:none; grid-template-areas:"num" "text" "media"; flex-basis:86vw; height:auto; row-gap:.7rem; scroll-snap-align:center; padding-top:0; }
  .hslide__num{ font-size:2.6rem; }
  .hslide__text h3{ margin:.3rem 0 .6rem; }
  .hslide__text p{ margin-bottom:1rem; }
  /* foto più contenuta e relativa all'altezza viewport: resta sempre dentro lo schermo, non tagliata in fondo */
  .hslide__media{ height:clamp(150px,24vh,210px); min-height:0; aspect-ratio:auto; }
}
/* fallback senza JS: scroll orizzontale nativo invece del pin */
html:not(.js) .hscroll{ height:auto !important; }
html:not(.js) .hscroll__sticky{ position:static; height:auto; overflow:visible; }
html:not(.js) .hscroll__track{ overflow-x:auto; transform:none !important; }

/* ============================================================
   AURA ORO — glow sui titoli + alone che segue il cursore
   ============================================================ */
.hero__title h1, .section-head h2, .pillars-intro h2, .commit h2, .cta-band h2, .page-hero h1, .hscroll__head h2{
  filter: drop-shadow(0 0 11px rgba(214,176,84,.34));
}
.cursor-glow{
  position:fixed; top:0; left:0; width:44px; height:44px; border-radius:50%;
  pointer-events:none; z-index:60; opacity:0; transition:opacity .3s ease;
  background:radial-gradient(circle, rgba(236,208,137,.6), rgba(201,160,76,.34) 44%, rgba(201,160,76,0) 72%);
  mix-blend-mode:screen; will-change:transform;
}
@media (prefers-reduced-motion: reduce){ .cursor-glow{ display:none; } }

/* ============================================================
   ACCESSIBILITÀ — focus, skip-link, fallback titoli, dropdown tastiera
   ============================================================ */
:focus-visible{ outline:2px solid var(--gold-light); outline-offset:3px; border-radius:4px; }
.skip{ position:absolute; left:-9999px; top:0; z-index:200; background:var(--gold-light); color:var(--dark); padding:.7rem 1.3rem; border-radius:0 0 10px 0; font-family:var(--font-head); font-weight:600; }
.skip:focus{ left:0; }

/* Fallback: se il browser non supporta background-clip:text, i titoli restano cream (mai trasparenti/invisibili) */
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .hero__title h1, .section-head h2, .pillars-intro h2, .commit h2, .cta-band h2, .page-hero h1, .hscroll__head h2,
  .reveal-words .word, .accent, .footer-brand h3{
    -webkit-text-fill-color:var(--cream) !important; color:var(--cream) !important; background:none !important;
  }
}

/* Dropdown apribile da tastiera SOLO su desktop (su mobile è un accordion statico) */
@media (min-width:901px){ .has-dropdown.open .dropdown{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); } }

/* Marmo non-fixed su mobile: evita jank/bug del background fixed su iOS Safari */
@media (max-width:900px){
  body{ position:relative; }
  body::before, body::after{ position:absolute; height:100%; min-height:100vh; }
}

/* ============================================================
   TESTIMONIANZE — muro statico (stile archigreen) verde+oro
   ============================================================ */
.testi-rating{
  display:flex; align-items:center; justify-content:center; gap:.7rem; flex-wrap:wrap;
  text-align:center; margin:0 auto clamp(2.2rem,4vw,3.4rem); color:var(--text-dim); font-size:1.05rem;
}
.testi-rating strong{ color:var(--cream); font-weight:600; }
.testi-stars{ color:#f3c14b; letter-spacing:2px; }
.testi-wall{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(1rem,1.6vw,1.5rem); align-items:start; }
.testi-col{ display:flex; flex-direction:column; gap:clamp(1rem,1.6vw,1.5rem); will-change:transform; transform:translate3d(0,var(--ty,0px),0); }
.testi-col--mid{ margin-top:clamp(1.6rem,3.2vw,3.2rem); }   /* sfasamento verticale come archigreen */
.testi-card{
  padding:1.7rem 1.6rem;
  border-radius:var(--radius);
  background:linear-gradient(162deg, rgba(11,32,23,.72), rgba(8,24,17,.56));
  border:1px solid rgba(201,160,76,.20);
  box-shadow:0 16px 40px -28px rgba(32, 22, 6, .72), inset 0 1px 0 rgba(236,208,137,.07);
  position:relative; transition:transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.testi-card:hover{ transform:translateY(-4px); border-color:rgba(201,160,76,.42); box-shadow:0 28px 56px -26px rgba(40, 28, 8, .9), 0 6px 26px -12px rgba(201,160,76,.16); }
.testi-card .testi-stars{ display:block; margin-bottom:.85rem; font-size:.92rem; }
.testi-card blockquote{
  color:var(--text); margin:0 0 1.15rem; font-size:.98rem; line-height:1.62;
  quotes:"\00AB" "\00BB"; text-wrap:pretty;
}
.testi-card blockquote::before{ content:open-quote; color:var(--gold); margin-right:.1em; }
.testi-card blockquote::after{ content:close-quote; color:var(--gold); margin-left:.05em; }
.testi-card figcaption{ display:flex; flex-direction:column; padding-top:.95rem; border-top:1px solid rgba(201,160,76,.16); }
.testi-name{ font-family:var(--font-head); font-weight:600; color:var(--gold-light); font-size:1.02rem; }
.testi-role{ color:var(--text-dim); font-size:.84rem; margin-top:.12rem; }
/* Sotto i 900px: carosello orizzontale a swipe (non 18 card impilate = pagina lunghissima) */
@media (max-width:900px){
  .testi-wall{
    display:flex; grid-template-columns:none; align-items:stretch;
    overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
    gap:1rem; padding:.25rem 1.1rem 1.1rem; scrollbar-width:none;
  }
  .testi-wall::-webkit-scrollbar{ display:none; }
  .testi-col{ display:contents; }                /* le 18 card diventano gli item del carosello */
  .testi-col--mid{ margin-top:0; }
  .testi-card{ flex:0 0 85vw; scroll-snap-align:center; }
}

/* ============================================================
   PINNED SHOWCASE — immagine fissa + step scroll-driven (stile archigreen)
   ============================================================ */
.pillars--mobile{ display:none; }            /* su desktop si usa il pinned */
.pinned{ position:relative; height:442vh; }   /* fallback per 9 step; l'altezza precisa la imposta il JS */
.pinned__inner{
  position:sticky; top:84px; height:calc(100vh - 84px);
  display:flex; flex-direction:column; justify-content:center; gap:clamp(.6rem,1.8vh,1.5rem);
  padding:16px 0 24px; overflow:hidden;
}
.pinned__inner .pillars-intro{ flex:0 0 auto; margin:0 auto; }
.pinned__stage{
  display:grid; grid-template-columns:1.04fr .96fr; gap:clamp(2rem,4vw,4.5rem);
  align-items:center; width:100%; min-height:0;
}
.pinned__media{
  position:relative; height:min(52vh,500px); border-radius:var(--radius); overflow:hidden;
  border:1px solid rgba(201,160,76,.22); box-shadow:var(--shadow); isolation:isolate;
}
.pinned__img{
  position:absolute; inset:0; margin:0; clip-path:inset(0 0 0 100%);
  transition:clip-path .9s cubic-bezier(.76,0,.24,1); will-change:clip-path;
}
.pinned__img:first-child{ clip-path:inset(0); }
.pinned__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.pinned__content{ align-self:center; }
.pinned__top{ display:flex; align-items:baseline; justify-content:space-between; gap:1rem; }
.pinned__count{ font-family:var(--font-head); color:var(--text-dim); font-size:.95rem; white-space:nowrap; }
.pinned__count b{ font-size:clamp(1.7rem,1.2rem + 1.6vw,2.6rem); color:var(--gold-light); font-weight:600; line-height:1; }
.pinned__count i{ font-style:normal; }
.pinned__rule{ height:1px; margin:1.1rem 0 1.7rem; background:linear-gradient(90deg, var(--gold), rgba(201,160,76,.12)); }
.pinned__panels{ position:relative; min-height:clamp(230px,34vh,320px); }
.pinned__panel{
  position:absolute; inset:0; opacity:0; transform:translateY(24px);
  transition:opacity .6s var(--ease), transform .6s var(--ease); pointer-events:none;
}
.pinned__panel.is-active{ opacity:1; transform:none; pointer-events:auto; }
.pinned__cat{ display:block; font-family:var(--font-head); text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; font-weight:600; color:var(--gold); margin-bottom:.55rem; }
.pinned__panel h3{ color:var(--cream); font-size:clamp(1.45rem,1.1rem + 1.2vw,2.1rem); margin-bottom:1rem; }
.pinned__panel p{ color:var(--text-dim); margin-bottom:1.5rem; max-width:48ch; }
@media (max-width:900px){
  /* scroll-driven come desktop: immagine sopra (wipe) + testo sotto che cambia in sync, pilotati dallo scroll del dito */
  .pillars--mobile{ display:none; }
  .pinned{ display:block; }
  .pinned__inner{ justify-content:flex-start; gap:.7rem; padding:.8rem 0 1.1rem; }
  .pinned__inner .pillars-intro{ margin-bottom:.2rem; }
  .pinned__inner .pillars-intro h2{ font-size:clamp(1.35rem,1.05rem + 1.6vw,1.8rem); }
  .pinned__inner .pillars-intro p{ font-size:.86rem; line-height:1.5; margin-top:.45rem; }
  .pinned__stage{ grid-template-columns:1fr; grid-template-rows:auto auto; gap:.9rem; align-items:start; }
  .pinned__media{ height:min(30vh,280px); }
  .pinned__content{ align-self:start; }
  .pinned__panels{ min-height:clamp(150px,24vh,220px); }
}
/* fallback senza JS o con reduced-motion: niente pin/wipe, si mostra la griglia statica delle 9 card */
@media (prefers-reduced-motion: reduce){
  .pinned{ display:none; }
  .pillars--mobile{ display:grid; gap:1rem; }
}
html:not(.js) .pinned{ display:none; }
html:not(.js) .pillars--mobile{ display:grid; gap:1rem; }

/* ============================================================
   Diagnosi Express — Radar della Sicurezza Integrata
   ============================================================ */
/* Banda d'ingresso in home */
.diag-band{
  display:grid; grid-template-columns:1fr auto; gap:clamp(1.2rem,3vw,2.6rem); align-items:center;
  background:linear-gradient(120deg, rgba(31,125,90,.2), rgba(201,160,76,.1));
  border:1px solid rgba(201,160,76,.3); border-radius:var(--radius);
  padding:clamp(1.6rem,1rem + 3vw,2.8rem); box-shadow:var(--shadow);
}
.diag-band__txt .eyebrow{ display:block; margin-bottom:.55rem; }
.diag-band__txt h2{ font-size:clamp(1.5rem,1.1rem + 1.8vw,2.2rem); }
.diag-band__txt p{ color:var(--text-dim); margin-top:.7rem; max-width:62ch; }
.diag-band__txt p strong{ color:var(--cream); }
.diag-band__cta{ justify-self:end; }
@media (max-width:760px){
  .diag-band{ grid-template-columns:1fr; }
  .diag-band__cta{ justify-self:stretch; }
  .diag-band__cta .btn{ width:100%; justify-content:center; }
}

.diag-hero{ text-align:center; }
.diag-hero .lead{ max-width:760px; margin:1.1rem auto 0; color:var(--text-dim); }
.diag-hero .lead strong{ color:var(--cream); }
.diag{ max-width:760px; margin-inline:auto; scroll-margin-top:96px; }
.diag-noscript{ text-align:center; }
.diag-noscript p{ color:var(--text-dim); margin-bottom:1.2rem; }

.diag-card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border:1px solid rgba(201,160,76,.28);
  border-radius:var(--radius);
  padding:clamp(1.5rem,1rem + 3vw,2.8rem);
  box-shadow:var(--shadow);
}
.diag-enter{ opacity:0; transform:translateY(14px); }
.diag-enter-active{ opacity:1; transform:none; transition:opacity .4s var(--ease), transform .45s var(--ease); }

.diag-kicker{ font-family:var(--font-head); text-transform:uppercase; letter-spacing:.16em; font-size:.72rem; font-weight:600; color:var(--gold); margin-bottom:.7rem; }
.diag-fineprint{ margin-top:1rem; font-size:.85rem; color:var(--text-dim); }

/* hook "Ore 20:00" (Fase 2) */
.diag-hook{ text-align:center; }
.diag-hook__time{ font-family:var(--font-head); font-weight:700; font-size:clamp(2.8rem,2rem + 4vw,4.6rem); line-height:1; letter-spacing:.03em; color:var(--gold-light); text-shadow:0 0 32px rgba(201,160,76,.35); }
.diag-hook .diag-kicker{ margin-top:.5rem; }
.diag-hook h2{ margin:.2rem 0 .9rem; }
.diag-hook p{ color:var(--text-dim); max-width:54ch; margin-inline:auto; }
.diag-hook p em{ color:var(--cream); font-style:normal; }
.diag-hook__q{ color:var(--cream) !important; font-family:var(--font-head); font-weight:600; font-size:1.15rem; margin-top:1.4rem; }
.diag-hook .diag-options{ max-width:520px; margin:1.1rem auto 0; }
.diag-hook__bridge{ margin-top:1.5rem; padding-top:1.3rem; border-top:1px solid rgba(201,160,76,.2); }
.diag-hook__bridge p{ color:var(--cream); font-size:clamp(1.05rem,1rem + .4vw,1.2rem); }
.diag-hook__bridge em{ color:var(--gold-light); font-style:normal; }
.diag-hook .diag-start{ margin-top:1.4rem; }

/* intro */
.diag-intro{ text-align:center; }
.diag-intro h2{ margin-bottom:.9rem; }
.diag-intro p{ color:var(--text-dim); max-width:60ch; margin-inline:auto; }
.diag-start{ margin-top:1.6rem; }

/* progress + meta domanda */
.diag-progress{ height:6px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; margin-bottom:1.2rem; }
.diag-progress__bar{ height:100%; border-radius:999px; background:var(--gold-grad); transition:width .4s var(--ease); }
.diag-qmeta{ display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.diag-step{ font-family:var(--font-head); font-weight:600; font-size:.82rem; color:var(--text-dim); }
.diag-tag{ font-family:var(--font-head); font-weight:600; font-size:.7rem; text-transform:uppercase; letter-spacing:.1em; color:var(--gold-light); border:1px solid rgba(201,160,76,.4); padding:.25rem .6rem; border-radius:999px; }
.diag-qtext{ font-size:clamp(1.3rem,1.05rem + 1.2vw,1.85rem); margin-bottom:1.4rem; }

/* opzioni */
.diag-options{ display:grid; gap:.7rem; }
.diag-option{
  display:flex; align-items:center; gap:.85rem; width:100%; text-align:left;
  padding:1rem 1.1rem; border-radius:var(--radius-sm);
  background:rgba(255,255,255,.03); border:1.5px solid rgba(255,255,255,.1);
  color:var(--text); font-size:1.02rem; transition:.2s var(--ease);
}
.diag-option__dot{ flex:0 0 auto; width:20px; height:20px; border-radius:50%; border:2px solid rgba(201,160,76,.55); transition:.2s var(--ease); }
.diag-option__t{ line-height:1.3; }
.diag-option:hover, .diag-option:focus-visible{ border-color:var(--gold); background:rgba(201,160,76,.1); transform:translateY(-1px); outline:none; }
.diag-option:hover .diag-option__dot, .diag-option:focus-visible .diag-option__dot{ border-color:var(--gold); box-shadow:inset 0 0 0 4px rgba(201,160,76,.5); }
.diag-option.is-picked{ border-color:var(--gold); background:rgba(201,160,76,.18); }
.diag-option.is-picked .diag-option__dot{ background:var(--gold); border-color:var(--gold); box-shadow:inset 0 0 0 3px var(--dark); }

.diag-back{ margin-top:1.3rem; font-family:var(--font-head); font-weight:500; font-size:.9rem; color:var(--text-dim); }
.diag-back:hover{ color:var(--gold-light); }

/* risultato */
.diag-result__head{ text-align:center; margin-bottom:1.8rem; }
.diag-result__head p{ color:var(--text-dim); max-width:62ch; margin:.7rem auto 0; }
.diag-level{ display:inline-block; font-family:var(--font-head); padding:.05em .5em; border-radius:8px; }
.diag-level.lvl-low{ color:#f0b8a0; background:rgba(224,120,60,.16); }
.diag-level.lvl-mid{ color:var(--gold-light); background:rgba(201,160,76,.16); }
.diag-level.lvl-high{ color:#a8e0bf; background:rgba(31,125,90,.22); }

.diag-result__grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(1.2rem,3vw,2.2rem); align-items:center; }
.diag-radarwrap{ position:relative; text-align:center; }
.diag-radar{ width:100%; max-width:340px; height:auto; margin-inline:auto; overflow:visible; }
.diag-radar__grid{ fill:none; stroke:rgba(255,255,255,.1); stroke-width:1; }
.diag-radar__spoke{ stroke:rgba(255,255,255,.08); stroke-width:1; }
.diag-radar__area{ fill:rgba(201,160,76,.28); stroke:var(--gold); stroke-width:2; stroke-linejoin:round; }
.diag-radar__dot{ fill:var(--gold-light); stroke:var(--dark); stroke-width:1.5; }
.diag-radar__label{ fill:var(--text-dim); font-family:var(--font-head); font-size:11px; font-weight:600; }
.diag-radar__plot.is-pre{ opacity:0; transform:scale(.55); transform-box:fill-box; transform-origin:center; }
.diag-radar__plot.is-in{ opacity:1; transform:scale(1); transition:opacity .5s ease, transform .7s var(--ease); }
.diag-score{ margin-top:.6rem; font-family:var(--font-head); }
.diag-score span{ font-size:2.4rem; font-weight:700; color:var(--cream); line-height:1; }
.diag-score small{ display:block; font-size:.8rem; color:var(--text-dim); margin-top:.2rem; }

.diag-result__side{ display:grid; gap:1rem; align-content:center; }
.diag-keyfinding, .diag-cost{ background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.1); border-radius:var(--radius-sm); padding:1.1rem 1.2rem; }
.diag-keyfinding{ border-color:rgba(224,120,60,.4); }
.diag-keyfinding__tag, .diag-cost__tag{ display:block; font-family:var(--font-head); font-weight:600; font-size:.68rem; text-transform:uppercase; letter-spacing:.12em; margin-bottom:.4rem; }
.diag-keyfinding__tag{ color:var(--orange); }
.diag-cost__tag{ color:var(--gold); }
.diag-keyfinding h3{ font-size:1.25rem; margin-bottom:.4rem; }
.diag-keyfinding p, .diag-cost p{ color:var(--text-dim); font-size:.95rem; }
.diag-keyfinding p strong, .diag-cost p strong{ color:var(--cream); }
.diag-howto{ margin-top:.7rem; }
.diag-howto summary{ cursor:pointer; font-family:var(--font-head); font-weight:600; font-size:.76rem; color:var(--gold); list-style:none; display:inline-flex; align-items:center; gap:.4rem; transition:color .2s var(--ease); }
.diag-howto summary::-webkit-details-marker{ display:none; }
.diag-howto summary::after{ content:'+'; font-size:1em; opacity:.8; }
.diag-howto[open] summary::after{ content:'\2212'; }
.diag-howto summary:hover{ color:var(--gold-light); }
.diag-howto > p{ margin-top:.5rem; font-size:.82rem; line-height:1.55; color:var(--text-dim); }
.diag-howto > p em{ color:var(--cream); font-style:normal; }

.diag-cta{ margin-top:1.8rem; padding-top:1.6rem; border-top:1px solid rgba(201,160,76,.2); text-align:center; }
.diag-cta h3{ font-size:1.4rem; margin-bottom:.5rem; }
.diag-cta p{ color:var(--text-dim); max-width:58ch; margin:0 auto 1.3rem; }
.diag-cta p em{ color:var(--cream); font-style:normal; }
.diag-cta__btns{ display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; }
.diag-result .diag-back{ display:block; margin:1.4rem auto 0; }

@media (max-width:640px){
  .diag-result__grid{ grid-template-columns:1fr; }
  .diag-cta__btns .btn{ width:100%; justify-content:center; }
}
@media (prefers-reduced-motion: reduce){
  .diag-enter, .diag-enter-active{ transition:none; opacity:1; transform:none; }
}
