/* ============================================
   Giglio Consulenza — foglio di stile condiviso
   Palette navy/sabbia/oro · Playfair Display + Archivo
   ============================================ */
:root{
  --navy:#12263A;
  --navy-deep:#0B1B2B;
  --sand:#F0E9DC;
  --sand-soft:#F7F2E8;
  --gold:#B9924C;
  --gold-soft:#D8BC85;
  --ink:#1E2A36;
  --muted:#5C6B7A;
  --white:#FCFAF5;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Archivo',sans-serif;
  color:var(--ink);
  background:var(--sand-soft);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.serif{font-family:'Playfair Display',serif}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.wrap-narrow{max-width:760px;margin:0 auto;padding:0 24px}

/* ---------- NAV ---------- */
nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:rgba(247,242,232,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(18,38,58,.08);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{font-family:'Playfair Display',serif;font-weight:600;font-size:1.15rem;letter-spacing:.02em;color:var(--navy);text-decoration:none}
.brand em{font-style:italic;color:var(--gold)}
.nav-links{display:flex;gap:30px;align-items:center;list-style:none}
.nav-links a{text-decoration:none;font-size:.82rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);transition:color .2s}
.nav-links a:hover,.nav-links a.active{color:var(--navy)}
.nav-cta{background:var(--navy);color:var(--white)!important;padding:10px 22px;border-radius:2px;font-weight:500}
.nav-cta:hover{background:var(--gold)}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;font-size:1.5rem;color:var(--navy)}
@media(max-width:820px){
  .nav-links{
    position:fixed;top:68px;left:0;right:0;
    background:var(--sand-soft);flex-direction:column;gap:0;
    border-bottom:1px solid rgba(18,38,58,.1);
    max-height:0;overflow:hidden;transition:max-height .3s ease;
  }
  .nav-links.open{max-height:400px}
  .nav-links li{width:100%;text-align:center;border-top:1px solid rgba(18,38,58,.06)}
  .nav-links a{display:block;padding:16px}
  .nav-cta{margin:12px auto;display:inline-block!important}
  .nav-toggle{display:block}
}

/* ---------- BUTTONS ---------- */
.btn{display:inline-block;text-decoration:none;padding:15px 34px;border-radius:2px;font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;font-weight:600;transition:all .25s;cursor:pointer;border:none}
.btn-gold{background:var(--gold);color:var(--navy-deep)}
.btn-gold:hover{background:var(--gold-soft)}
.btn-ghost{border:1px solid rgba(240,233,220,.35);color:var(--sand)}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold-soft)}
.btn-navy{background:var(--navy);color:var(--white)}
.btn-navy:hover{background:var(--gold);color:var(--navy-deep)}

/* ---------- PAGE HEADER (interne) ---------- */
.page-head{background:var(--navy);color:var(--sand);padding:150px 0 70px;position:relative;overflow:hidden}
.page-head::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 50% 60% at 88% 20%,rgba(185,146,76,.14),transparent 60%);pointer-events:none}
.page-head .eyebrow{font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-soft);margin-bottom:18px;font-weight:500}
.page-head h1{font-size:clamp(2rem,5vw,3.2rem);font-weight:500;line-height:1.15;max-width:20ch;position:relative;z-index:1}
.page-head h1 em{font-style:italic;color:var(--gold-soft)}
.page-head .lead{font-family:'Playfair Display',serif;font-style:italic;font-size:1.15rem;color:rgba(240,233,220,.85);margin-top:20px;max-width:46ch}

/* ---------- LEGAL / CONTENT ---------- */
.doc{padding:80px 0 100px}
.doc h2{font-size:1.5rem;color:var(--navy);margin:44px 0 16px;font-weight:600}
.doc h2:first-child{margin-top:0}
.doc h3{font-size:1.1rem;color:var(--navy);margin:28px 0 10px;font-weight:600}
.doc p{color:var(--ink);margin-bottom:16px}
.doc ul,.doc ol{margin:0 0 18px 22px;color:var(--ink)}
.doc li{margin-bottom:8px}
.doc a{color:var(--gold);text-decoration:none;font-weight:500}
.doc a:hover{text-decoration:underline}
.doc .updated{font-size:.85rem;color:var(--muted);margin-bottom:36px;font-style:italic}
.fill{background:rgba(185,146,76,.14);border:1px dashed var(--gold);padding:1px 6px;border-radius:2px;font-weight:600;color:var(--navy)}
.callout{background:var(--white);border-left:3px solid var(--gold);padding:20px 24px;margin:24px 0;border-radius:0 2px 2px 0}
.callout p:last-child{margin-bottom:0}

/* ---------- DATA TABLE (info intermediario) ---------- */
.info-table{width:100%;border-collapse:collapse;margin:24px 0;background:var(--white);border:1px solid rgba(18,38,58,.1)}
.info-table td{padding:14px 18px;border-bottom:1px solid rgba(18,38,58,.08);vertical-align:top;font-size:.95rem}
.info-table tr:last-child td{border-bottom:none}
.info-table td:first-child{font-weight:600;color:var(--navy);width:38%;background:var(--sand-soft)}

/* ---------- FOOTER ---------- */
footer{background:var(--navy-deep);color:rgba(240,233,220,.6);padding:60px 0 32px;font-size:.9rem}
.foot-top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(240,233,220,.12)}
@media(max-width:720px){.foot-top{grid-template-columns:1fr;gap:32px}}
.foot-brand{font-family:'Playfair Display',serif;font-size:1.2rem;color:var(--sand);margin-bottom:14px}
.foot-brand em{font-style:italic;color:var(--gold-soft)}
.foot-col h4{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-soft);margin-bottom:16px;font-weight:600}
.foot-col ul{list-style:none}
.foot-col li{margin-bottom:10px}
.foot-col a{text-decoration:none;transition:color .2s}
.foot-col a:hover{color:var(--gold-soft)}
.foot-socials{display:flex;gap:14px;margin-top:16px}
.foot-socials a{width:38px;height:38px;border:1px solid rgba(240,233,220,.25);border-radius:2px;display:flex;align-items:center;justify-content:center;transition:all .2s}
.foot-socials a:hover{border-color:var(--gold);background:rgba(185,146,76,.12)}
.foot-socials svg{width:18px;height:18px;fill:rgba(240,233,220,.7)}
.foot-socials a:hover svg{fill:var(--gold-soft)}
.foot-bottom{padding-top:28px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.82rem;color:rgba(240,233,220,.45)}
.foot-bottom .disclaimer{max-width:60ch;line-height:1.5}

/* ---------- REVEAL ---------- */
.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.js .reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.js .reveal{opacity:1!important;transform:none!important;transition:none!important}}
