/* Cedola Attesa: foglio unico, blocchi nello stesso ordine in cui compaiono in pagina */

:root {
  --viola: #240f6e;
  --viola-notte: #160943;
  --blu: #082ecf;
  --lime: #c0df16;
  --cielo: #c8e1fc;
  --grigio: #efefef;
  --testo: #212121;
  --serif: "Merriweather", Georgia, serif;
  --sans: "Open Sans", Arial, sans-serif;
}

html { overflow-x: clip; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.375; color: var(--testo); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--viola); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, label:focus-within { outline: 3px solid var(--blu); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 900; margin: 0 0 .75rem; text-wrap: balance; }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: .5rem; left: .5rem; width: auto; height: auto; clip: auto; background: #fff; padding: .6rem 1rem; z-index: 99; }
.alignfull { width: 100%; }
.alignwide { max-width: 73.75rem; margin-inline: auto; padding-inline: 1.5rem; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.wp-block-button__link { display: inline-block; background: var(--viola); color: #fff; border: 1px solid var(--viola); border-radius: 4px; padding: .7rem .95rem .8rem; font-weight: 600; text-decoration: none; }
.wp-block-button__link:hover { background: var(--blu); border-color: var(--blu); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; border-color: #fff; color: #fff; }
.is-style-white .wp-block-button__link { background: #fff; border-color: #fff; color: var(--viola); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:after { content: " ›"; }

/* testata */
.masthead { background: var(--viola); color: #fff; }
.masthead .alignwide { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; }
.site-branding img { width: 13.5rem; height: auto; }
.header-actions { display: flex; gap: 1rem; }
.header-actions .wp-block-button__link { padding: .55rem .9rem; }
.menu-burger { display: none; background: none; border: 1px solid #fff; color: #fff; border-radius: 4px; padding: .5rem .8rem; font: 600 .9375rem var(--sans); }

/* hero a mosaico */
.hero-full-width { position: relative; padding-top: 3rem; }
.hero-mosaic { display: grid; grid-template-columns: 1.25fr .85fr 1fr 1.3fr; grid-template-rows: 9.8rem 9.8rem; gap: 1rem; }
.hero-mosaic figure { margin: 0; border-radius: 4px; overflow: hidden; min-width: 0; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .tall { grid-row: span 2; }
.hero-box { position: relative; z-index: 2; width: min(38rem, 92%); margin: -5.5rem 0 0 4rem; background: var(--blu); color: #fff; padding: 3rem 3rem 3.5rem; border-radius: 0 0 4px 4px; }
.hero-box h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; margin: 0; }
.hero-intro { padding: 4rem 0 4.5rem; max-width: 50rem; }
.hero-intro .big { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.33; }
.hero-intro p { font-size: 1.375rem; line-height: 1.55; }

/* fondo ondulato con schede */
.is-style-background-wavy { position: relative; background: var(--grigio); padding: 5rem 0 6rem; margin-top: 2rem; }
.is-style-background-wavy:before { content: ""; position: absolute; left: 0; right: 0; top: -2rem; height: 2.1rem; background: var(--grigio); clip-path: ellipse(70% 100% at 50% 100%); }
.is-style-background-wavy h2 { text-align: center; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.25; }
.is-style-background-wavy .sub { text-align: center; max-width: 52rem; margin: 0 auto 1.5rem; }
.kaplan-tabs { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.kaplan-tabs button { min-width: 10.5rem; border: 0; background: #6f6f6f; color: #fff; font: 700 1.375rem/1.15 Arial, sans-serif; padding: .9rem 1rem; border-radius: 4px 4px 0 0; cursor: pointer; }
.kaplan-tabs button[aria-selected="true"] { background: #fff; color: var(--testo); }
.kaplan-panel { background: #fff; max-width: 48rem; margin: 0 auto; padding: 2rem 2.25rem; border-radius: 0 0 4px 4px; }
.kaplan-panel h3 { font-size: 1.5rem; }
.kaplan-panel ol { margin: 0; padding-left: 1.25rem; }
.kaplan-panel li { margin-bottom: .6rem; }
.kaplan-panel .riga-esempio { margin-top: 1.25rem; padding: 1rem 1.25rem; border-left: 4px solid var(--lime); background: #f7f7f7; font-size: .9375rem; }

/* fascia lime con fisarmonica */
.kaplan-accordion-group { background: var(--lime); padding: 2rem 0 0; }
.kaplan-accordion-group .alignwide { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.accordion-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--testo); padding-bottom: 1.25rem; }
.accordion-head h2 { font-size: 3rem; margin: 2rem 0 0; }
.accordion-head svg { width: 6.5rem; height: 5rem; }
.kaplan-accordion details { border-bottom: 2px solid var(--testo); }
.kaplan-accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; font-size: 1.5rem; font-weight: 700; }
.kaplan-accordion summary::-webkit-details-marker { display: none; }
.kaplan-accordion summary:after { content: ""; width: .75rem; height: .75rem; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); margin-right: .5rem; transition: transform .2s; }
.kaplan-accordion details[open] summary:after { transform: rotate(-135deg); }
.kaplan-accordion details p { padding: 0 2rem 1rem 3.5rem; font-size: 1.125rem; line-height: 1.33; }
.dotted-photo { position: relative; padding: 0 0 8.5rem; }
.dotted-photo:after { content: ""; position: absolute; inset: 12rem -1.5rem 0 0; background-image: radial-gradient(#fff 22%, transparent 24%); background-size: 1.375rem 1.375rem; z-index: 0; }
.dotted-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.29; object-fit: cover; }

/* esempio in riquadro azzurro */
.example-block { padding: 4.5rem 0 3rem; }
.example-block h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.example-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.example-card { background: var(--cielo); padding: 2rem 2rem 2.25rem; margin-right: -1px; }
.example-card blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.3; }
.example-card .who { font-size: .875rem; line-height: 1.3; }
.example-split img { width: 100%; height: 100%; min-height: 26rem; object-fit: cover; border-radius: 0 4px 4px 0; }

/* si e no */
.yesno { padding: 3.5rem 0; }
.yesno .alignwide { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.yesno h2 { grid-column: 1 / -1; font-size: 2.25rem; }
.yesno-col { border-top: 6px solid var(--viola); padding-top: 1.25rem; }
.yesno-col.no { border-color: #a0a0a0; }
.yesno-col h3 { font-family: var(--sans); font-size: 1.5rem; }
.yesno-col ul { margin: 0; padding: 0; list-style: none; }
.yesno-col li { padding: .65rem 0; border-bottom: 1px solid #d9d9d8; }

/* storie: una grande, tre piccole */
.stories { padding: 2rem 0 5rem; }
.stories h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.story-big { position: relative; border-radius: 4px; overflow: hidden; margin-bottom: 3rem; }
.story-big img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.story-big .caption { position: absolute; left: 2.5rem; bottom: 3rem; max-width: 42rem; }
.story-big .caption span { background: #fff; color: var(--viola); font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 2.1rem); line-height: 1.45; padding: .1rem .6rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.story-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.story-card { background: var(--cielo); border-radius: 4px; overflow: hidden; min-width: 0; }
.story-card img { width: 100%; aspect-ratio: 1.78; object-fit: cover; }
.story-card .inner { padding: 1.5rem 1.5rem 2rem; }
.story-card h3 { font-size: 1.5rem; line-height: 1.33; }
.story-card p { font-size: .9375rem; margin: 0; }

/* date e quota */
.has-grey-20-background-color { background: var(--grigio); padding: 4rem 0 5rem; }
.dates-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.date-feature { display: grid; grid-template-columns: 1fr 1fr; }
.date-feature .yellow { background: #fcc42a; padding: 2rem 1.5rem; }
.date-feature .yellow strong { display: inline-block; background: #fff; font: 900 clamp(2rem, 4vw, 3.4rem)/1.05 var(--sans); padding: .2rem .6rem; letter-spacing: -.03em; }
.date-feature .yellow ul { margin: 1.5rem 0 0; padding: 0; list-style: none; font-weight: 700; }
.date-feature .yellow li { padding: .4rem 0; }
.date-feature img { width: 100%; height: 100%; object-fit: cover; }
.date-text { padding: 1.5rem; }
.date-text h3 { font-size: 2rem; }
.side-cards { display: flex; flex-direction: column; gap: 2rem; }
.side-card { background: var(--cielo); border-radius: 4px; overflow: hidden; }
.side-card img { width: 100%; aspect-ratio: 1.78; object-fit: cover; }
.side-card .inner { padding: 1.5rem; }
.side-card h3 { font-size: 1.4rem; line-height: 1.3; }

/* modulo a tessere */
.wFormContainer { padding: 4.5rem 0; }
.wFormContainer h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.wForm { max-width: 50rem; }
.wForm fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; }
.wForm legend { font-weight: 700; font-size: 1.125rem; margin-bottom: .75rem; }
.tile-set { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.tile-set.four { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: block; background: #fff; border: 2px solid #d9d9d8; border-radius: 4px; padding: 1rem; cursor: pointer; min-height: 5.5rem; }
.tile input { position: absolute; opacity: 0; }
.tile b { display: block; font-family: var(--serif); font-size: 1.125rem; }
.tile small { color: #555; }
.tile:has(input:checked) { border-color: var(--viola); background: #f2effc; box-shadow: inset 0 0 0 1px var(--viola); }
.wf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wf-field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.wf-field input { width: 100%; padding: .75rem; border: 1px solid #a0a0a0; border-radius: 4px; font: 1rem var(--sans); }
.wf-field input:invalid:not(:placeholder-shown) { border-color: #b3261e; }
.wf-check { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; }
.wf-trap { position: absolute; left: -9999px; }
.wf-msg { min-height: 1.5rem; margin: .75rem 0; font-weight: 600; }
.wf-msg.err { color: #b3261e; }
.wf-ok { background: var(--cielo); padding: 1.5rem; border-radius: 4px; }
.wfPagingButtons button { border: 0; background: var(--viola); color: #fff; border-radius: 4px; padding: .9rem 1.6rem; font: 600 1rem var(--sans); cursor: pointer; }
.wfPagingButtons button[disabled] { opacity: .6; cursor: progress; }

/* domande */
.faq-block { padding: 1rem 0 5rem; }
.faq-block h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.faq-block details { border-bottom: 1px solid var(--testo); max-width: 52rem; }
.faq-block summary { cursor: pointer; padding: 1rem 0; font-weight: 700; font-size: 1.125rem; }
.faq-block details p { padding-bottom: 1rem; margin: 0; }

/* prossimi passi */
.next-steps { padding: 4rem 0 5rem; }
.next-steps h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.next-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.next-card { background: var(--cielo); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--testo); min-width: 0; }
.next-card img { width: 100%; aspect-ratio: 1.78; object-fit: cover; }
.next-card span { display: block; padding: 1.25rem 1.5rem 2rem; font-family: var(--serif); font-weight: 900; font-size: 1.5rem; line-height: 1.33; }
.next-card span:after { content: " ›"; }

/* pagine del corso e note legali */
.page-hero { background: var(--viola); color: #fff; padding: 3.5rem 0 3rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1.15; }
.page-hero p { font-size: 1.25rem; max-width: 46rem; margin: 0; }
.crumbs { font-size: .875rem; margin-bottom: 1.25rem; }
.crumbs a { color: #fff; }
.page-body { max-width: 50rem; margin: 0 auto; padding: 3.5rem 1.5rem 4.5rem; font-size: 1.0625rem; line-height: 1.6; }
.page-body h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.page-body figure { margin: 2rem 0; }
.page-body figure img { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: 4px; }
.page-body figcaption { font-size: .875rem; color: #555; margin-top: .5rem; }
.page-body .box-lime { background: var(--lime); padding: 1.25rem 1.5rem; border-radius: 4px; margin: 1.75rem 0; }
.page-body .box-cielo { background: var(--cielo); padding: 1.25rem 1.5rem; border-radius: 4px; margin: 1.75rem 0; }
.legal-page .page-body h2 { font-size: 1.3rem; margin-top: 2rem; }

/* piede */
.footer-dots { height: 1.75rem; background-image: radial-gradient(var(--viola) 30%, transparent 32%); background-size: 1.1rem 1.1rem; background-position: 0 50%; }
.colophon { background: var(--viola); color: #fff; padding: 4rem 0 3rem; font-size: .9375rem; }
.colophon a { color: #fff; text-decoration: none; }
.colophon a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-family: var(--sans); font-weight: 400; font-size: .875rem; text-transform: uppercase; margin: 0 0 1.5rem; }
.footer-grid h4:after { content: ""; display: block; width: 1rem; height: 1px; background: #fff; margin-top: .6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .9rem; }
.footer-logo { width: 14.5rem; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.footer-grid button { background: none; border: 0; color: #fff; font: inherit; padding: 0; cursor: pointer; text-align: left; }
.footer-grid button:hover { text-decoration: underline; }
.legal-strip { background: var(--viola-notte); color: #fff; text-align: center; font-size: .875rem; padding: 1rem; }

/* scheda cookie in angolo */
.consent-card { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; width: min(23rem, calc(100% - 2.5rem)); background: #fff; color: var(--testo); border-top: 6px solid var(--lime); border-radius: 4px; box-shadow: 0 .5rem 2rem rgba(22, 9, 67, .3); padding: 1.25rem 1.25rem 1rem; font-size: .9375rem; }
.consent-card p { margin-bottom: .9rem; }
.consent-card .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-card button { flex: 1 1 auto; border: 1px solid var(--viola); border-radius: 4px; padding: .55rem .7rem; font: 600 .875rem var(--sans); cursor: pointer; background: #fff; color: var(--viola); }
.consent-card button.yes { background: var(--viola); color: #fff; }
.consent-card .opts { border-top: 1px solid #d9d9d8; margin-top: .9rem; padding-top: .75rem; }
.consent-card .opts label { display: flex; gap: .5rem; margin-bottom: .5rem; font-size: .875rem; }

@media (max-width: 1000px) {
  .hero-mosaic { grid-template-columns: 1fr 1fr 1fr; }
  .hero-mosaic figure:nth-child(5) { display: none; }
  .next-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .alignwide { padding-inline: 1rem; }
  .header-actions { display: none; }
  .header-actions.is-open { display: flex; flex-direction: column; position: absolute; top: 5.5rem; left: 0; right: 0; background: var(--viola); padding: 1rem; z-index: 40; }
  .menu-burger { display: block; }
  .masthead { position: relative; }
  .hero-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 7rem 7rem; }
  .hero-mosaic figure:nth-child(n+4) { display: none; }
  .hero-box { margin: -3rem 0 0 0; width: 100%; padding: 2rem 1.25rem; }
  .hero-intro { padding: 2.5rem 0 3rem; }
  .hero-intro p { font-size: 1.125rem; }
  .kaplan-tabs { gap: .5rem; }
  .kaplan-tabs button { min-width: 0; flex: 1; font-size: 1rem; }
  .kaplan-panel { padding: 1.5rem 1.1rem; }
  .kaplan-accordion-group .alignwide, .example-split, .yesno .alignwide, .dates-grid, .date-feature, .story-row, .wf-row, .footer-grid { grid-template-columns: 1fr; }
  .accordion-head h2 { font-size: 2.25rem; }
  .kaplan-accordion details p { padding: 0 0 1rem; }
  .dotted-photo { padding-bottom: 2rem; }
  .dotted-photo:after { inset: 8rem 0 0 0; }
  .example-card { margin-right: 0; }
  .example-split img { min-height: 16rem; border-radius: 0 0 4px 4px; }
  .story-big .caption { left: 1rem; right: 1rem; bottom: 1rem; }
  .tile-set, .tile-set.four { grid-template-columns: 1fr 1fr; }
  .next-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
