/* Modulo di candidatura: impianto del modulo di CulturaleLab (colonna stretta, testata centrata con le pillole, scheda
   bianca, riquadro del prezzo, bottone a tutta larghezza), con colori, caratteri e voce di Hundred Select. */

.ap { max-width: 640px; margin: 0 auto; padding: 40px 18px 64px; }

/* Testata */
.ap-hero { text-align: center; margin-bottom: 28px; }
.ap-eyebrow { margin: 0 0 14px; font: 600 11px/1.4 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.ap-hero h1 { margin: 0 0 14px; font: 400 clamp(30px, 6vw, 44px)/1.12 var(--brand); color: var(--navy); }
.ap-sub { max-width: 480px; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ap-specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.ap-specs li { padding: 6px 13px; font: 500 12.5px/1.4 var(--ui); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 1px 2px rgba(20, 23, 28, .03); }
.ap-specs b { color: var(--brass); font-weight: 600; }

/* Scheda */
.ap-card { padding: 30px 26px; background: #fff; border: 1px solid #ebe5d9; border-radius: 16px; box-shadow: 0 1px 3px rgba(20, 23, 28, .04), 0 20px 50px -28px rgba(22, 38, 61, .28); }
@media (max-width: 479px) { .ap-card { padding: 24px 18px; } }
.ap-card--msg { text-align: center; }
.ap-msg__h { margin: 0 0 12px; font: 400 clamp(24px, 4vw, 30px)/1.2 var(--brand); color: var(--navy); }
.ap-card--msg p { color: var(--muted); }

/* Sezioni e campi */
.ap-sec { margin: 30px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); font: 600 12px/1.4 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.ap-form > .ap-sec:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.ap-field { margin: 0 0 18px; min-width: 0; }
.ap-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 560px) { .ap-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ap-field label { display: block; margin: 0 0 6px; font: 600 14px/1.4 var(--ui); color: var(--ink); }
.ap-req { color: var(--brass); margin-inline-start: 2px; }
.ap-opt { font-weight: 400; font-size: 13px; color: var(--muted); }
.ap-field input, .ap-field select, .ap-field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.4 var(--ui); color: var(--ink); background: #fff;
  border: 1px solid #d6cfc2; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.ap-field textarea { min-height: 170px; line-height: 1.6; resize: vertical; }
.ap-field select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316263D' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
[dir="rtl"] .ap-field select { background-position: left 14px center; }
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168, 135, 90, .22); }
.ap-field [aria-invalid="true"] { border-color: #a32020; }
.ap-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ap-field label + .ap-hint { margin: -2px 0 8px; }
.ap-err { margin: 6px 0 0; font: 500 13px/1.45 var(--ui); color: #a32020; }
.ap-count { margin: 6px 0 0; font-size: 12.5px; color: #8a8f98; }
.ap-count.is-ok { color: var(--green); font-weight: 600; }

/* Ricerca dell'hotel (places.js): tendina sotto il campo e scheda dell'hotel scelto */
.ap-combo { position: relative; }
.ap-combo__list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px); max-height: 320px; margin: 0; padding: 6px 0; overflow-y: auto; list-style: none; background: #fff; border: 1px solid #d6cfc2; border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(22, 38, 61, .35); }
.ap-combo__opt { padding: 10px 14px; cursor: pointer; line-height: 1.4; }
.ap-combo__opt b { display: block; font-weight: 600; color: var(--ink); }
.ap-combo__opt span { display: block; font-size: 13px; color: var(--muted); }
.ap-combo__opt:hover, .ap-combo__opt[aria-selected="true"] { background: #f6f1e7; }
.ap-combo__none { padding: 10px 14px; font-size: 14px; color: var(--muted); }
.ap-combo__manual { margin-top: 4px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); }
.ap-pc { position: relative; margin: 0 0 18px; padding: 14px 16px; padding-inline-end: 90px; background: #fbf8f2; border: 1px solid #e6dac3; border-radius: 12px; }
.ap-pc__name { margin: 0; font-weight: 600; color: var(--navy); }
.ap-pc__addr { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ap-pc .ap-link { position: absolute; top: 14px; inset-inline-end: 16px; font-size: 14px; color: var(--navy); }
.ap-place-fail { margin: 0 0 14px; }

/* Suggerimento sui refusi dell'email */
.ap-typo { margin: 8px 0 0; padding: 8px 11px; font-size: 13px; line-height: 1.5; color: #5c4520; background: #fbf6ec; border: 1px solid #ecdcbc; border-radius: 8px; }
.ap-typo button { margin-inline-start: 8px; }

/* Riquadro del prezzo e caselle */
.ap-ack { margin: 8px 0 16px; padding: 14px 16px; background: #fbf8f2; border: 1px solid #e6dac3; border-radius: 12px; }
.ap-ack .ap-check { color: var(--ink); font-weight: 500; }
.ap-ack b { color: var(--navy); font-weight: 700; }
.ap-consent { margin: 0 0 22px; display: grid; gap: 12px; }
.ap-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.ap-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); }
.ap-check a { color: var(--navy); }
[data-field].has-err .ap-check input { outline: 2px solid #a32020; outline-offset: 1px; }

/* Invio */
.ap-submit {
  display: block; width: 100%; min-height: 58px; padding: 15px; border: 0; border-radius: 10px;
  background: var(--navy); color: var(--ivory); font: 600 17px/1.2 var(--ui); letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(22, 38, 61, .8); transition: background .15s, transform .05s;
}
.ap-submit:hover { background: var(--navy-2); }
.ap-submit + .ap-submit { margin-block-start: 12px; }
.ap-submit:active { transform: translateY(1px); }
.ap-submit[disabled] { opacity: .65; cursor: progress; }

/* Avvisi in cima */
.ap-alert { margin: 0 0 20px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #7f1d1d; background: #fdf2f2; border: 1px solid #f3c9c9; border-radius: 10px; }
.ap-alert p { margin: 0 0 6px; font-weight: 600; }
.ap-alert ul { margin: 0; padding-inline-start: 20px; }
.ap-alert a { color: #7f1d1d; }
.ap-draft { margin: 0 0 18px; padding: 10px 13px; font-size: 13.5px; color: #24483d; background: #eef5f1; border: 1px solid #cfe2d8; border-radius: 10px; }
.ap-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }
.ap-stub { margin: 0 0 20px; padding: 12px; font-size: 12px; background: #f4f6f8; border: 1px dashed #9aa4b2; border-radius: 8px; overflow-x: auto; }
.ap-stub pre { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* Foto (images.js). Senza JS resta il campo nativo; col JS l'input è nascosto ma raggiungibile dal bottone. */
.ap-label { margin: 0 0 6px; font: 600 14px/1.4 var(--ui); color: var(--ink); }
.ap-label label { display: inline; margin: 0; }
.ap-label + .ap-hint { margin: -2px 0 10px; }
.ap-photos .ap-file { padding: 10px; font-size: 14px; }
.ap-photos.is-js .ap-file { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ap-pick {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; padding: 14px 16px;
  font: 600 15px/1.3 var(--ui); color: var(--navy); background: #fbf8f2; border: 1.5px dashed #cdbb98; border-radius: 12px; cursor: pointer;
}
.ap-pick[hidden], .ap-thumbs[hidden] { display: none; }
.ap-pick::before { content: "+"; font: 400 24px/1 var(--ui); color: var(--brass); }
.ap-pick:hover, .ap-pick:focus-visible { border-color: var(--brass); background: #f6f0e3; outline: none; }
.ap-photos.is-js .ap-file:focus + .ap-pick { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168, 135, 90, .22); }
.ap-photos.has-err .ap-pick { border-color: #a32020; }
.ap-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.ap-thumb { position: relative; min-width: 0; }
.ap-thumb img, .ap-thumb__wait { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #efe9dd; border: 1px solid var(--line); }
.ap-thumb__wait { background: linear-gradient(90deg, #efe9dd 0, #f8f4ec 50%, #efe9dd 100%); background-size: 200% 100%; animation: ap-wait 1.2s linear infinite; }
@keyframes ap-wait { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ap-thumb__wait { animation: none; } }
.ap-thumb__name { display: block; margin-top: 5px; overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.ap-thumb__small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: #6b4e00; }
.ap-thumb__x {
  position: absolute; top: 6px; inset-inline-end: 6px; width: 32px; height: 32px; padding: 0; font: 400 22px/30px var(--ui);
  color: #fff; background: rgba(20, 23, 28, .62); border: 0; border-radius: 50%; cursor: pointer;
}
.ap-thumb__x:hover, .ap-thumb__x:focus-visible { background: #14171C; outline: 2px solid #fff; outline-offset: -4px; }
.ap-photos-status { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ap-photos-status:empty { display: none; }
.ap-photos-status.is-ok { color: var(--green); font-weight: 600; }
.ap-photos-status.is-ok::before { content: "✓ "; }
.ap-photos-status.is-warn { padding: 8px 11px; color: #6b4e00; background: #fff8e6; border: 1px solid #f3d98a; border-radius: 8px; }
.ap-note { margin: 0 0 10px; padding: 8px 11px; font-size: 13px; line-height: 1.5; color: #6b4e00; background: #fff8e6; border: 1px solid #f3d98a; border-radius: 8px; }
.ap-inapp-box { margin: 10px 0 0; padding: 10px 12px; font-size: 13.5px; line-height: 1.55; color: #24483d; background: #eef5f1; border: 1px solid #cfe2d8; border-radius: 10px; }
.ap-later { margin-top: 10px; padding: 11px 14px; font: 600 14px/1.3 var(--ui); color: var(--navy); background: #fff; border: 1.5px solid var(--navy); border-radius: 10px; cursor: pointer; }
.ap-submit-note { margin: 10px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Ricevuta */
.ap-rcpt__sent { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.ap-rcpt__photos { margin: 16px 0 6px; padding: 14px 16px; background: #fbf8f2; border: 1px solid #e6dac3; border-radius: 12px; }
.ap-rcpt__photos p { margin: 0 0 12px; line-height: 1.55; }
.ap-rcpt__photos p:last-child { margin-bottom: 0; }
.ap-rcpt__btn { display: block; text-align: center; text-decoration: none; }
.ap-rcpt__next { margin: 0; padding-inline-start: 22px; list-style: decimal; line-height: 1.6; color: var(--ink); }
.ap-rcpt__next li { margin: 0 0 8px; }
.ap-rcpt__sign { margin: 22px 0 0; font-family: var(--brand); color: var(--navy); }

/* Barra in alto nei browser delle app (Instagram, Facebook…) */
.ap-inapp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #24483d; background: #eef5f1; border: 1px solid #cfe2d8; border-radius: 12px; }
.ap-inapp p { flex: 1 1 260px; margin: 0; }
.ap-inapp__copy { padding: 9px 14px; font: 600 14px/1.2 var(--ui); color: #fff; background: var(--green); border: 0; border-radius: 8px; cursor: pointer; }
.ap-inapp__fail { flex: 1 1 100%; margin: 0; font-weight: 600; }
.ap-inapp__url { flex: 1 1 100%; width: 100%; padding: 9px 10px; font: 13px/1.4 var(--ui); border: 1px solid #cfe2d8; border-radius: 8px; }

/* Riquadro «mancano le foto» */
.ap-dialog { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 23, 28, .55); }
.ap-dialog[hidden] { display: none; }
.ap-dialog__box { width: 100%; max-width: 440px; padding: 26px 22px 18px; text-align: center; background: #fff; border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(20, 23, 28, .5); }
.ap-dialog__h { margin: 0 0 10px; font: 400 24px/1.25 var(--brand); color: var(--navy); }
.ap-dialog__box p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.ap-dialog__btns { display: grid; gap: 10px; }
.ap-dialog__btns button { min-height: 50px; padding: 12px 16px; font: 600 15px/1.3 var(--ui); border-radius: 10px; cursor: pointer; }
.ap-dialog__pick { color: var(--ivory); background: var(--navy); border: 0; }
.ap-dialog__later { color: var(--navy); background: #fff; border: 1.5px solid var(--navy); }
.ap-dialog__btns.is-inapp .ap-dialog__later { order: -1; color: var(--ivory); background: var(--navy); border: 0; }
.ap-dialog__btns.is-inapp .ap-dialog__pick { color: var(--navy); background: #fff; border: 1.5px solid var(--navy); }
.ap-dialog__back { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* Honeypot: fuori dallo schermo, non display:none (stessa regola di contact.css) */
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Piè di pagina minimo */
.site-footer--bare { padding: 28px 0 36px; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--muted); background: transparent; border-top: 1px solid var(--line); }
.site-footer--bare p { margin: 0; }
.site-footer--bare a { color: var(--muted); }

/* Ricevuta: correzione dell'indirizzo e copia del riepilogo; pagina delle foto dopo l'invio */
.ap-rcpt__fix { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.ap-rcpt__fix summary { cursor: pointer; text-decoration: underline; }
.ap-rcpt__fix form { margin-top: 10px; }
.ap-rcpt__fix label { display: block; margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.ap-rcpt__fix input[type=email] { width: 100%; margin: 0 0 12px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #d8d2c4; border-radius: 10px; }
.ap-rcpt__fix .ap-err { margin: -6px 0 12px; }
.ap-rcpt__resend { margin: 0 0 16px; font-size: 14px; }
.ap-done { margin: 0 0 14px; padding: 10px 13px; font-size: 14px; line-height: 1.5; color: var(--ink); background: #f1f5f1; border: 1px solid #cfdccf; border-radius: 8px; }

.ap-card--msg form { margin: 0 0 18px; }
