/* Restyling visivo: contenuti, calcoli, eventi e stampa rimangono separati. */
@media screen {
  :root {
    --navy:#17233e;
    --ink:#2c3650;
    --muted:#58617a;
    --paper:#fff;
    --cream:#f5f0ff;
    --purple:#803dc3;
    --teal:#087a78;
    --rose:#fff0f8;
    --line:#e6dff1;
    --shadow:0 15px 44px #5834810c;
  }
  body {
    background:radial-gradient(ellipse 640px 450px at 96% 230px,#eee5ff 0,transparent 85%),
      radial-gradient(ellipse 650px 400px at 0 330px,#fff1f9 0,transparent 85%),#fff;
  }
  .preview-bar{background:linear-gradient(105deg,#7b32b3,#b11983 55%,#345bad);padding-block:7px}
  .preview-bar span{color:#fff}
  .site-header{padding-block:20px;border-bottom-color:#efe5f1}
  .brand img{width:46px;height:46px;box-shadow:0 4px 14px #b82dac28}
  .brand{font-size:20px}
  .brand small{color:#77508f;letter-spacing:.13em}
  .button{border-radius:13px;min-height:50px;font-size:14px}
  .button-primary{background:linear-gradient(110deg,#c01882,#7040c4);color:#fff;box-shadow:0 7px 18px #9b3eab27}
  .button-primary:hover{background:linear-gradient(110deg,#a4126c,#5e30ac);color:#fff;box-shadow:0 10px 25px #9b3eab3b}
  .button-primary:active{transform:translateY(1px)}
  .button-quiet{min-height:40px;color:#6d2f92;background:#f6effc;padding:10px 16px;font-size:12px}
  .button-quiet:hover{background:#eee0fa}
  .button-outline{border-color:#b897d4;color:#6d2f92;background:#faf5ff}
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-color:#9628bb}
  .eyebrow,.section-kicker,.label{color:#7935a2}
  .hero{gap:62px;grid-template-columns:1.12fr .88fr;padding-block:52px 46px;position:relative}
  .hero-copy>.eyebrow{display:inline-block;background:#f4e5f6;border:1px solid #ead4ef;border-radius:50px;padding:7px 13px;font-size:9px;letter-spacing:.13em;margin-bottom:20px}
  h1{font-size:clamp(46px,5.6vw,72px);font-weight:800;line-height:1.05;letter-spacing:-.055em;margin-bottom:23px}
  h1 em{color:#b32494;background:linear-gradient(105deg,#c41c86,#7943c9);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
  .hero-lead{font-size:20px;line-height:1.5;font-weight:650;color:#2f2852}
  .hero-copy>p:not(.eyebrow):not(.micro){max-width:510px}
  .hero-copy>.button{padding:16px 24px;margin-top:9px;font-size:14px}
  .privacy-line{font-size:11px;margin-top:17px}
  .privacy-line>span{background:#d9f6ef;color:#087a78;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:6px}
  .hero-visual{background:none;border:0;box-shadow:none;transform:none;border-radius:0;padding:18px 0 0;isolation:isolate;position:relative;min-width:0}
  .hero-visual::before{content:'';position:absolute;inset:0 -13px 27px 17px;border-radius:100px 28px 28px 28px;background:linear-gradient(135deg,#d742bd,#7643d2 58%,#31c8cf);transform:rotate(4deg);z-index:-1}
  .photo-frame{border:7px solid #fff;border-radius:88px 24px 24px 24px;overflow:hidden;box-shadow:0 16px 44px #46308125;background:#ead6eb}
  .hero-photo{display:block;width:100%;height:auto;aspect-ratio:1/1.06;object-fit:cover;object-position:center}
  .visual-badge{position:absolute;top:42px;left:-27px;background:#fff;color:#55308c;border-radius:15px;padding:13px 18px 13px 13px;display:flex;align-items:center;gap:10px;box-shadow:0 7px 22px #4e28742b;transform:rotate(-6deg)}
  .visual-badge>span{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:50%;background:#d9f8f1;color:#087a78;font-size:24px}
  .visual-badge strong{font-size:15px;line-height:1.2;letter-spacing:-.03em}
  .visual-caption{position:relative;margin:-85px 21px 0;background:linear-gradient(110deg,#4b2a93,#224b91);border:1px solid #ffffff45;border-radius:18px;padding:18px 23px;box-shadow:0 12px 24px #35267c29;color:white}
  .visual-caption .note-tab{position:static;display:block;background:none;padding:0;color:#33dfcf;letter-spacing:.13em;font-size:8px}
  .visual-caption .note-footer{border:0;padding-top:7px;color:#fff;font-size:14px;line-height:1.5;font-style:normal;letter-spacing:-.01em;font-weight:650}
  .kit-highlights{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding-block:24px 30px;border-bottom:1px solid #eadff2}
  .kit-highlight{display:flex;align-items:flex-start;gap:14px;padding-inline:5px}
  .highlight-number{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:13px;background:#f9def0;color:#a11372;font-weight:800;font-size:13px}
  .kit-highlight:nth-child(2) .highlight-number{background:#ece2ff;color:#733bb2}
  .kit-highlight:nth-child(3) .highlight-number{background:#d9f7f1;color:#087a78}
  .kit-highlight h3{font-size:16px;letter-spacing:-.025em;margin:1px 0 5px}
  .kit-highlight p{font-size:11px;color:var(--muted);line-height:1.55;margin:0}
  .route-section{padding-top:37px;padding-bottom:46px}
  .route-section h2{font-size:29px}
  .route-options{gap:17px;margin-top:22px}
  .route-card{background:#fff8fc;border:1px solid #efd2e5;padding:22px 25px;border-radius:18px;box-shadow:0 6px 20px #9f3b8910;min-height:139px}
  .route-card:nth-child(2){background:#f8f4ff;border-color:#dfd1f2}
  .route-card:nth-child(3){background:#effbf8;border-color:#c5e8df}
  .route-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #79419218}
  .route-card.active{background:linear-gradient(115deg,#a51884,#7040c4);border:2px solid transparent;padding:21px 24px;color:#fff;box-shadow:0 9px 24px #a231a92b}
  .route-card.active strong,.route-card.active .route-icon{color:#fff}
  .route-icon{color:#863faa;font-size:11px}
  .route-check{background:#fff;color:#952487;width:24px;height:24px;line-height:24px}
  .route-summary{color:#58617a}
  .soft-band{background:linear-gradient(120deg,#f8f0ff,#eef7ff);border-top:1px solid #ede2f7;border-bottom:1px solid #e8e7f4}
  .section-heading .eyebrow{display:flex;align-items:center;gap:10px}
  .section-heading .eyebrow::before{content:'';display:block;width:24px;height:4px;border-radius:8px;background:linear-gradient(90deg,#c01882,#7040c4)}
  .guide-aside{background:linear-gradient(150deg,#4b2a93,#224b91);color:white;border-radius:24px;padding:27px 24px;box-shadow:0 12px 30px #4b308620}
  .guide-aside .label{color:#33dfcf}
  .guide-aside h3,.guide-aside p,.guide-aside .micro{color:#fff}
  .guide-aside .text-link{color:#33dfcf}
  .guide-aside p{font-size:12px}
  .guide-steps{border-color:#e3d7f0;border-radius:20px;box-shadow:0 8px 28px #7958950a}
  .guide-steps details{border-bottom-color:#ede4f5}
  .step-index{color:#98318e;background:#fae4f5;font-weight:800}
  .guide-steps details:nth-child(2n) .step-index{background:#e9e4ff;color:#6840b6}
  .guide-steps details:nth-child(3n) .step-index{background:#d9f7f1;color:#087a78}
  summary::after{color:#9343b5}
  .callout{background:#fdf0fa;border-left-color:#c92a9c;color:#673667}
  .calculator{border-color:#e8dbf2;border-radius:25px;box-shadow:0 12px 35px #7447960d}
  input:not([type=checkbox]),select{background:#fdfbff;border-color:#d9cae7;border-radius:10px;min-height:48px}
  input:not([type=checkbox]):focus,select:focus{border-color:#a045b1;background:#fff}
  .result-panel{background:linear-gradient(145deg,#f8e9fa,#ece8ff);border:1px solid #e8cff2;border-radius:19px;padding:30px}
  .result-panel .label{color:#863091}
  .result-panel .big-number{color:#8032a1;font-weight:800}
  .monthly-result,.result-disclaimer{border-color:#dbcaea}
  .result-disclaimer{color:#605370}
  .equation{color:#7836a1}
  .savings-band{background:linear-gradient(120deg,#def9f3,#eff4ff 55%,#f3e6ff);border-top:1px solid #d1ede6;border-bottom:1px solid #e7dff4}
  .metric-grid .capital-metric{background:linear-gradient(110deg,#4b2a93,#224b91);padding:20px 22px;border:0;border-radius:16px;position:relative;overflow:hidden}
  .metric-grid .capital-metric span{color:#fff}
  .metric-grid .capital-metric strong{color:#33dfcf;font-weight:800;font-size:46px;position:relative;z-index:1}
  .metric-grid .capital-metric::after{content:'';position:absolute;width:150px;height:150px;border:24px solid #ffffff09;border-radius:50%;right:-47px;bottom:-72px}
  .metric-grid>div:not(.capital-metric){background:#faf7ff;border:1px solid #e8def2;padding:13px 16px;border-radius:12px}
  .metric-grid>div:last-child{background:#edfbf7;border-color:#d0eae3}
  .chart{padding:0 4px}
  .chart svg text{fill:#59637c}
  #chart-drawing polyline[stroke="#176d6b"]{stroke:var(--teal)}
  #chart-drawing polyline[stroke="#74537f"]{stroke:var(--purple)}
  #chart-drawing polygon{fill:#e2f8f0}
  .chart-legend .legend-paid{background:#803dc3}
  .chart-legend .legend-capital{background:#087a78}
  .child-note{background:#fff4fd;border-color:#e3c5e4;border-left:4px solid #c0299b;border-radius:14px}
  .child-note strong{color:#7c297e}
  .checklist-card{border-color:#e7d9f0;border-radius:24px}
  .checklist-card h3{color:#77379e}
  .check-item{border-bottom-color:#f0e8f4}
  .check-item input{accent-color:#a82397}
  .next-step{background:linear-gradient(145deg,#4b2a93,#224b91);color:#fff;border-radius:24px;box-shadow:0 13px 30px #3e338324}
  .next-step .label{color:#33dfcf}
  .next-step h3,.next-step p,.next-step .micro{color:#fff}
  .next-step>img{width:72px;height:72px;border:3px solid #fff;box-shadow:0 0 0 5px #ffffff24}
  .next-step .button{background:#fff;color:#673196;box-shadow:none}
  .next-step .button:hover{background:#f7ecff;color:#512278}
  .sources>details{border-color:#eadff2}
  .footer{border-color:#eadff2}
  dialog{border-color:#d9bee9;border-radius:24px;background:linear-gradient(145deg,#fff,#fbf4ff)}
  dialog::backdrop{background:#241647a6}
}

@media screen and (max-width:1050px){
  .hero{gap:38px}
  .hero-visual::before{right:-5px}
  .visual-badge{left:-15px;top:38px;padding:11px 14px}
  .visual-badge strong{font-size:13px}
  .visual-caption{margin-top:-75px;margin-inline:15px;padding:15px 18px}
  .visual-caption .note-footer{font-size:12px}
  .kit-highlights{gap:18px}
  .kit-highlight{gap:11px}
  .kit-highlight h3{font-size:14px}
  .metric-grid .capital-metric strong{font-size:39px}
}
@media screen and (max-width:760px){
  .hero{grid-template-columns:1fr 1fr;gap:25px;padding-top:38px}
  h1{font-size:48px}
  .hero-lead{font-size:17px}
  .hero-copy>p:not(.eyebrow):not(.micro){font-size:14px}
  .hero-visual{padding-top:10px}
  .photo-frame{border-width:5px;border-top-left-radius:60px}
  .visual-badge{top:26px;left:-12px;padding:9px 12px;gap:7px}
  .visual-badge>span{width:27px;height:27px;font-size:19px}
  .visual-badge strong{font-size:12px}
  .visual-caption .note-tab{font-size:7px;letter-spacing:.1em}
  .visual-caption{margin:-60px 9px 0;padding:13px}
  .visual-caption .note-footer{font-size:11px}
  .kit-highlight{display:block}
  .highlight-number{margin-bottom:10px}
}
@media screen and (max-width:650px){
  .preview-bar{font-size:8px;padding-block:7px}
  .preview-bar span{font-size:9px}
  .site-header{padding-block:16px}
  .brand{font-size:16px}
  .brand img{width:36px;height:36px}
  .site-header .button{font-size:10px;padding:9px 10px;border-radius:10px;min-height:36px}
  .hero{grid-template-columns:1fr;gap:30px;padding:31px 0 33px}
  h1{font-size:53px;line-height:1.04;max-width:350px;margin-bottom:19px}
  .hero-copy>.eyebrow{font-size:8px;padding:6px 10px;margin-bottom:19px}
  .hero-lead{font-size:18px!important;max-width:340px!important}
  .hero-copy>p:not(.eyebrow):not(.micro){font-size:14px}
  .hero-copy>.button{font-size:13px;padding:15px 20px;min-height:49px}
  .privacy-line{font-size:10px;margin-top:15px}
  .hero-visual{width:calc(100% - 16px);max-width:440px;margin-inline:auto;padding:0}
  .hero-visual::before{inset:-5px -5px 24px 15px;transform:rotate(3deg);border-radius:55px 20px 20px 20px}
  .photo-frame{border-radius:55px 20px 20px 20px;border-width:5px}
  .hero-photo{aspect-ratio:1/.85;object-position:center 39%}
  .visual-badge{left:-12px;top:22px;padding:11px 13px;gap:8px}
  .visual-badge strong{font-size:13px}
  .visual-badge>span{width:30px;height:30px}
  .visual-caption{margin:-67px 14px 0;padding:15px 18px;border-radius:16px}
  .visual-caption .note-tab{font-size:7px;letter-spacing:.12em}
  .visual-caption .note-footer{font-size:12px;padding-top:6px}
  .kit-highlights{grid-template-columns:1fr;gap:17px;padding:13px 0 27px}
  .kit-highlight{display:flex;align-items:center;gap:13px;padding:0 2px}
  .highlight-number{margin:0;width:36px;height:36px;font-size:11px;border-radius:11px}
  .kit-highlight h3{font-size:14px;margin-bottom:3px}
  .kit-highlight p{font-size:11px;max-width:280px}
  .route-section{padding-top:28px;padding-bottom:37px}
  .route-section h2{font-size:28px}
  .route-options{gap:11px;margin-top:19px}
  .route-card{padding:16px 20px 16px 57px;min-height:100px;border-radius:15px}
  .route-card.active{padding:15px 19px 15px 56px}
  .route-icon{top:21px;left:20px}
  .route-check{top:16px;right:16px;width:21px;height:21px;line-height:21px}
  .route-card strong{font-size:18px}
  .guide-aside{padding:23px;border-radius:19px;margin-bottom:4px}
  .guide-aside h3{font-size:23px}
  .guide-steps{border-radius:18px}
  .calculator{padding:20px;border-radius:20px}
  .result-panel{padding:22px;border-radius:16px}
  .metric-grid .capital-metric{padding:18px 20px}
  .metric-grid .capital-metric strong{font-size:43px}
  .metric-grid>div:not(.capital-metric){padding:11px 12px}
  .metric-grid strong{font-size:21px}
  .metric-grid span{font-size:8px}
  .metric-grid{gap:11px}
  .checklist-card,.next-step{padding:25px;border-radius:20px}
}
@media screen and (max-width:360px){
  h1{font-size:47px}
  .brand{font-size:14px}
  .brand small{font-size:5px}
  .brand img{width:31px;height:31px}
  .site-header .button{font-size:9px;padding:8px}
  .metric-grid .capital-metric strong{font-size:37px}
  .metric-grid strong{font-size:19px}
}
@media print{.kit-highlights{display:none}}
