/* ===== pagine interne e WordPress ===== */
body { background: #fff; }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* intestazione delle pagine */
.phead { padding: calc(var(--nav) + clamp(48px, 6vw, 88px)) 0 clamp(32px, 4vw, 56px) !important; }
.phead h1 { font: 700 clamp(38px, 4.4vw, 64px)/1.03 var(--font-display); letter-spacing: -0.03em; color: var(--p-ink); max-width: 20ch; }
.phead__lead { color: var(--p-muted); font-size: clamp(18px, 1.5vw, 21px); margin-top: var(--s-4); max-width: 48ch; }
.pimg img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 24px; display: block; }

/* testo libero (pagine, programma) */
.prose { max-width: 760px; color: var(--p-ink); font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 700 clamp(26px, 2.4vw, 34px)/1.15 var(--font-display); letter-spacing: -0.02em; margin-top: 1.6em; }
.prose h3 { font: 600 22px/1.25 var(--font-display); margin-top: 1.4em; }
.prose a { color: #1430d9; }
.prose ul, .prose ol { padding-left: 1.2em; }

/* scheda tour: testata */
.thero { position: relative; min-height: min(70svh, 620px); display: grid; align-content: end; color: #fff; padding: calc(var(--nav) + 48px) 0 56px !important; overflow: hidden; background: #0e1a6b; }
.thero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(6 12 50 / .85) 0%, rgb(6 12 50 / .55) 45%, rgb(6 12 50 / .15) 100%); }
.thero__in { position: relative; z-index: 1; }
.thero__back a { color: #fff; font-weight: 600; text-decoration: none; opacity: .9; }
.thero__back a:hover { opacity: 1; text-decoration: underline; }
.thero h1 { font: 700 clamp(40px, 5vw, 76px)/1.02 var(--font-display); letter-spacing: -0.03em; margin-top: var(--s-4); max-width: 18ch; }
.thero__lead { font-size: clamp(18px, 1.5vw, 21px); margin-top: var(--s-4); max-width: 52ch; color: #eef0ff; }
.thero__chips { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thero__chips li { background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; backdrop-filter: blur(6px); }
.thero__chips li:first-child { background: #f07010; border-color: #f07010; color: #111; }

/* scheda tour: programma e colonna */
.tlayout { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.program h2 { font: 700 clamp(30px, 3vw, 44px)/1.05 var(--font-display); letter-spacing: -0.025em; color: var(--p-ink); margin-bottom: var(--s-6); }
.program__days { counter-reset: day; }
.program__days h3 { position: relative; font: 600 21px/1.3 var(--font-display); color: var(--p-ink); padding: 26px 0 8px 64px; border-top: 1px solid #dfe3f5; }
.program__days h3::before { counter-increment: day; content: counter(day); position: absolute; left: 0; top: 22px; width: 44px; height: 44px; border-radius: 50%; background: #1430d9; color: #fff; display: grid; place-items: center; font: 700 18px/1 var(--font-display); }
.program__days p { color: var(--p-muted); font-size: 17px; line-height: 1.65; padding-left: 64px; margin: 0 0 18px; }
.tside { position: sticky; top: calc(var(--nav) + 24px); }
.tside__card { background: var(--p-surface); border-radius: 24px; padding: 20px; display: grid; gap: 16px; }
.tside .map { border-radius: 16px; }
.tside__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 4px 0; }
.tside__facts dt { font-size: 13px; font-weight: 600; color: var(--p-muted); text-transform: uppercase; letter-spacing: .05em; }
.tside__facts dd { margin: 4px 0 0; font: 600 18px/1.3 var(--font-display); color: var(--p-ink); }
.tside__btn { justify-content: center; width: 100%; }
.tside .btn--secondary { background: #fff; }

/* modulo Contact Form 7 dentro il blocco blu */
.qform { display: block; }
.qform .wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.qform .wpcf7 form > .hidden-fields-container { display: none; }
.qform .wpcf7 label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--p-muted); }
.qform .wpcf7 .full { grid-column: 1 / -1; }
.qform .wpcf7-form-control-wrap { display: block; }
.qform .wpcf7 input:not([type="submit"]), .qform .wpcf7 select, .qform .wpcf7 textarea { font: 400 17px/1.4 var(--font-text); color: var(--p-ink); border: 1px solid #d4d9ef; border-radius: 10px; padding: 12px 14px; background: #fff; width: 100%; box-sizing: border-box; }
.qform .wpcf7 textarea { min-height: 110px; height: 110px; resize: vertical; }
.qform .wpcf7 input[type="submit"] { grid-column: 1 / -1; font: 600 17px/1 var(--font-text); background: #1430d9; color: #fff; border: 0; border-radius: var(--r-md, 10px); padding: 17px; cursor: pointer; }
.qform .wpcf7 input[type="submit"]:hover { background: #0f25b0; }
.qform .wpcf7-spinner { position: absolute; }
.qform .wpcf7 .wpcf7-response-output { grid-column: 1 / -1; margin: 0; border-radius: 10px; font-size: 15px; color: var(--p-ink); }
.qform .wpcf7-not-valid-tip { font-size: 13px; font-weight: 500; }
.qform .wpcf7 .note-small { grid-column: 1 / -1; color: var(--p-muted); font-size: 13px; font-weight: 400; }

@media (max-width: 1023px) {
  .tlayout { grid-template-columns: 1fr; }
  .tside { position: static; }
}
@media (max-width: 639px) {
  .qform .wpcf7 form { grid-template-columns: 1fr; }
  .program__days h3 { padding-left: 56px; }
  .program__days p { padding-left: 0; }
  .thero { min-height: 70svh; }
}
.program__days .program__intro { font: 600 clamp(24px, 2vw, 30px)/1.2 "Caveat", cursive; color: #e01b1b; padding-left: 0; margin-bottom: 24px; }
.program__days h4 { font: 700 18px/1.3 var(--font-display); color: #d4600a; text-transform: uppercase; letter-spacing: .05em; padding: 28px 0 6px; border-top: 1px dashed #f0a060; margin-top: 12px; }
.program__days h4 ~ p { padding-left: 0; }
.program__days p em { color: var(--p-ink); }

/* ===== pagine interne ===== */
.phead .eyebrow, .thero .eyebrow { margin-bottom: var(--s-3); }
.thero .eyebrow { color: #ffb070; }
.thero--page { min-height: min(62svh, 560px); }
.thero--page h1 { margin-top: 0; max-width: 20ch; }
.phead__note { font: 600 clamp(24px, 2vw, 30px)/1.1 "Caveat", cursive; color: #e01b1b; margin-top: var(--s-3); transform: rotate(-2deg); transform-origin: left; }
.thero .phead__note { color: #ffd2b0; }
.phead__cta { margin-top: var(--s-5); }
.phead { border-bottom: 1px solid #e4e8f7; }
.pbody { padding-top: clamp(48px, 6vw, 88px) !important; }

.prose { max-width: none; }
.prose > * { max-width: 760px; }
.prose > .alignwide, .prose > .pv-continents { max-width: none; }
.prose > h2 { padding-top: .4em; scroll-margin-top: calc(var(--nav) + 24px); }
.prose > h2:first-child { margin-top: 0; }
.prose strong { color: var(--p-ink); font-weight: 600; }
.prose p, .prose li { color: #2c3770; }
.prose .pv-small { font-size: 15px; color: var(--p-muted); }
.prose .pv-draft { background: #fff4e5; border-left: 4px solid #f07010; padding: 12px 16px; border-radius: 8px; font-size: 15px; }

/* spunte */
.prose ul.pv-ticks { list-style: none; padding: 0; display: grid; gap: 14px; }
.prose ul.pv-ticks li { position: relative; padding-left: 36px; }
.prose ul.pv-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: #f07010 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* continenti e paesi */
.pv-continents { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: var(--s-5) !important; }
.pv-continent { background: var(--p-surface); border-radius: 20px; padding: 22px 22px 18px; }
.prose .pv-continent h3 { margin: 0 0 12px; font: 700 21px/1.2 var(--font-display); color: var(--p-ink); }
.prose .pv-continent ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prose .pv-continent li { margin: 0; }
.prose .pv-continent a { display: inline-block; background: #fff; color: var(--p-ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid #d9def4; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.prose .pv-continent a:hover { background: #1430d9; border-color: #1430d9; color: #fff; transform: translateY(-1px); }

/* linea del tempo */
.pv-timeline { position: relative; margin-top: var(--s-5) !important; display: grid; grid-template-columns: 96px 1fr; column-gap: 28px; }
.pv-timeline::before { content: ""; position: absolute; left: 110px; top: 10px; bottom: 10px; border-left: 2px dashed #f0a060; }
.prose .pv-timeline h3 { grid-column: 1; margin: 0; padding: 18px 0; font: 700 26px/1 var(--font-display); color: #1430d9; letter-spacing: -0.02em; }
.prose .pv-timeline p { grid-column: 2; margin: 0; padding: 18px 0 18px 28px; position: relative; border-bottom: 1px solid #e8ebf7; }
.prose .pv-timeline p::before { content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: #f07010; box-shadow: 0 0 0 4px #fff; }

/* elenco documenti */
.prose ul.pv-docs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.prose ul.pv-docs li { margin: 0; position: relative; background: #fff; border: 1px solid #dfe3f5; border-radius: 14px; padding: 14px 16px 14px 58px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.prose ul.pv-docs li:hover { border-color: #1430d9; transform: translateY(-2px); box-shadow: 0 8px 24px rgb(14 26 107 / .08); }
.prose ul.pv-docs li::before { content: "PDF"; position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 32px; height: 38px; border-radius: 4px 10px 4px 4px; background: #e01b1b; color: #fff; font: 700 10px/38px var(--font-text); text-align: center; letter-spacing: .04em; }
.prose ul.pv-docs a { color: var(--p-ink); font-weight: 600; text-decoration: none; }
.prose ul.pv-docs a::after { content: ""; position: absolute; inset: 0; }
.prose ul.pv-docs small { display: block; color: var(--p-muted); font-size: 14px; }

/* tabelle e riquadri */
.prose .pv-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose .pv-table th { text-align: left; font: 600 13px/1.2 var(--font-text); text-transform: uppercase; letter-spacing: .05em; color: var(--p-muted); padding: 10px 12px; border-bottom: 2px solid #1430d9; }
.prose .pv-table td { padding: 14px 12px; border-bottom: 1px solid #e4e8f7; color: var(--p-ink); }
.prose .pv-table td:last-child { font-weight: 600; }
.prose .pv-box { background: var(--p-surface); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.prose .pv-box > * + * { margin-top: .8em; }
.prose .pv-box h3 { margin-top: 0; }

/* pagine legali */
.prose--legal > h2 { font-size: clamp(22px, 2vw, 28px); }
.prose--legal > h3 { font-size: 19px; }
.prose--legal p { font-size: 16px; line-height: 1.7; }

/* contatti */
.contact { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__info { display: grid; gap: 40px; }
.contact__block h2 { font: 600 14px/1 var(--font-text); text-transform: uppercase; letter-spacing: .06em; color: #d4600a; margin-bottom: 14px; }
.contact__big { font: 700 clamp(28px, 2.6vw, 38px)/1.15 var(--font-display); color: var(--p-ink); letter-spacing: -0.02em; margin-bottom: 18px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #e4e8f7; }
.contact__list span, .contact__hours dt { color: var(--p-muted); font-size: 15px; }
.contact__list a { font: 600 20px/1.3 var(--font-display); color: var(--p-ink); text-decoration: none; }
.contact__list a:hover { color: #1430d9; text-decoration: underline; }
.contact__hours { margin: 0; display: grid; gap: 4px; }
.contact__hours div { display: grid; grid-template-columns: 160px 1fr; padding: 10px 0; border-bottom: 1px solid #e4e8f7; }
.contact__hours dd { margin: 0; font-weight: 600; color: var(--p-ink); }
.contact__map .map { background: var(--p-surface); border-radius: 24px; padding: 12px; }

/* casella privacy nel modulo */
.qform .wpcf7 .wpcf7-acceptance { display: block; }
.qform .wpcf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--p-muted); }
.qform .wpcf7 .wpcf7-acceptance input { width: 18px !important; height: 18px; margin-top: 1px; flex: none; accent-color: #1430d9; }
.qform .wpcf7 .wpcf7-acceptance a { color: #1430d9; }
.qform .wpcf7 .wpcf7-list-item { margin: 0; }

@media (max-width: 1023px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .pv-timeline { grid-template-columns: 1fr; }
  .pv-timeline::before { display: none; }
  .prose .pv-timeline h3 { padding: 22px 0 4px; font-size: 22px; }
  .prose .pv-timeline p { grid-column: 1; padding: 0 0 18px; }
  .prose .pv-timeline p::before { display: none; }
  .contact__list li { grid-template-columns: 1fr; }
  .contact__hours div { grid-template-columns: 1fr; }
  .prose .pv-table { overflow-x: auto; }
}
.prose > * { width: 100%; justify-self: stretch; box-sizing: border-box; }
/* tema classico: i gruppi hanno un contenitore interno che rompe le griglie */
:is(.pv-timeline, .pv-continents) > .wp-block-group__inner-container { display: contents; }
.prose .wp-block-group__inner-container > * + * { margin-top: .8em; }
.pv-continent > .wp-block-group__inner-container > * + * { margin-top: 0; }
.prose .pv-table table, .prose .pv-table th, .prose .pv-table td { border-left: 0; border-right: 0; border-top: 0; }
.prose .pv-table thead { border-bottom: 0; }
/* programma: anche i titoli di livello 2 (quelli che WordPress mette di default) contano come giorni */
.program__days h2 { position: relative; font: 600 21px/1.3 var(--font-display); color: var(--p-ink); padding: 26px 0 8px 64px; border-top: 1px solid #dfe3f5; margin: 0; letter-spacing: 0; }
.program__days h2::before { counter-increment: day; content: counter(day); position: absolute; left: 0; top: 22px; width: 44px; height: 44px; border-radius: 50%; background: #1430d9; color: #fff; display: grid; place-items: center; font: 700 18px/1 var(--font-display); }
@media (max-width: 639px) { .program__days h2 { padding-left: 56px; } }
.prose ul:not([class*="pv-"]) { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; }
