/* Opzione D — "Portale": stile portale immobiliare, chiaro, blu, calcolatore orizzontale protagonista */
.theme-d{--pri:#1A6FD8;--pri-d:#0B2D5B;--ink:#0E1E33;--sky:#EEF5FC;--sky-2:#F6F9FD;--line-d:#DFE6EF;--soft:#44546A;--duo-fill:#FFD36E;--navy:#0B2D5B;--radius:14px}
.theme-d body,.theme-d{color:var(--ink)}
.theme-d .btn{border-radius:10px}
.theme-d .btn-primary{background:var(--pri);color:#fff}
.theme-d .btn-primary:hover{background:#155DB8;color:#fff;box-shadow:0 8px 20px rgba(26,111,216,.25)}
.theme-d .btn-outline{border-color:var(--line-d)}

/* Header */
.theme-d .site-header{background:#fff;border-bottom:1px solid var(--line-d);box-shadow:0 1px 0 rgba(14,30,51,.02)}
.theme-d .brand,.theme-d .brand:hover{color:var(--ink)}
.theme-d .nav-links a{color:var(--soft);font-weight:600}
.theme-d .nav-links a:hover,.theme-d .nav-links a[aria-current="page"]{color:var(--pri)}
.theme-d .nav-links a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--pri)}
.theme-d .nav-phone,.theme-d .nav-phone:hover{color:var(--ink)}
.theme-d .nav-phone .icon{color:var(--pri)}
.theme-d .menu-toggle{background:var(--sky);color:var(--ink)}
.theme-d .mobile-menu{background:#fff;border-top:1px solid var(--line-d)}
.theme-d .mobile-menu li a{color:var(--ink);border-bottom-color:var(--line-d)}
.theme-d .mobile-menu .btn-ghost{color:var(--ink);border-color:var(--line-d)}

/* Hero portale */
.theme-d .hero{background:var(--sky);color:var(--ink)}
.theme-d .hero-rings{display:none}
.theme-d .hero-skyline{display:block;position:absolute;left:0;right:0;bottom:0;width:100%;height:140px;pointer-events:none}
.theme-d .sk-back{fill:#DCE9F8}
.theme-d .sk-front{fill:#CADDF4}
.theme-d .hero-inner{flex-direction:column;align-items:stretch;gap:36px;padding-top:64px;padding-bottom:150px;z-index:1}
.theme-d .hero-copy{flex:none;align-items:center;text-align:center;max-width:880px;margin:0 auto;gap:20px}
.theme-d .badge{align-self:center;background:#fff;border-color:var(--line-d);color:var(--pri)}
.theme-d .hero h1{font-size:clamp(34px,4.6vw,56px)}
.theme-d .hl{color:var(--pri)}
.theme-d .hero-lead{color:var(--soft);margin:0 auto}
.theme-d .hero .hero-ctas{display:none}
.theme-d .checks{justify-content:center}
.theme-d .hero .checks li{color:#2A3A52}
.theme-d .hero .checks .icon{color:#1E9E66}
.theme-d .side-card .checks li{color:#E6ECF2}
.theme-d .side-card .checks .icon{color:var(--duo-fill)}

/* Calcolatore orizzontale */
.theme-d .calc{flex:none;max-width:1120px;width:100%;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 22px;padding:28px 32px;border-radius:18px;border:1px solid var(--line-d);box-shadow:0 24px 60px rgba(11,45,91,.12)}
.theme-d .calc-head{grid-column:1/-1}
.theme-d .calc h2{font-size:20px}
.theme-d .calc-tabs{display:flex;grid-column:1/-1;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line-d);padding-bottom:16px}
.theme-d .calc-tabs button{font:inherit;font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px;padding:10px 16px;min-height:44px;border-radius:10px;border:1.5px solid var(--line-d);background:#fff;color:var(--soft);cursor:pointer}
.theme-d .calc-tabs button .icon{width:22px;height:22px}
.theme-d .calc-tabs button[aria-pressed="true"]{border-color:var(--pri);background:var(--sky);color:var(--pri)}
.theme-d .money .input,.theme-d .input,.theme-d .select{border-radius:10px;border-color:var(--line-d)}
.theme-d .money .input{background:#fff}
.theme-d .seg{grid-template-columns:repeat(6,minmax(0,1fr))}
.theme-d .seg button{border-radius:10px;border-color:var(--line-d);font-size:14px}
.theme-d .seg button[aria-pressed="true"]{background:var(--pri);border-color:var(--pri)}
.theme-d .results{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.theme-d .result{flex-direction:column;align-items:flex-start;gap:8px;padding:16px 18px;border-radius:12px;border-color:var(--line-d)}
.theme-d .result-rata{font-size:28px;color:var(--pri-d)}
.theme-d .result[aria-pressed="true"]{border-color:var(--pri);background:var(--sky-2);box-shadow:inset 0 0 0 1px var(--pri)}
.theme-d .result[aria-pressed="true"] .result-rata{color:var(--pri)}
.theme-d #c-cta{grid-column:1/-1;justify-self:center;min-width:340px;width:auto}
.theme-d .calc .fine{grid-column:1/-1;text-align:center}

/* Fascia garanzie */
.theme-d .trust{background:#fff;border-bottom:1px solid var(--line-d)}
.theme-d .ico-box{background:var(--sky);border:0;border-radius:50%;width:56px;height:56px;color:var(--pri)}
.theme-d .ico-box .icon{width:28px;height:28px}

/* Sezioni */
.theme-d .eyebrow{color:var(--pri)}
.theme-d .section-alt{background:var(--sky-2)}
.theme-d .card{border-color:var(--line-d);border-radius:var(--radius)}
.theme-d a.card:hover{border-color:var(--pri);box-shadow:0 14px 34px rgba(11,45,91,.1)}
.theme-d .card-ico,.theme-d .benefit .card-ico{background:var(--sky);color:var(--pri);border-radius:50%;width:72px;height:72px}
.theme-d .card-ico .icon{width:38px;height:38px}
.theme-d .card.featured{border:2px solid var(--pri)}
.theme-d .card .tag{background:var(--pri);color:#fff}
.theme-d .card.featured .card-ico{background:#FFF4D6}
.theme-d .card-link{color:var(--pri)}
.theme-d .card ul .icon,.theme-d .ticks .icon{color:#1E9E66}

/* Come funziona: centrato con icone grandi */
.theme-d .step,.theme-d .step.dark{background:#fff;color:var(--ink);border:1px solid var(--line-d);border-radius:var(--radius);align-items:center;text-align:center}
.theme-d .step.dark p,.theme-d .step p{color:var(--soft)}
.theme-d .step-top{flex-direction:column-reverse;gap:14px}
.theme-d .step-ico,.theme-d .step.dark .step-ico{width:96px;height:96px;border-radius:50%;background:var(--sky);color:var(--pri)}
.theme-d .step-ico .icon{width:48px;height:48px}
.theme-d .step.dark .duo .duo-f{fill:var(--duo-fill)}
.theme-d .step-num,.theme-d .step.dark .step-num{font-size:13px;letter-spacing:.06em;font-weight:700;color:#fff;background:var(--pri);padding:5px 12px;border-radius:999px;line-height:1.2}

.theme-d .benefit{background:var(--sky-2);border-radius:var(--radius)}
.theme-d .faq details{border-radius:12px;border-color:var(--line-d)}
.theme-d .faq summary .plus{background:var(--sky);color:var(--pri)}
.theme-d .review{border-radius:var(--radius)}
.theme-d .photo{border-radius:20px}

/* Pagine interne */
.theme-d .page-hero{background:var(--sky);color:var(--ink)}
.theme-d .page-hero .lead{color:var(--soft)}
.theme-d .crumbs,.theme-d .crumbs a{color:#5A6A80}
.theme-d .crumbs a:hover{color:var(--pri)}
.theme-d .chips li{background:#fff;border-color:var(--line-d);color:var(--ink)}
.theme-d .chips .icon{color:var(--pri)}
.theme-d .page-hero .btn-ghost{background:#fff;color:var(--ink);border-color:var(--line-d)}
.theme-d .page-hero .badge{align-self:flex-start}

/* Blocchi scuri */
.theme-d .section-dark,.theme-d .cta-band,.theme-d .side-card,.theme-d .float-badge{background:var(--pri-d)}
.theme-d .section-dark .hl,.theme-d .cta-band .hl{color:var(--duo-fill)}
.theme-d .contact-line .ib,.theme-d .float-badge .icon{color:var(--duo-fill)}
.theme-d .cta-band{border-radius:20px}
.theme-d .side-card{border-radius:18px}
.theme-d .form-card{border-radius:18px}
.theme-d .mobile-bar .call{background:var(--sky)}

@media (max-width:900px){
  .theme-d .calc{grid-template-columns:1fr 1fr}
  .theme-d .calc .field:has(.seg){grid-column:1/-1}
}
@media (max-width:760px){
  .theme-d .hero-inner{padding-top:32px;padding-bottom:110px;gap:28px}
  .theme-d .hero-skyline{height:90px}
  .theme-d .calc{grid-template-columns:1fr;padding:20px;gap:16px}
  .theme-d .calc-tabs{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px;padding:0 20px 14px;scrollbar-width:none}
  .theme-d .calc-tabs button{flex:none}
  .theme-d .seg{grid-template-columns:repeat(3,minmax(0,1fr))}
  .theme-d .results{grid-template-columns:1fr;gap:8px}
  .theme-d .result{flex-direction:row;align-items:center;justify-content:space-between}
  .theme-d .result-rata{font-size:22px}
  .theme-d #c-cta{min-width:0;width:100%}
  .theme-d .checks{flex-direction:column;align-items:center;gap:8px}
}

/* Correzioni contrasto */
.theme-d .site-header .brand-name span{color:#A36A00}
.theme-d .site-footer .brand,.theme-d .site-footer .brand:hover{color:#fff}
.theme-d .timeline .n{color:var(--pri)}
.theme-d .calc-tabs button[aria-pressed="true"]{color:#155DB8}
.theme-d .stars{color:#E09A00}
.theme-d .mobile-menu .brand-name span{color:#A36A00}

/* Stessa forma per bottoni, etichette e chip */
.theme-d .badge,.theme-d .chips li,.theme-d .pill,.theme-d .card .tag{border-radius:10px}
.theme-d .page-hero .hero-ctas{margin-top:8px}
.theme-d .page-hero .btn-ghost{background:#fff;color:var(--ink);border-color:var(--line-d)}
.theme-d .page-hero .btn-ghost:hover{border-color:var(--pri);color:var(--pri)}
.theme-d .photo img{object-position:center 20%}
