/* Conti in Accordo */
:root {
  --viola: #44318D;
  --viola-chiaro: #6655A6;
  --oro: #FFD000;
  --nero-testo: #121212;
  --grigio-fascia: #F9F9F9;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; font-family: 'Plus Jakarta Sans', Arial, sans-serif; font-weight: 300; font-size: 15px; line-height: 1.7; color: #000; background: #FFF; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--viola); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.salta-link { position: absolute; left: -9999px; }
.salta-link:focus { left: 10px; top: 10px; z-index: 99; background: #FFF; padding: 6px 10px; }
.outer-content { padding: 0 28px; }
.home-maximum-width { max-width: 1240px; margin: 0 auto; }

/* striscia scura in alto */
.promo-strip { background: #1B1530; color: #FFF; text-align: center; font-size: 14px; font-weight: 500; padding: 12px 20px; }
.promo-strip a { color: var(--oro); }

/* testata viola */
.max-header { background: var(--viola); }
.max-header .home-maximum-width { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 20px; }
.max-header .marchio img { height: 34px; width: auto; }
.max-header nav ul { list-style: none; margin: 0; padding: 0; display: none; }
.max-header nav a { color: #FFF; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 0; display: inline-block; }
.max-header nav a:hover, .max-header nav a[aria-current='page'] { color: var(--oro); }
.max-header .menu-btn { background: none; border: 1px solid #FFF; color: #FFF; font: 600 14px 'Plus Jakarta Sans', Arial, sans-serif; padding: 8px 14px; cursor: pointer; }
.max-header nav.aperto ul { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 112px; background: var(--viola); padding: 14px 28px 20px; z-index: 30; }

/* eroe */
.home-banner { position: relative; padding: 100px 28px 128px; min-height: 560px; color: #FFF; overflow: hidden; }
.home-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-banner:before { content: ''; position: absolute; inset: 0; background: rgba(68,49,141,.89); z-index: 1; }
.home-banner .main-bannertext { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; }
.home-banner .main-bannertext h1 { font-size: 46px; line-height: 1.33; font-weight: 500; margin: 0 0 14px; color: #FFF; }
.home-banner .main-bannertext .lead { font-size: 16px; max-width: 760px; margin: 0 0 28px; }
.home-banner .search-box { display: flex; align-items: center; background: #FFF; height: 56px; padding: 0 18px; gap: 14px; margin-bottom: 26px; }
.home-banner .search-box svg { width: 22px; height: 22px; flex: 0 0 auto; }
.home-banner .search-box input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 18px; color: #333; background: transparent; }
.home-banner .chip-label { font-size: 14px; margin: 0 0 10px; }
.home-banner .chip-wall { display: flex; flex-wrap: wrap; }
.home-banner .chip-wall button { background: var(--viola-chiaro); color: #FFF; border: 0; font: 400 14px 'Plus Jakarta Sans', Arial, sans-serif; padding: 12px 20px; margin: 0 15px 15px 0; cursor: pointer; border-radius: 0; }
.home-banner .chip-wall button[aria-pressed='true'] { background: var(--oro); color: var(--nero-testo); }
.home-banner .chip-answer { background: rgba(255,255,255,.12); border-left: 4px solid var(--oro); padding: 16px 20px; max-width: 820px; margin-top: 8px; }
.home-banner .chip-answer h2 { font-size: 18px; font-weight: 600; margin: 0 0 4px; color: #FFF; }
.home-banner .chip-answer p { margin: 0; font-size: 15px; }

/* titoli a due pesi */
.key-message-new { font-size: 34px; line-height: 1.3; font-weight: 400; margin: 0 0 40px; color: #000; }
.key-message-new strong { font-weight: 800; }

/* fascia con le caratteristiche */
.feature-band { padding: 90px 0 60px; }
.feature-band .feature-grid { display: flex; flex-wrap: wrap; gap: 50px 130px; }
.feature-band .feature-item { flex: 1 1 100%; min-width: 0; }
.feature-band .feature-item h3 { display: flex; gap: 22px; align-items: center; font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--nero-testo); margin: 0 0 6px; }
.feature-band .feature-item h3 svg { width: 28px; height: 28px; flex: 0 0 auto; }
.feature-band .feature-item p { margin: 0 0 0 50px; font-size: 14px; line-height: 1.71; color: #222; }
.feature-band .yellow-filled { margin-top: 40px; }

/* carta promo */
.promo-card { background: #FCFBFF; border: 1px solid #EFEEEE; border-radius: 20px; box-shadow: 0 0 4px #CDCDCD; padding: 30px; margin-top: 60px; }
.promo-card h3 { color: var(--viola); font-size: 18px; font-weight: 500; margin: 0 0 14px; }
.promo-card ul { list-style: none; margin: 0 0 14px; padding: 0; columns: 1; font-size: 14px; }
.promo-card li { padding: 3px 0 3px 26px; position: relative; break-inside: avoid; }
.promo-card li:before { content: '\2713'; position: absolute; left: 0; color: #1F8A3B; font-weight: 700; }
.promo-card .closing-line { color: var(--viola); font-size: 22px; font-weight: 500; margin: 0; }

.yellow-filled { display: inline-block; background: var(--oro); color: var(--nero-testo); border: 1px solid var(--oro); font: 600 14px 'Plus Jakarta Sans', Arial, sans-serif; padding: 18px 22px; text-decoration: none; cursor: pointer; border-radius: 0; transition: background-color .2s; }
.yellow-filled:hover { background: #E8BD00; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; color: var(--viola); font-weight: 600; font-size: 14px; text-decoration: none; margin-left: 18px; }
.arrow-link svg { width: 26px; height: 26px; }

/* riquadri con foto, uno sotto l'altro */
.format-tiles { padding: 30px 0 90px; }
.format-tiles .tile-photo { position: relative; display: block; height: 190px; overflow: hidden; margin-bottom: 20px; color: #FFF; text-decoration: none; }
.format-tiles .tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.format-tiles .tile-photo:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.6) 50%, rgba(0,0,0,.8)); transition: background .3s; }
.format-tiles .tile-photo:hover:after { background: rgba(68,49,141,.8); }
.format-tiles .tile-photo .label-stack { position: absolute; left: 24px; bottom: 20px; z-index: 1; max-width: 520px; }
.format-tiles .tile-photo .tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.format-tiles .tile-photo h3 { font-size: 22px; line-height: 1.36; font-weight: 400; margin: 2px 0 0; color: #FFF; }

/* domande a schede */
.faq-tabs { background: var(--grigio-fascia); padding: 90px 0; }
.faq-tabs .tab-row { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid #E4E4E4; }
.faq-tabs .tab-row button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; font: 600 15px 'Plus Jakarta Sans', Arial, sans-serif; padding: 12px 22px; cursor: pointer; color: #333; }
.faq-tabs .tab-row button[aria-selected='true'] { border-color: var(--viola); color: var(--viola); }
.faq-tabs .tab-panel dl { margin: 0; }
.faq-tabs .tab-panel dt { font-weight: 600; color: var(--nero-testo); margin-top: 18px; }
.faq-tabs .tab-panel dd { margin: 4px 0 0; font-size: 14px; }

/* blocco obiettivo */
.goal-block { padding: 120px 0; }
.goal-block .home-maximum-width { display: flex; flex-direction: column; gap: 40px; }
.goal-block .goal-text, .goal-block .goal-photo { min-width: 0; }
.goal-block .words-2x2 { display: flex; flex-wrap: wrap; gap: 30px 40px; margin: 10px 0 40px; }
.goal-block .words-2x2 div { flex: 1 1 40%; }
.goal-block .words-2x2 span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--viola); letter-spacing: .05em; }
.goal-block .words-2x2 b { display: block; font-size: 40px; font-weight: 400; line-height: 1.15; color: #000; }
.goal-block .words-2x2 p { margin: 4px 0 0; font-size: 14px; }
.goal-block .goal-photo img { width: 100%; aspect-ratio: .82; object-fit: cover; }

/* fuori dal corso e il limite */
.not-ours { background: var(--grigio-fascia); padding: 80px 0; }
.not-ours .home-maximum-width { display: flex; flex-direction: column; gap: 40px; }
.not-ours .home-maximum-width > div { min-width: 0; }
.not-ours ul { margin: 0; padding-left: 20px; }
.not-ours li { margin-bottom: 8px; }
.not-ours .weak-box { background: #FFF; border: 1px solid #EFEEEE; border-radius: 20px; padding: 26px 28px; }
.not-ours .weak-box h3 { margin: 0 0 8px; color: var(--viola); font-weight: 600; font-size: 18px; }

/* modulo in carta galleggiante */
.floating-form-zone { padding: 90px 0 110px; }
.floating-form { max-width: 460px; background: linear-gradient(180deg, #FFF, #F2F1F6); box-shadow: 0 4px 25px rgba(0,0,0,.3); padding: 30px 28px; }
.floating-form h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; color: var(--nero-testo); }
.floating-form > p { font-size: 13px; margin: 0 0 16px; }
.floating-form .error-summary { border: 2px solid #A0001F; background: #FFF4F6; padding: 12px 14px; margin-bottom: 14px; font-size: 13px; }
.floating-form .error-summary ul { margin: 6px 0 0; padding-left: 18px; }
.floating-form .pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border: 0; padding: 0; }
.floating-form .pill-row legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.floating-form .pill-row label { position: relative; }
.floating-form .pill-row input { position: absolute; opacity: 0; inset: 0; }
.floating-form .pill-row span { display: inline-block; border: 1px solid var(--viola); color: var(--viola); border-radius: 50px; padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer; background: #FFF; }
.floating-form .pill-row input:checked + span { background: var(--viola); color: #FFF; }
.floating-form .pill-row input:focus-visible + span { outline: 3px solid var(--oro); }
.floating-form .row-field { margin-bottom: 12px; }
.floating-form .row-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.floating-form .row-field input, .floating-form .row-field select, .floating-form .row-field textarea { width: 100%; border: 1px solid #E4E4E4; border-radius: 4px; padding: 9px 10px; font: 500 15px 'Plus Jakarta Sans', Arial, sans-serif; background: #FFF; }
.floating-form .row-field textarea { min-height: 90px; resize: vertical; }
.floating-form .row-field [aria-invalid='true'] { border-color: #A0001F; }
.floating-form .tiny-consent { display: flex; gap: 8px; font-size: 12px; margin: 8px 0 16px; align-items: flex-start; }
.floating-form .tiny-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--viola); }
.floating-form .submit-wrap { text-align: center; }
.floating-form .yellow-filled { min-width: 150px; }
.floating-form .esito { min-height: 1.5em; font-size: 13px; font-weight: 600; text-align: center; margin: 10px 0 0; }
.campo-fuori { position: absolute; left: -9000px; top: 0; }
.form-ok-box { background: #FCFBFF; border: 1px solid #EFEEEE; border-radius: 20px; padding: 24px; }
.form-ok-box h3 { margin: 0 0 6px; color: var(--viola); }

/* piede viola */
.max-footer { background: var(--viola); color: #FFF; border-top: 1px solid #B9B9B9; padding: 80px 28px 40px; }
.max-footer .marchio-piede img { height: 34px; width: auto; margin-bottom: 14px; }
.max-footer a { color: #E1E1E1; }
.max-footer details { border-top: 1px solid #FFF; }
.max-footer details:last-of-type { border-bottom: 1px solid #FFF; }
.max-footer summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-size: 18px; font-weight: 500; position: relative; }
.max-footer summary::-webkit-details-marker { display: none; }
.max-footer summary:after { content: ''; position: absolute; right: 4px; top: 18px; width: 22px; height: 22px; border: 1px solid #FFF; border-radius: 50%; background: linear-gradient(45deg, transparent 45%, #FFF 45%, #FFF 55%, transparent 55%); }
.max-footer details p { margin: 0 0 16px; font-size: 14px; }
.max-footer .link-cloud { margin: 30px 0 0; }
.max-footer .link-cloud h3 { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.max-footer .link-cloud p { font-size: 13px; color: #E1E1E1; margin: 0; }
.max-footer .link-cloud a { display: inline-block; padding: 4px 0; }
.max-footer .copy-line { margin-top: 40px; font-size: 13px; color: #E1E1E1; }
.max-footer button { background: none; border: 0; color: #FFF; font: inherit; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* finestra cookie */
.consenso-finestra { position: fixed; inset: 0; z-index: 90; background: rgba(27,21,48,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.consenso-finestra .riquadro { background: #FFF; max-width: 500px; width: 100%; padding: 28px; border-top: 6px solid var(--oro); }
.consenso-finestra h2 { font-size: 20px; margin: 0 0 8px; font-weight: 600; }
.consenso-finestra p { font-size: 14px; margin: 0 0 12px; }
.consenso-finestra label { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 4px 0; }
.consenso-finestra .bottoni { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.consenso-finestra .bottoni button { flex: 1 1 130px; font: 600 14px 'Plus Jakarta Sans', Arial, sans-serif; padding: 12px; cursor: pointer; border: 1px solid var(--viola); background: #FFF; color: var(--viola); }
.consenso-finestra .bottoni .yellow-filled { border-color: var(--oro); color: var(--nero-testo); background: var(--oro); }

/* testata viola e testo delle altre pagine */
.inner-banner { background: var(--viola); color: #FFF; padding: 70px 28px 60px; }
.inner-banner .crumbs { font-size: 13px; color: #E1E1E1; margin-bottom: 10px; }
.inner-banner .crumbs a { color: #E1E1E1; }
.inner-banner h1 { font-size: 40px; line-height: 1.25; font-weight: 400; margin: 0 0 10px; color: #FFF; }
.inner-banner h1 strong { font-weight: 800; }
.inner-banner p { max-width: 760px; margin: 0; }
.inner-body { padding: 60px 0 90px; }
.inner-body h2 { font-size: 24px; font-weight: 500; line-height: 1.3; margin: 34px 0 10px; color: var(--nero-testo); }
.inner-body h2:first-child { margin-top: 0; }
.inner-body p { margin: 0 0 14px; }
.inner-legal h2 { font-size: 19px; font-weight: 600; }
.inner-photo { margin: 26px 0; }
.inner-photo img { width: 100%; aspect-ratio: 2.4; object-fit: cover; }
.diff-sample { background: #FCFBFF; border: 1px solid #EFEEEE; border-radius: 20px; padding: 22px 24px; margin: 22px 0; }
.diff-sample p { margin: 0 0 6px; }
.diff-sample b { color: var(--viola); }

@media (min-width: 768px) {
  .home-banner { padding: 100px 140px 110px; }
  .home-banner .main-bannertext h1 { font-size: 54px; }
  .home-banner .search-box { height: 70px; padding: 0 50px; }
  .key-message-new { font-size: 42px; }
  .feature-band .feature-item { flex: 1 1 calc(50% - 65px); }
  .promo-card ul { columns: 2; }
  .not-ours .home-maximum-width { flex-direction: row; }
  .not-ours .home-maximum-width > div { flex: 1 1 50%; }
  .inner-banner { padding: 80px 45px 70px; }
  .inner-banner h1 { font-size: 48px; }
}
@media (min-width: 1024px) {
  .outer-content { padding: 0 45px; }
  .max-header nav ul { display: flex; gap: 26px; }
  .max-header .menu-btn { display: none; }
  .goal-block .home-maximum-width { flex-direction: row; align-items: flex-start; }
  .goal-block .goal-text { flex: 1 1 60%; }
  .goal-block .goal-photo { flex: 0 0 38%; position: sticky; top: 40px; }
  .max-footer { padding: 80px 45px 40px; }
  .max-footer .footer-cols { display: flex; gap: 60px; }
  .max-footer .footer-cols > div { flex: 1; min-width: 0; }
}
@media (min-width: 1366px) {
  .outer-content { padding: 0 102px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* aggiunte: misure in rem dove il testo deve crescere, spazi diversi tra le fasce */
body { font-size: 0.9375rem; }
.home-banner .main-bannertext h1, .home-banner .main-bannertext .lead, .home-banner .chip-label { text-shadow: 0 1px 3px rgba(0,0,0,.45); }
#lo-strumento-accordo { padding: 50px 0 110px; }
.faq-tabs { padding: 70px 0 96px; }
.not-ours { padding: 64px 0 88px; }
.floating-form .row-field input, .floating-form .row-field select, .floating-form .row-field textarea { font-size: 1rem; }
.home-banner .search-box input { font-size: 1.125rem; }
.inner-body p, .faq-tabs .tab-panel dd { font-size: 0.95rem; }
.key-message-new, .inner-banner h1 { text-wrap: balance; }

/* la differenza della settimana: tre passi che si aprono uno dopo l'altro */
.diff-week { padding: 20px 0 100px; }
.diff-week__intro { max-width: 820px; margin: -20px 0 30px; }
.diff-week__steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: passo; }
.diff-week__steps li { counter-increment: passo; border: 1px solid #EFEEEE; border-radius: 20px; background: #FCFBFF; padding: 18px 24px 18px 70px; margin-bottom: 14px; position: relative; opacity: .45; }
.diff-week__steps li::before { content: counter(passo); position: absolute; left: 22px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--viola-chiaro); color: #FFF; text-align: center; line-height: 32px; font-weight: 600; }
.diff-week__steps li p { display: none; margin: 6px 0 0; font-size: 14px; }
.diff-week__steps li.is-open { opacity: 1; }
.diff-week__steps li.is-open p { display: block; }
.diff-week__steps b { font-weight: 600; color: var(--nero-testo); }

/* consenso nell'angolo, senza velo sulla pagina */
.consenso-angolo { inset: auto auto 20px 20px; background: none; display: block; padding: 0; width: min(420px, calc(100% - 40px)); }
.consenso-angolo .riquadro { box-shadow: 0 4px 25px rgba(0,0,0,.3); }
.consenso-finestra .switch { gap: 12px; }
.consenso-finestra .switch input { appearance: none; width: 38px; height: 22px; border-radius: 22px; background: #CFCDE0; position: relative; cursor: pointer; flex: 0 0 auto; }
.consenso-finestra .switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFF; transition: left .2s; }
.consenso-finestra .switch input:checked { background: var(--viola); }
.consenso-finestra .switch input:checked::after { left: 19px; }
.consenso-finestra .switch input:disabled { opacity: .6; }
