/* ============================================================
   PARETO SECURITIES — Kit CSS
   Scoped a .pareto-page — non modifica le altre pagine
   ============================================================ */

/* Font override: usa Playfair Display (già caricato nella pagina) */
.pareto-page{
  --p-navy:#061827;--p-navy-deep:#031421;
  --p-gold:#b8924f;--p-gold-ink:#79551f;
  --p-ivory:#f6f4ef;--p-ink:#102331;--p-muted:#465563;
  --p-serif:'Playfair Display',Georgia,'Times New Roman',serif;
  --p-sans:Inter,Arial,Helvetica,system-ui,sans-serif;
  margin:0;background:#fff;color:var(--p-ink);
  font-family:var(--p-sans);font-size:16px;line-height:1.5
}
.pareto-page *{box-sizing:border-box}
.pareto-page [hidden]{display:none!important}
.pareto-page img{max-width:100%;display:block}
.pareto-page button,.pareto-page input,.pareto-page select{font:inherit}
.pareto-page button,.pareto-page a{-webkit-tap-highlight-color:transparent}
.pareto-page button{cursor:pointer}
.pareto-page a{color:inherit;text-decoration:none}
.pareto-page h1,.pareto-page h2,.pareto-page h3,.pareto-page h4,.pareto-page p{margin:0}
.pareto-page h1,.pareto-page h2,.pareto-page h3{font-family:var(--p-serif);font-weight:400}
.pareto-page :is(a,button,[tabindex]):focus-visible{outline:3px solid #ad782b;outline-offset:5px}
.pareto-page :is(.p-header,.p-hero,.p-card-dark) :is(a,button):focus-visible{outline-color:#f1d59f}
.pareto-page section{scroll-margin-top:105px}
.p-symbols{position:absolute;width:0;height:0;overflow:hidden}
.p-wrap{width:min(1320px,calc(100% - 112px));margin-inline:auto}
.p-icon{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.p-skip{position:fixed;top:8px;left:8px;transform:translateY(-160%);z-index:1000;background:white;color:var(--p-ink);padding:12px}
.p-skip:focus{transform:none}

/* ── HEADER ─────────────────────────────────────────────── */
.p-header{position:sticky;top:0;z-index:50;background:var(--p-navy);color:white}
.p-header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.p-brand{width:165px;flex-shrink:0}
.p-brand img{width:100%;height:58px;object-fit:contain;object-position:left center}
.p-navigation{display:flex;align-items:center;gap:29px;margin-left:auto;margin-right:auto}
.p-navigation a{font-size:14px;white-space:nowrap;position:relative}
.p-navigation a:after{content:'';position:absolute;left:0;right:0;bottom:-7px;height:1px;background:var(--p-gold);transform:scaleX(0);transition:transform .2s}
.p-navigation a:hover:after{transform:scaleX(1)}
.p-account{display:flex;gap:16px;align-items:center}
.p-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border:1px solid transparent;border-radius:4px;font-size:14px;font-weight:600;line-height:1.3;transition:background .2s,border-color .2s,transform .2s;text-align:center}
.pareto-page .p-button-gold{background:var(--p-gold);color:#061827;border-color:var(--p-gold)}
.p-button-gold:hover{background:#c8a565;border-color:#c8a565;transform:translateY(-2px)}
.pareto-page .p-button-outline{background:rgba(4,22,35,.2);color:white;border-color:#dbe2e6}
.p-button-outline:hover{background:rgba(255,255,255,.1);transform:translateY(-2px)}
.p-account .p-button{min-height:44px;padding:10px 23px;font-size:13px}
.p-menu-toggle{display:none}

/* ── HERO ────────────────────────────────────────────────── */
.p-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--p-navy-deep);color:white}
.p-hero-photo{position:absolute;z-index:-3;right:0;top:0;width:73%;height:100%;object-fit:cover;object-position:78% center}
.p-hero-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#041824 0%,#041824 33%,rgba(4,24,36,.94) 43%,rgba(4,24,36,.52) 62%,rgba(4,24,36,.03) 100%)}
.p-orbits{position:absolute;z-index:-1;right:-4%;top:-5%;width:75%;height:110%;stroke:var(--p-gold);stroke-width:1;opacity:.65;pointer-events:none}
.p-hero-inner{position:relative;min-height:590px;display:flex;align-items:center;padding-block:48px 24px}
.p-hero-copy{position:relative;width:58%;z-index:2}
.p-eyebrow{text-transform:uppercase;letter-spacing:.24em;font-size:12px;font-weight:600;line-height:1.5;color:var(--p-gold-ink)}
.p-hero .p-eyebrow{color:#dec08a;letter-spacing:.3em;margin-bottom:18px}
.p-hero h1{font-size:clamp(52px,5.15vw,76px);line-height:1.02;letter-spacing:-.045em;font-weight:400}
.p-hero h1 em{font-style:normal;color:#c8a360}
.p-hero-description{font-size:21px;line-height:1.5;margin-top:22px!important;color:#f0f3f6}
.p-hero-actions{display:flex;gap:16px;margin-top:25px;flex-wrap:wrap}
.p-risk{margin-top:29px!important;font-size:13px;color:#d0dce4;max-width:530px;line-height:1.6}
.p-hero-steps{position:absolute;left:47%;top:76px;display:flex;flex-direction:column;gap:18px;z-index:3}
.p-hero-step{display:flex;gap:17px;align-items:flex-start;padding:18px 20px;width:232px;min-height:112px;background:rgba(5,25,40,.91);border:1px solid rgba(184,146,79,.32);border-radius:4px;box-shadow:0 8px 25px #00121c30;transition:transform .2s,border-color .2s}
.p-hero-step:nth-child(2){margin-left:34px}
.p-hero-step:nth-child(3){margin-left:12px}
.p-hero-step:hover{transform:translateX(5px);border-color:var(--p-gold)}
.p-step-number{font:34px/1.2 var(--p-serif);color:#d6b273;margin-top:4px}
.p-hero-step .p-icon{color:#d6b273;width:27px;height:27px;margin-bottom:4px}
.p-hero-step h2{font-size:20px;line-height:1.2}
.p-hero-step p{font-size:13px;color:#e3eaf0;margin-top:3px}

/* ── PROCESS (3 PASSAGGI) ────────────────────────────────── */
.p-process{background:var(--p-ivory)}
.p-process-grid{display:grid;grid-template-columns:repeat(3,1fr);padding-block:26px}
.p-process-grid>a,.p-process-grid>button{display:flex;gap:22px;align-items:center;background:none;border:0;text-align:left;color:var(--p-ink);padding:0 25px;border-right:1px solid #dedbd2}
.p-process-grid>:first-child{padding-left:0}
.p-process-grid>:last-child{border:0;padding-right:0}
.p-process-grid>*>span{font:58px/1 var(--p-serif);color:var(--p-gold)}
.p-process h2{font-size:25px;line-height:1.25}
.p-process p{font-size:14px;margin-top:3px;color:#384755}
.p-process a:hover h2,.p-process button:hover h2{text-decoration:underline;text-decoration-color:var(--p-gold);text-underline-offset:5px}

/* ── SOLUZIONI ───────────────────────────────────────────── */
.p-solutions{padding-block:30px 18px}
.p-section-title{font-size:clamp(31px,3.65vw,52px);line-height:1.13;letter-spacing:-.045em}
.p-solutions .p-section-title{margin-top:9px}
.p-section-intro{font-size:19px;line-height:1.5;margin-top:8px!important;margin-bottom:27px!important}
.p-card-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
.p-card{position:relative;isolation:isolate;overflow:hidden;border-radius:7px;min-height:305px;background:var(--p-ivory);border:1px solid #e5e4e1}
.p-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;transition:transform .45s}
.p-card:hover>img{transform:scale(1.035)}
.p-card:after{position:absolute;inset:0;content:'';z-index:-2;pointer-events:none}
.p-card-dark{color:white;background:var(--p-navy);border-color:#193141}
.p-card-management{grid-column:span 7}
.p-card-management:after{background:linear-gradient(90deg,rgba(3,21,33,.98),rgba(3,21,33,.88) 38%,rgba(3,21,33,.2) 90%)}
.p-card-management>img{object-position:75% center}
.p-card-etf{grid-column:span 5}
.p-card-etf:after{background:linear-gradient(90deg,#f7f5ef 0%,rgba(247,245,239,.94) 33%,rgba(247,245,239,.30) 85%)}
.p-card-etf>img{object-position:right center}
.p-card-content{display:flex;flex-direction:column;align-items:flex-start;height:100%;position:relative;padding:27px 30px}
.p-card-content>.p-icon{color:var(--p-gold-ink);margin-bottom:10px}
.p-card-dark .p-card-content>.p-icon{color:#d8b574}
.p-card h3{font-size:30px;line-height:1.08;letter-spacing:-.025em}
.p-card-subtitle{font:18px/1.4 var(--p-serif);margin-top:5px!important}
.p-card-content>p:not(.p-card-subtitle){font-size:15px;line-height:1.55;max-width:295px;margin-top:13px}
.p-card-management .p-card-content>p{max-width:350px}
.p-card-etf .p-card-content>p{max-width:255px}
.p-text-link{border:0;background:none;padding:10px 0 0;margin-top:auto;display:inline-flex;align-items:center;gap:12px;color:var(--p-gold-ink);font-size:15px;font-weight:600;min-height:44px;text-align:left}
.p-card-dark .p-text-link{color:#eed09b}
.p-text-link svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.4;fill:none;transition:transform .2s}
.p-text-link:hover svg{transform:translateX(4px)}
.p-card-small{grid-column:span 4;min-height:335px}
.p-card-small .p-card-content{justify-content:flex-end;padding:105px 28px 22px}
.p-card-small h3{font-size:26px}
.p-card-small .p-card-content>.p-icon{width:26px;height:26px;margin-bottom:8px}
.p-card-small .p-card-content>p:not(.p-card-subtitle){font-size:15px;margin-top:9px}
.p-card-small .p-text-link{margin-top:12px;padding-top:0}
.p-card-small:after{background:linear-gradient(0deg,rgba(3,21,33,.99) 0%,rgba(3,21,33,.91) 43%,rgba(3,21,33,.18) 100%)}
.p-card-bonds>img{object-position:30% center}
.p-card-private>img{object-position:80% center}
.p-card-tailored>img{object-position:center 25%}

/* ── OBIETTIVI ───────────────────────────────────────────── */
.p-goals{background:var(--p-ivory);padding-block:32px 38px}
.p-goals-grid{display:grid;grid-template-columns:.85fr 1.3fr;gap:30px;align-items:start}
.p-goals-menu .p-section-title{font-size:clamp(29px,3.1vw,42px);margin-top:8px;margin-bottom:18px}
.p-goal-list{display:flex;flex-direction:column;gap:7px}
.p-goal-list button{display:flex;align-items:center;gap:16px;width:100%;border:1px solid #deddd8;border-radius:5px;background:white;color:var(--p-ink);text-align:left;min-height:49px;padding:9px 16px;font-size:15px}
.p-goal-list .p-icon{width:26px;height:26px}
.p-goal-list button>span:last-child{margin-left:auto;font-size:24px;line-height:1}
.p-goal-list button[aria-selected=true]{background:var(--p-navy);border-color:var(--p-navy);color:white}
.p-goal-list button[aria-selected=true] .p-icon{color:#d3ac69}
.p-goal-list button:hover:not([aria-selected=true]){background:#ece9e1}
.p-goal-panel{position:relative;isolation:isolate;overflow:hidden;background:white;border-radius:7px;min-height:350px}
.p-goal-photo{position:absolute;right:0;top:0;height:100%;width:28%;object-fit:cover;object-position:right;z-index:-2}
.p-goal-panel:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,white 0%,white 70%,rgba(255,255,255,.7) 84%,rgba(255,255,255,.06) 100%)}
.p-goal-content{padding:27px 30px;max-width:92%}
.p-goal-content .p-eyebrow{font-size:11px;letter-spacing:.13em}
.p-goal-content h3{font-size:32px;line-height:1.12;letter-spacing:-.025em;margin-top:9px}
.p-goal-content>p:not(.p-eyebrow){font-size:15px;line-height:1.55;margin-top:10px;max-width:490px}
.p-goal-features{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}
.p-goal-features>div{position:relative;padding-left:32px;border-right:1px solid #e5dfd2;padding-right:8px}
.p-goal-features>div:last-child{border:0}
.p-goal-features .p-icon{width:25px;height:25px;position:absolute;left:0;top:0;color:var(--p-gold-ink)}
.p-goal-features h4{font-size:13px;font-weight:600;line-height:1.4}
.p-goal-features p{font-size:12px;line-height:1.5;color:#354555;margin-top:5px}
.p-goal-content .p-button{font-size:14px}

/* ── DIALOG ──────────────────────────────────────────────── */
.p-dialog{width:min(620px,calc(100% - 32px));max-height:85dvh;padding:0;border:1px solid #d6c39f;border-radius:10px;background:#fff;color:var(--p-ink)}
.p-dialog::backdrop{background:rgba(1,14,23,.8);backdrop-filter:blur(5px)}
.p-dialog-inner{padding:36px}
.p-dialog-close{position:absolute;right:12px;top:8px;width:44px;height:44px;border:0;background:none;font-size:32px;color:var(--p-ink)}
.p-dialog h2{font-size:34px;line-height:1.15;margin:16px 0}
.p-dialog p{margin:12px 0;line-height:1.7}
.p-dialog ul{padding-left:20px}
.p-dialog li{margin:8px 0}
.p-dialog .p-modal-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.p-dialog .p-note{font-size:14px;color:#4b5f6d;border-top:1px solid #dedede;padding-top:14px}
.p-dialog a:not(.p-button){text-decoration:underline;text-underline-offset:4px}
.p-doc-list{list-style:none;padding:0!important}
.p-doc-list a{display:block;padding:14px;border-bottom:1px solid #ddd}
.p-noscript{padding:20px;background:var(--p-ivory)}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(min-width:1500px){
  .p-hero-inner{min-height:650px}.p-hero-steps{top:100px}.p-hero h1{font-size:83px}
}
@media(max-width:1190px){
  .p-wrap{width:calc(100% - 64px)}.p-header-inner{gap:20px}.p-navigation{gap:18px}
  .p-navigation a{font-size:12px}.p-brand{width:145px}.p-account{gap:10px}
  .p-account .p-button{padding-inline:14px;font-size:12px}
  .p-hero-inner{min-height:550px}.p-hero-steps{left:48%;top:72px}
  .p-hero-step{width:208px;padding:15px;gap:13px}.p-hero h1{font-size:60px}
  .p-hero-description{font-size:19px}.p-hero-actions{gap:12px}
  .p-hero-actions .p-button{font-size:12px;padding-inline:17px}
  .p-process-grid>*>span{font-size:49px}.p-process-grid>*{gap:16px!important;padding-inline:18px!important}
  .p-process h2{font-size:22px}.p-process p{font-size:12px}
  .p-card h3{font-size:27px}.p-card-small h3{font-size:23px}
  .p-card-content{padding:25px}.p-card-small .p-card-content{padding-inline:23px}
  .p-goals-grid{gap:24px}.p-goal-content{padding:25px;max-width:96%}
  .p-goal-content h3{font-size:29px}.p-goal-features{gap:8px}
  .p-goal-features>div{padding-left:0}.p-goal-features .p-icon{position:static;margin-bottom:5px}
}
@media(max-width:1000px){
  .p-header-inner{flex-wrap:wrap;gap:12px;padding-block:12px;min-height:80px}
  .p-brand{margin-right:auto}
  .p-menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:44px;height:44px;background:none;border:1px solid #657884;border-radius:3px;color:white;order:3}
  .p-menu-toggle span{width:20px;height:1px;background:currentColor;transition:transform .2s}
  .p-menu-toggle[aria-expanded=true] span:first-child{transform:translateY(3.5px) rotate(45deg)}
  .p-menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
  .p-navigation{display:none;order:4;width:100%;margin:0;padding:12px 0;flex-wrap:wrap;gap:22px}
  .p-navigation.is-open{display:flex}.p-navigation a{font-size:15px}
  .p-account{order:2}
  .p-hero-inner{min-height:520px}.p-hero-copy{width:62%}
  .p-hero h1{font-size:54px}.p-hero-steps{left:65%;top:70px}
  .p-hero-step{width:195px;padding:14px;gap:12px}
  .p-hero-step:nth-child(2),.p-hero-step:nth-child(3){margin-left:0}
  .p-hero-step h2{font-size:18px}.p-hero-step p{font-size:12px}.p-step-number{font-size:29px}
  .p-hero-description{font-size:17px}
  .p-hero-shade{background:linear-gradient(90deg,#041824 0%,rgba(4,24,36,.98) 38%,rgba(4,24,36,.5) 100%)}
  .p-section-title{font-size:38px}
  .p-card-management{grid-column:span 7}.p-card-etf{grid-column:span 5}
  .p-card-content{padding:22px}.p-card h3{font-size:25px}.p-card-small h3{font-size:23px}
  .p-card-small .p-card-content{padding:90px 20px 18px}
  .p-card-subtitle{font-size:17px}.p-card-content>p:not(.p-card-subtitle){font-size:14px}
  .p-goals-grid{grid-template-columns:1fr 1.25fr;gap:22px}
  .p-goals-menu .p-section-title{font-size:32px}.p-goal-content{padding:24px}
  .p-goal-content h3{font-size:27px}.p-goal-photo{opacity:.35}.p-goal-content{max-width:100%}
  .p-process-grid>*{gap:10px!important;padding-inline:12px!important}.p-process h2{font-size:20px}
}
@media(max-width:740px){
  .p-wrap{width:calc(100% - 40px)}
  .p-header-inner{padding-block:10px;gap:8px}.p-brand{width:125px}.p-brand img{height:43px}
  .p-menu-toggle{order:1}
  .p-account{order:2;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .p-account .p-button{min-height:42px;font-size:14px}
  .p-navigation{order:3;flex-direction:column;align-items:stretch;gap:0}
  .p-navigation a{padding:12px 0}.p-navigation a:after{display:none}
  .pareto-page section{scroll-margin-top:136px}
  .p-hero-inner{min-height:auto;display:block;padding-top:37px;padding-bottom:28px}
  .p-hero-copy{width:100%}
  .p-hero h1{font-size:clamp(40px,7.9vw,58px);letter-spacing:-.045em}
  .p-hero .p-eyebrow{font-size:11px;margin-bottom:18px}
  .p-hero-description{font-size:18px;margin-top:20px!important}
  .p-hero-actions{display:grid;grid-template-columns:1fr;max-width:360px}
  .p-hero-actions .p-button{font-size:14px;min-height:48px}
  .p-risk{font-size:12px;margin-top:20px!important;max-width:370px}
  .p-hero-photo{width:100%;object-position:80% center;opacity:.64}
  .p-hero-shade{background:linear-gradient(90deg,rgba(4,24,36,.98),rgba(4,24,36,.75) 63%,rgba(4,24,36,.23))}
  .p-orbits{width:160%;right:-65%;opacity:.42}
  .p-hero-steps{position:relative;left:auto;top:auto;margin-top:30px;flex-direction:row;gap:8px}
  .p-hero-step{flex:1;width:auto;min-width:0;min-height:130px;padding:12px 9px;display:block}
  .p-step-number{font-size:23px;display:block;margin:0 0 5px}
  .p-hero-step .p-icon{display:none}
  .p-hero-step h2{font-size:16px;overflow-wrap:anywhere}
  .p-hero-step p{font-size:12px;line-height:1.4;margin-top:5px}
  .p-process-grid{grid-template-columns:1fr;padding-block:8px}
  .p-process-grid>*{padding:16px 0!important;border-right:0!important;border-bottom:1px solid #dedbd2;gap:19px!important}
  .p-process-grid>:last-child{border-bottom:0}
  .p-process-grid>*>span{font-size:42px;width:55px}
  .p-process h2{font-size:23px}.p-process p{font-size:15px}
  .p-solutions{padding-block:30px 24px}
  .p-section-title{font-size:35px}.p-section-intro{font-size:17px;margin-bottom:22px!important}
  .p-eyebrow{font-size:11px}
  .p-card-grid{grid-template-columns:1fr;gap:14px}.p-card{grid-column:1;min-height:315px}
  .p-card-content{padding:25px}.p-card h3{font-size:29px}.p-card-subtitle{font-size:19px}
  .p-card-content>p:not(.p-card-subtitle),.p-card-small .p-card-content>p:not(.p-card-subtitle){font-size:16px}
  .p-card-content>p{max-width:300px!important}.p-card-etf .p-card-content>p{max-width:240px!important}
  .p-card-small{min-height:350px}.p-card-small .p-card-content{padding:105px 25px 22px}
  .p-card-small h3{font-size:28px}.p-card-small .p-text-link{margin-top:12px}
  .p-text-link{font-size:16px}
  .p-goals{padding-block:30px}.p-goals-grid{grid-template-columns:1fr;gap:24px}
  .p-goals-menu .p-section-title{font-size:34px}
  .p-goal-list button{font-size:15px;min-height:53px}
  .p-goal-content{padding:26px 23px}.p-goal-content h3{font-size:30px}
  .p-goal-content>p:not(.p-eyebrow){font-size:16px}
  .p-goal-features{grid-template-columns:1fr;gap:14px}
  .p-goal-features>div{padding:0 0 0 38px;border:0}
  .p-goal-features .p-icon{position:absolute;left:0;top:0}
  .p-goal-features h4{font-size:15px}.p-goal-features p{font-size:14px;margin-top:2px}
  .p-goal-content .p-button{width:100%;font-size:15px}
  .p-goal-panel{min-height:auto}.p-goal-photo{width:40%;opacity:.35}
  .p-goal-panel:after{background:linear-gradient(90deg,white 30%,rgba(255,255,255,.8))}
  .p-dialog-inner{padding:30px 23px}.p-dialog h2{font-size:29px}
}
@media(prefers-reduced-motion:reduce){
  .pareto-page *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
