/* Pagina DM 33/2026 – variante "semplice": sfondo bianco, fasce tinte, angoli arrotondati, pulsanti a pillola. */
body.dm33 {
  --bosco: #2F6B3C;
  --acqua: #246B70;
  --tinta: #EAF2EB;
  --tinta-2: #D9E8DB;
  --giallo: #F5C66B;
  --ink:   #16241D;
  --muted: #4E5F55;
  --linea: #D4DED6;
  background: #fff;
}
.dm33-main { color: var(--ink); margin-top: 68px; }
.dm33-main a { color: var(--acqua); }
.dm33-main :focus-visible { outline: 3px solid var(--acqua); outline-offset: 2px; }
.dm33-main h1, .dm33-main h2, .dm33-main h3 { font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif; color: var(--ink); }

.dm33-main section { padding: 72px 5%; background: #fff; }
.dm33-main section.s-tint { background: var(--tinta); }
/* style.css colora #faq e #contatti per ID: qui si riprende il controllo */
.dm33-main section#faq { background: var(--tinta); }
.dm33-main section#contatti { background: #fff; }
.s-wrap { max-width: 1040px; margin: 0 auto; }
.dm33-main h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 16px; }
.s-lead { font-size: 1rem; line-height: 1.7; max-width: 680px; margin-bottom: 28px; }
.s-center { text-align: center; margin-top: 28px; }

/* Pulsanti a pillola */
.s-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--giallo); color: var(--ink) !important; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-family: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.s-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.s-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.s-btn-light { background: #fff; }
.s-btn-out { background: #fff; }
.b-piccolo { min-height: 44px; padding: 8px 18px; border-radius: 999px; font-size: .85rem; font-weight: 700; font-family: inherit; cursor: pointer; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.b-piccolo:hover { background: var(--tinta); }
.s-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.dm33-main section.s-hero { background: var(--bosco); color: #fff; padding-top: 56px; padding-bottom: 64px; }
.s-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.s-chip { display: inline-block; background: var(--giallo); color: var(--ink); font-weight: 800; font-size: .82rem; padding: 6px 12px; border-radius: 6px; margin-bottom: 18px; }
.s-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; line-height: 1.1; letter-spacing: -.8px; margin-bottom: 18px; }
.s-hero-lead { font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }
.s-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.s-hero-small { font-size: .85rem; opacity: .9; }
.s-hero-card { background: #fff; color: var(--ink); border-radius: 14px; padding: 28px; line-height: 1.65; }
.s-hero-card-k { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.s-hero-card p + p, .s-hero-card p { margin-bottom: 16px; }

/* Tipologie e numeri */
.s-dots { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.s-dots li { position: relative; padding-left: 24px; line-height: 1.55; font-size: 1.02rem; }
.s-dots li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--bosco); }
.s-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: var(--tinta); border-radius: 14px; padding: 14px; }
.s-stat { background: #fff; border: 1px solid var(--tinta-2); border-radius: 10px; padding: 18px 16px; }
.s-stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.s-stat span { font-size: .85rem; color: var(--muted); }
.s-stat-hl { background: var(--giallo); border-color: var(--giallo); }
.s-stat-hl span { color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .5px; }

/* Calcolatore */
.s-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: #fff; border: 1.5px solid var(--bosco); border-radius: 14px; padding: 28px; }
.s-calc-in { display: grid; gap: 18px; align-content: start; }
.s-field { border: none; display: grid; gap: 6px; }
.s-field label, .s-field legend { font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.s-field input, .s-field select, .s-field textarea { width: 100%; min-height: 46px; border: 1.5px solid var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff; }
.s-field textarea { resize: vertical; }
.s-field input:focus, .s-field select:focus, .s-field textarea:focus { outline: none; border-color: var(--acqua); box-shadow: 0 0 0 3px rgba(36,107,112,.18); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--ink); border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .92rem; position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--acqua); outline-offset: 2px; }
.s-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.s-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--bosco); flex-shrink: 0; }
.s-calc-out { background: var(--tinta); border-radius: 10px; padding: 20px; align-self: start; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .95rem; }
.calc-row small { display: block; font-size: .8rem; color: var(--muted); }
.calc-row span:last-child { font-weight: 700; white-space: nowrap; }
.calc-row[hidden] { display: none; }
.calc-row.s-costo { font-size: 1.05rem; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--tinta-2); }
.calc-row.s-costo span:last-child { font-size: 1.25rem; }
.calc-row.tot { border-top: 1px solid var(--tinta-2); margin-top: 4px; padding-top: 12px; font-weight: 700; }
.calc-row.tot span:last-child { font-size: 1.25rem; }
.calc-bar { height: 8px; background: #fff; border-radius: 99px; margin: 12px 0 6px; overflow: hidden; }
.calc-bar div { height: 100%; background: var(--bosco); width: 0; border-radius: 99px; transition: width .25s ease; }
.calc-bar.over div { background: #A8691A; }
.calc-perc { font-size: .75rem; font-weight: 700; letter-spacing: .8px; color: var(--muted); margin-bottom: 12px; }
.esito { font-weight: 700; font-size: .95rem; line-height: 1.55; }
.esito.ko { color: #8A4F0A; }
.s-note { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-top: 16px; }

/* Catalogo su fascia scura */
.dm33-main section.s-dark { background: var(--ink); color: #fff; }
.s-dark h2 { color: #fff; }
.dm33-filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.dm33-filtri button { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid #fff; background: transparent; color: #fff; font-weight: 600; font-size: .88rem; font-family: inherit; cursor: pointer; }
.dm33-filtri button[aria-pressed="true"] { background: var(--giallo); border-color: var(--giallo); color: var(--ink); }
.dm33-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lab { background: #fff; color: var(--ink); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.lab[hidden] { display: none; }
.lab-tipo { font-size: .78rem; font-weight: 600; color: var(--muted); }
.lab h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.badge-ia { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; font-size: .66rem; font-weight: 800; letter-spacing: .8px; color: var(--ink); background: var(--giallo); vertical-align: middle; font-family: 'Plus Jakarta Sans', sans-serif; }
.lab-meta { font-size: .85rem; font-weight: 600; color: var(--bosco); }
.lab p.sint { font-size: .92rem; line-height: 1.65; flex: 1; }
.lab-sif-toggle { align-self: flex-start; background: none; border: none; color: var(--acqua); font-weight: 700; font-size: .88rem; font-family: inherit; cursor: pointer; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.sif { border-top: 1px solid var(--linea); padding-top: 14px; display: grid; gap: 14px; }
.sif[hidden] { display: none; }
.sif-field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.sif-row { display: flex; gap: 8px; align-items: stretch; }
.sif-row input, .sif-row textarea { flex: 1; min-width: 0; border: 1.5px solid var(--linea); border-radius: 8px; padding: 8px 10px; font-size: .85rem; font-family: inherit; color: var(--ink); background: var(--tinta); line-height: 1.5; }
.sif-row textarea { resize: vertical; min-height: 120px; }

/* Passi */
.s-steps { list-style: none; display: grid; gap: 12px; }
.s-steps > li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; background: #fff; border-radius: 12px; padding: 18px 20px; line-height: 1.65; }
.s-n { width: 34px; height: 34px; border-radius: 50%; background: var(--tinta-2); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.s-step-hl .s-n { background: var(--giallo); }
.s-details { margin-top: 12px; border: 1px solid var(--linea); border-radius: 10px; }
.s-details summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--acqua); min-height: 44px; }
.s-details .dd-body { padding: 0 14px 14px; }
.s-details .dd-body p { font-size: .9rem; line-height: 1.65; margin-bottom: 10px; }

/* Perché RH */
.s-checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-bottom: 32px; }
.s-checks li { position: relative; padding-left: 30px; line-height: 1.6; }
.s-checks li::before { content: ''; position: absolute; left: 2px; top: .3em; width: 7px; height: 13px; border: solid var(--bosco); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.s-box { background: var(--tinta); border-radius: 14px; padding: 24px 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.s-box p { line-height: 1.65; max-width: 620px; }
.s-box .s-btn { flex-shrink: 0; }

/* FAQ */
.s-faq { display: grid; gap: 10px; }
.s-faq details { background: #fff; border-radius: 12px; }
.s-faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; line-height: 1.45; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: '+'; color: var(--bosco); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.s-faq details[open] summary::after { content: '–'; }
.s-faq details p { padding: 0 20px 18px; line-height: 1.7; }

/* Contatti */
.s-contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.s-form { display: grid; gap: 14px; }
.s-form .s-btn { justify-self: start; margin-top: 8px; }
.s-boxes { display: grid; gap: 4px; }
.s-boxes label { display: flex; gap: 10px; align-items: center; min-height: 40px; font-weight: 400; font-size: .95rem; cursor: pointer; margin: 0; }
.s-boxes input { width: 20px; height: 20px; min-height: 0; accent-color: var(--bosco); flex-shrink: 0; }
.s-side { position: sticky; top: 92px; background: var(--tinta); border-radius: 14px; padding: 24px; display: grid; gap: 12px; justify-items: start; }
.s-side a { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.s-side p { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.dm33-main section.s-fonti { padding: 24px 5% 36px; border-top: 1px solid var(--linea); }
.s-fonti p { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Responsive */
@media (max-width: 900px) {
  .s-hero-grid, .s-calc, .s-contact-grid { grid-template-columns: 1fr; }
  .s-stats { grid-template-columns: 1fr 1fr; }
  .dm33-grid, .s-checks { grid-template-columns: 1fr; }
  .s-box { flex-direction: column; align-items: flex-start; }
  .s-side { position: static; }
}
@media (max-width: 600px) {
  .dm33-main { margin-top: 60px; }
  .dm33-main section { padding: 48px 4%; }
  .s-btns { flex-direction: column; }
  .s-btns .s-btn, .s-box .s-btn { width: 100%; }
  .s-calc { padding: 18px; }
  .sif-row { flex-direction: column; }
  .s-steps > li { padding: 16px; gap: 12px; }
}

/* Esempio di compilazione sopra il calcolatore */
.calc-esempio { background: #fff; border: 1.5px solid var(--bosco); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; line-height: 1.6; }
.calc-esempio strong { color: var(--bosco); }
.calc-esempio { color: var(--ink); }
.s-dark .calc-esempio, .f-card .calc-esempio { margin-bottom: 20px; }
