/* Booking prototype: visual language shared with the guided journey. */
body.booking-modern{background:#edf4fa url('/img/sfondo_cerca.png') center top/cover fixed no-repeat;color:#0f172a}
.booking-modern .ph-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px clamp(20px,5vw,72px);border-bottom:1px solid #ccdbe8;background:#f7fbffcc}
.booking-modern .ph-header img{width:175px;height:50px;object-fit:contain}
.booking-modern .ph-header nav{display:flex;align-items:center;gap:28px}
.booking-modern .ph-header a{font-size:12px;font-weight:600;text-decoration:none;color:#334155}
.booking-modern .ph-home{display:flex;align-items:center;gap:7px}
.booking-modern .ph-guided-nav{display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--blue);font:700 13px var(--font-body);cursor:pointer}
.booking-modern .ph-main{max-width:1220px;margin:0 auto;padding:0 clamp(20px,4vw,44px)}
.booking-modern .ph-hero{position:relative;padding:36px 0 0}
.booking-modern .ph-eyebrow{display:block;color:var(--blue);font-size:10px;font-weight:700;letter-spacing:.14em}
.booking-modern .ph-hero-copy{max-width:1100px;margin:0 auto;text-align:center}
.booking-modern .ph-hero-copy .ph-eyebrow{grid-column:1/-1}
.booking-modern .ph-hero h1{margin:12px 0 14px;font:500 clamp(28px,4.3vw,60px)/1.02 var(--font-display);letter-spacing:-.025em;color:#0f172a}
.booking-modern .ph-hero h1 span{color:var(--blue)}
.booking-modern .ph-hero-copy>p{margin:0 auto 24px;max-width:920px;font-size:15px;line-height:1.65;color:#475569}
.booking-modern .ph-steps{list-style:none;display:flex;justify-content:center;gap:30px;max-width:920px;margin:0 auto 18px;padding:0;border-bottom:1px solid #becfe0}
.booking-modern .ph-steps li{display:flex;align-items:center;gap:8px;padding:0 0 12px;font-size:11px;font-weight:600;color:#61758a}
.booking-modern .ph-steps li:first-child{color:var(--blue);border-bottom:2px solid var(--blue);margin-bottom:-1px}
.booking-modern .ph-steps li>span{font-size:10px;font-weight:800;letter-spacing:.04em}
.booking-modern .ph-search-panel{max-width:920px;margin:0 auto;padding:8px 0 24px;border:0;background:transparent;box-shadow:none}
.booking-modern .ph-search-panel>label{display:block;text-align:center;margin-bottom:10px;font-size:12px;font-weight:600;color:#38536a}
.booking-modern .ph-search{max-width:920px;margin:0 auto;display:flex;align-items:center;gap:13px;padding:7px 7px 7px 18px;background:#fff;border:1px solid #b0c6d9;border-radius:999px;box-shadow:none}
.booking-modern .ph-search>span{color:var(--blue);font-size:25px}
.booking-modern .ph-search input{min-width:0;flex:1;width:100%;padding:12px 0;border:0;background:transparent;font:400 17px var(--font-body);color:#0f172a;outline:none}
.booking-modern .ph-search input::placeholder{color:#657d92}
.booking-modern .ph-search:focus-within{outline:3px solid #8bb5df;outline-offset:3px}
.booking-modern .ph-search button{display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 25px;min-height:50px;border:0;border-radius:999px;background:var(--blue);color:#fff;font:700 13px var(--font-body);cursor:pointer}
.booking-modern .ph-search button:hover{background:#00458e}
.booking-modern .ph-hint{text-align:center;margin:0 0 12px;font-size:11px;color:#526c82}
.booking-modern .ph-shortcuts{max-width:920px;margin:16px auto 0;justify-content:center;display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.booking-modern .ph-quick-label{display:none}
.booking-modern .ph-shortcuts a{display:inline-flex;align-items:center;gap:8px;padding:4px 7px;border:1px solid transparent;border-radius:999px;background:transparent;color:#345d80;text-decoration:none;font-size:11px;font-weight:600}
.booking-modern .ph-shortcuts a span{display:none}
.booking-modern .ph-shortcuts a:hover{background:#edf5fc;border-color:transparent;color:var(--blue);text-decoration:underline}
.booking-modern .ph-guided-strip{display:flex;align-items:center;gap:14px;padding:17px 4px;margin:0;border-bottom:0}
.booking-modern .ph-guided-symbol{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:4px;background:#eaf2f8;color:var(--blue);font-size:24px}
.booking-modern .ph-guided-strip>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;flex:1}
.booking-modern .ph-guided-strip strong{font-size:13px;font-weight:600}
.booking-modern .ph-guided-strip>div>span{font-size:12px;color:#526c82}
.booking-modern .ph-guided-strip button{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:10px 15px;border:1px solid #a9c4dc;border-radius:999px;background:#f7fbff80;color:var(--blue);font:700 12px var(--font-body);cursor:pointer}
.booking-modern .ph-guided-strip button:hover{background:#fff}
.booking-modern .ph-results-area{padding:22px 0 0}
.booking-modern .ph-results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.booking-modern .ph-results-heading>span{font-size:10px;font-weight:700;letter-spacing:.12em;color:#526c82}
.booking-modern .ph-results-heading a{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;text-decoration:none;color:var(--blue)}
.booking-modern .ph-results-heading a span{font-size:18px}
.booking-modern .booking-ref-results,.booking-modern .cup-test__results{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.booking-modern .cup-test__status{background:#fff;border:1px solid #d0dce6;border-radius:4px;padding:22px;min-height:96px}
.booking-modern .cup-test__status strong{color:#334c63;font-size:14px}
.booking-modern .cup-test__status p{color:#526c82;font-size:12px}
.booking-modern .cup-test__results-head{padding:0 0 14px;background:transparent}
.booking-modern .cup-test__results-head h2{font:500 26px/1.3 var(--font-display);color:#0f172a}
.booking-modern .cup-test__results-head>div>span{display:none}
.booking-modern .deeplink-result-filters{margin-top:18px;position:relative;top:auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding:0 0 12px;background:transparent;border:0}
.booking-modern .deeplink-result-filters button{min-height:28px;padding:0 10px;background:#edf5fb;border:1px solid #a9c4dc;border-radius:999px;font-size:10px;color:#345d80}
.booking-modern .deeplink-result-filters button.is-active{background:var(--blue);border-color:var(--blue);color:#fff}
.booking-modern .deeplink-result-group{background:transparent;border:0}
.booking-modern .deeplink-result-group__header{background:transparent;padding:18px 0 12px;border:0}
.booking-modern .deeplink-result-group__header h3{font-size:21px;color:#0f172a}
.booking-modern .deeplink-result-group__header p{font-size:12px;margin-top:4px}
.booking-modern .deeplink-result-group__header>div>span{font-size:10px;color:var(--blue)}
.booking-modern .cup-test__result-list{display:grid;gap:14px}
.booking-modern .cup-test__result{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:92px;background:#fff;border:1px solid rgba(148,163,184,.24);border-radius:14px;padding:18px 20px;box-shadow:0 16px 44px rgba(15,23,42,.055);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}
.booking-modern .cup-test__result:hover{background:#eff6ff;border-color:rgba(0,88,181,.48);box-shadow:0 22px 56px rgba(0,88,181,.12);transform:translateY(-2px)}
.booking-modern .cup-test__result-icon{display:grid;place-items:center;width:54px;height:54px;background:rgba(0,88,181,.08);color:var(--blue);border-radius:999px;font-size:27px}
.booking-modern .cup-test__result-copy{min-width:0;overflow-wrap:anywhere}.booking-modern .cup-test__result-copy strong{display:block;font-size:18px;font-weight:800;line-height:1.25;color:#0f172a}.booking-modern .cup-test__result-copy small{display:block;margin-top:5px;color:#64748b;font-size:14px;line-height:1.45}
.booking-modern .cup-test__result-action{font-size:12px;color:var(--blue)}
.booking-modern .deeplink-result-group__empty{padding:20px 0;background:transparent}
.booking-modern .deeplink-site-results{border:0;background:transparent}
.booking-modern .deeplink-site-result{padding:16px 12px;border-color:#c3d7e7;background:transparent}
.booking-modern .ph-support{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;padding:18px 0 26px;border-top:1px solid #c4d5e3}
.booking-modern .ph-support a{display:flex;align-items:center;gap:6px;font-size:11px;color:#526c82;text-decoration:none}
.booking-modern .ph-support a>.material-symbols-outlined{font-size:17px}
.booking-modern .ph-support strong{color:#345d80;font-weight:600}
.booking-modern a:focus-visible,.booking-modern button:focus-visible{outline:3px solid #6c9fca;outline-offset:3px}
@media(max-width:640px){
.booking-modern .ph-header{padding:10px 20px;gap:10px}
.booking-modern .ph-header img{width:135px;height:40px}
.booking-modern .ph-header nav{gap:12px}
.booking-modern .ph-header a{font-size:0}
.booking-modern .ph-header a>span{font-size:22px}
.booking-modern .ph-guided-nav{font-size:11px;gap:4px}
/* Compact site header on the booking flow page: logo + "Torna al sito" only. */
.booking-modern.booking-flow-page .ph-header{height:56px;min-height:56px;padding:0 14px;gap:10px}
.booking-modern.booking-flow-page .ph-header img{width:132px;height:auto;max-height:40px}
.booking-modern.booking-flow-page .ph-header nav{gap:10px}
.booking-modern.booking-flow-page .ph-header .ph-guided-nav{display:none}
.booking-modern.booking-flow-page .ph-header .ph-home{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid #ccdbe8;border-radius:999px;font-size:11px;font-weight:700;color:#315f80}
.booking-modern.booking-flow-page .ph-header .ph-home>span{font-size:18px}
.booking-modern .ph-hero{padding-top:24px}
.booking-modern .ph-hero-copy{display:block}
.booking-modern .ph-hero h1{font-size:46px;line-height:1.05;white-space:normal;text-wrap:balance;margin-bottom:24px}
.booking-modern .ph-hero-copy>p{display:none}
.booking-modern .ph-desktop-break{display:none}
.booking-modern .ph-steps{gap:12px;justify-content:space-between}
.booking-modern .ph-steps li{font-size:10px;gap:5px;align-items:flex-start;flex:1;line-height:1.4}
.booking-modern .ph-search-panel{padding:6px 0 22px}
.booking-modern .ph-search{padding:8px 8px 8px 12px;gap:7px}
.booking-modern .ph-search input{font-size:16px;min-height:48px}
.booking-modern .ph-search button{padding:13px 15px;min-height:48px;font-size:14px}
.booking-modern .ph-search button span{display:inline-block;font-size:18px}
.booking-modern .ph-search>span{font-size:21px}
.booking-modern .ph-shortcuts{gap:6px}
.booking-modern .ph-quick-label{width:100%;margin:0 0 2px}
.booking-modern .ph-shortcuts a{padding:6px 9px;font-size:10px}
.booking-modern .ph-guided-strip{gap:10px;flex-wrap:wrap}
.booking-modern .ph-guided-strip>div{min-width:190px}
.booking-modern .ph-guided-strip button{margin-left:48px}
.booking-modern .deeplink-result-filters{gap:6px}
.booking-modern .deeplink-result-filters button{font-size:10px;padding:0 8px}
.booking-modern .cup-test__result{padding:14px 10px;grid-template-columns:34px minmax(0,1fr) 24px;gap:10px}.booking-modern .cup-test__result-copy{min-width:0;overflow-wrap:anywhere}.booking-modern .cup-test__result-icon{width:34px;height:34px}
.booking-modern .cup-test__result-action{font-size:0;gap:0}.booking-modern .cup-test__result-action span{font-size:22px}
.booking-modern .cup-test__results-head h2{font-size:28px}.booking-modern .deeplink-result-group__header h3{font-size:23px}.booking-modern .cup-test__result-copy strong{font-size:19px}.booking-modern .ph-support{align-items:flex-start;flex-direction:column;gap:12px}
}

.booking-modern .ph-search-help-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:12px}
.booking-modern .ph-search-help-row .ph-hint{margin:0}
.booking-modern .ph-search-help-row .booking-search-help{position:relative}
.booking-modern .ph-search-help-row .booking-search-help summary{font-size:11px}
.booking-modern .ph-search-help-row .booking-search-help__popover{text-align:left;z-index:10}
@media(max-width:640px){.booking-modern .ph-search-help-row{gap:8px}.booking-modern .ph-search-help-row .booking-search-help__popover{position:fixed;top:auto;left:20px;right:20px;width:auto;margin-top:8px;max-width:none}}
.booking-modern .ph-center-confirm{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid #dce5ef;border-radius:14px;background:#fff;color:#0f172a;box-shadow:0 22px 56px rgba(15,23,42,.18)}
.booking-modern .ph-center-confirm::backdrop{background:rgba(15,23,42,.45)}
.booking-modern .ph-center-confirm__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#eff6ff;color:var(--blue)}
.booking-modern .ph-center-confirm h2{margin:18px 0 12px;font-size:24px;line-height:1.2}
.booking-modern .ph-center-confirm p{font-size:15px;line-height:1.6;color:#475569}
.booking-modern .ph-center-confirm__actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}
.booking-modern .ph-center-confirm button{border:1px solid #b9cce0;border-radius:999px;padding:12px 16px;background:#fff;color:var(--blue);font:600 14px var(--font-body);cursor:pointer}
.booking-modern .ph-center-confirm button[value="continue"]{background:var(--blue);border-color:var(--blue);color:#fff}
/* Continuity between exam search and booking request. */
.booking-modern.booking-flow-page{--panel-blue:var(--blue);--charcoal:#0f172a;--muted:#526c82;--line:#a9c4dc}
.booking-modern.booking-flow-page .booking-ref-main--flow{max-width:1220px;width:100%;padding:36px clamp(20px,4vw,44px) 38px}
.booking-modern.booking-flow-page .booking-ref-frame-area{background:#fff;border:1px solid rgba(148,163,184,.24);border-radius:14px;box-shadow:0 16px 44px rgba(15,23,42,.055)}
.booking-modern.booking-flow-page .booking-ref-flow-title>.button{border-radius:999px;background:#fff;color:var(--blue);border-color:#a9c4dc}
.booking-modern.booking-flow-page .button--blue,.booking-modern.booking-flow-page .booking-prep-download{background:var(--blue);border-color:var(--blue);color:#fff}
.booking-modern.booking-flow-page .cup-embed-spinner{border-top-color:var(--blue)}
@media(max-width:640px){
.booking-modern.booking-flow-page .booking-ref-main--flow{padding:10px 0 0}
.booking-modern.booking-flow-page .booking-ref-flow-title{padding:0 14px}
.booking-modern.booking-flow-page .booking-ref-frame-head{gap:8px 10px;align-items:flex-end;flex-wrap:wrap}
.booking-modern.booking-flow-page .booking-ref-frame-head h2{font-size:17px}
.booking-modern.booking-flow-page .booking-ref-frame-area{border-radius:0;box-shadow:none}
}
.booking-modern .ph-header a.ph-guided-nav{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--blue)}
