/* ═══════════════════════════════════════════════════════════
   FILE: css/academy.css — pagina "Academy" del gestionale (prefisso ac-)
   ═══════════════════════════════════════════════════════════ */
.ac-pagina { --ac-oro: #b8965a; --ac-oro-scuro: #8a6a2b; --ac-ink: #2e261d; --ac-ink2: #6b5a3a; --ac-linea: #ecdfca; }
.ac-testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.ac-testa h4 { font-weight: 800; margin: 0 0 4px; color: var(--ac-ink); }
.ac-testa h4 i { color: var(--ac-oro); margin-right: 6px; }
.ac-testa p { margin: 0; color: var(--ac-ink2); font-size: 14px; }
.ac-indietro { display: inline-block; font-size: 13px; color: var(--ac-ink2); text-decoration: none; margin-bottom: 6px; }
.ac-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; border: 1px solid var(--ac-linea); background: #fff; color: var(--ac-ink); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 1px 0 #fff inset, 0 8px 16px -12px rgba(60,40,10,.5); }
.ac-btn:hover { transform: translateY(-1px); color: var(--ac-ink); }
.ac-btn:disabled { opacity: .6; cursor: wait; }
.ac-btn-oro { background: linear-gradient(180deg, #d9bd7c, #a8843f); color: #fff; border-color: #a8843f; }
.ac-btn-oro:hover { color: #fff; }
.ac-btn-chiaro { background: linear-gradient(180deg, #fff, #f6f0e4); }
.ac-btn-rosso { color: #b42318; border-color: #f3c9c4; }
.ac-vuoto { text-align: center; background: #fff; border: 1px dashed #e3d2ad; border-radius: 20px; padding: 44px 20px; }
.ac-vuoto-icona { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(180deg, #d9bd7c, #a8843f); }
.ac-vuoto h5 { font-weight: 800; }
.ac-vuoto p { color: var(--ac-ink2); max-width: 560px; margin: 0 auto 16px; }
.ac-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ac-card { background: #fff; border: 1px solid var(--ac-linea); border-radius: 20px; overflow: hidden; box-shadow: 0 16px 30px -26px rgba(60,40,10,.6); }
.ac-card.ac-finito { opacity: .7; }
.ac-card-foto { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f7ecd4, #ead7b0) center top / cover no-repeat; }   /* ★ più alta e allineata in alto: la foto del corso si vede quasi intera */
.ac-stato { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; }
.ac-card-foto .ac-stato { position: absolute; top: 10px; left: 10px; }
.ac-modalita { position: absolute; bottom: 10px; left: 10px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; color: var(--ac-ink); }
.ac-st-bozza { background: #f1ede6; color: #6b5a3a; } .ac-st-pub { background: #e6f5ec; color: #14795a; } .ac-st-chiuso { background: #fff4e0; color: #9a5b00; } .ac-st-ann { background: #fdecea; color: #b42318; }
.ac-card-corpo { padding: 14px 16px 16px; }
.ac-card-corpo h5 { font-weight: 800; font-size: 16.5px; margin: 0 0 8px; color: var(--ac-ink); }
.ac-riga { font-size: 13px; color: var(--ac-ink2); margin-bottom: 4px; }
.ac-riga i { width: 16px; color: var(--ac-oro); }
.ac-azioni { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.ac-azioni .ac-btn { padding: 6px 12px; font-size: 12.5px; }
.ac-form label { font-size: 12.5px; font-weight: 700; color: var(--ac-ink2); margin-bottom: 3px; }
.ac-box { background: #fff; border: 1px solid var(--ac-linea); border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; }
.ac-box h6 { font-weight: 800; color: var(--ac-ink); margin-bottom: 10px; }
.ac-aiuto { font-size: 12px; color: var(--ac-ink2); margin: 4px 0 0; }
.ac-lezione { display: grid; grid-template-columns: 160px 110px 110px 1fr 40px; gap: 8px; margin-bottom: 8px; }
.ac-x { padding: 6px 0; justify-content: center; }
.ac-scelte { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-scelte input { position: absolute; opacity: 0; }
.ac-scelte span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ac-linea); font-weight: 700; font-size: 13.5px; cursor: pointer; background: #fff; }
.ac-scelte input:checked + span { background: linear-gradient(180deg, #d9bd7c, #a8843f); color: #fff; border-color: #a8843f; }
.ac-check { display: flex; gap: 7px; align-items: flex-start; font-weight: 600 !important; cursor: pointer; }
.ac-anteprima { display: block; margin-top: 8px; max-width: 220px; border-radius: 12px; }
.ac-barra { position: sticky; bottom: 0; display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; background: linear-gradient(180deg, rgba(246,243,238,0), #f6f3ee 35%); }
.ac-spazio { flex: 1; }
.ac-tabella-box { background: #fff; border: 1px solid var(--ac-linea); border-radius: 18px; overflow-x: auto; }
.ac-tabella { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ac-tabella th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--ac-ink2); padding: 12px 14px; border-bottom: 1px solid var(--ac-linea); background: #fbf8f2; }
.ac-tabella td { padding: 10px 14px; border-bottom: 1px solid #f3ece0; vertical-align: top; }
.ac-tabella a { color: var(--ac-oro-scuro); text-decoration: none; }
.ac-note { max-width: 240px; color: var(--ac-ink2); }
.ac-data { white-space: nowrap; color: var(--ac-ink2); font-size: 12.5px; }
.ac-r-attesa td { background: #fffaf0; } .ac-r-annullato td { opacity: .55; }
.ac-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #1f1a14; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; z-index: 2000; transition: all .25s; pointer-events: none; }
.ac-toast.on { opacity: 1; transform: translate(-50%, 0); } .ac-toast.errore { background: #b42318; }
@media (max-width: 768px) { .ac-lezione { grid-template-columns: 1fr 1fr; } .ac-lezione [name="lez_titolo[]"] { grid-column: 1 / -1; } }

/* ═══ Pagina pubblica del corso (academy/corso.php) — prefisso acp-, colore del centro in --acp-col ═══ */
.acp { margin: 0; background: #f7f3ec; color: #2e261d; font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.acp-hero { min-height: 320px; background: linear-gradient(135deg, #3b2c14, #1f1710) center/cover no-repeat; position: relative; display: flex; align-items: flex-end; }
.acp-hero-velo { width: 100%; padding: 70px 20px 34px; background: linear-gradient(180deg, rgba(20,14,8,0) 0%, rgba(20,14,8,.78) 75%); color: #fff; }
.acp-hero-velo > * { max-width: 860px; margin-left: auto; margin-right: auto; }
/* ★ Parte alta CON la foto del corso: foto intera (senza tagli), sfondo con la stessa foto sfocata, titolo sotto la foto */
.acp-hero.acp-hero-foto { flex-direction: column; align-items: stretch; min-height: 0; background: #1f1710; overflow: hidden; }
.acp-hero.acp-hero-foto::before { content: ""; position: absolute; inset: -40px; background: var(--acp-foto) center / cover no-repeat; filter: blur(28px) brightness(.5); }
.acp-hero-img { position: relative; display: block; width: 100%; max-width: 860px; max-height: 520px; object-fit: contain; margin: 0 auto; padding-top: 18px; }
.acp-hero.acp-hero-foto .acp-hero-velo { position: relative; padding: 18px 20px 52px; background: none; }
.acp-centro { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; opacity: .95; }
.acp-centro img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.7); }
.acp h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; margin: 10px auto 6px; }
.acp-rivolto { font-size: 17px; opacity: .9; margin: 0 auto; }
.acp-corpo { max-width: 860px; margin: -26px auto 40px; padding: 0 16px; position: relative; }
.acp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; background: #fff; border: 1px solid #ecdfca; border-radius: 20px; padding: 18px; box-shadow: 0 22px 40px -30px rgba(60,40,10,.7); }
.acp-dato { display: flex; gap: 12px; align-items: flex-start; }
.acp-dato > i { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--acp-col, #b8965a); }
.acp-dato b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #8a7a5a; margin-bottom: 2px; }
.acp-dato span { display: block; font-size: 14.5px; font-weight: 600; }
.acp-descr { background: #fff; border: 1px solid #ecdfca; border-radius: 20px; padding: 20px 22px; margin-top: 16px; font-size: 15.5px; line-height: 1.7; }
.acp-iscrizione { background: #fff; border: 1px solid #ecdfca; border-radius: 20px; padding: 22px; margin-top: 16px; }
.acp-iscrizione h2 { font-size: 21px; font-weight: 800; margin: 0 0 12px; }
.acp-form label { display: block; font-size: 13px; font-weight: 700; color: #6b5a3a; margin-bottom: 12px; }
.acp-form input:not([type=checkbox]), .acp-form textarea { display: block; width: 100%; margin-top: 5px; padding: 12px 14px; border: 1.5px solid #e3d6bf; border-radius: 12px; font: inherit; font-size: 15px; color: #2e261d; background: #fffdf9; box-sizing: border-box; }
.acp-form input:focus, .acp-form textarea:focus { outline: 0; border-color: var(--acp-col, #b8965a); box-shadow: 0 0 0 3px rgba(184,150,90,.18); }
.acp-riga { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acp-check { display: flex !important; gap: 9px; align-items: flex-start; font-weight: 600 !important; line-height: 1.45; }
.acp-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--acp-col, #b8965a); }
.acp-btn { display: inline-block; width: 100%; text-align: center; padding: 15px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 800; color: #fff; background: var(--acp-col, #b8965a); cursor: pointer; text-decoration: none; box-shadow: 0 14px 24px -16px rgba(0,0,0,.6); }
.acp-btn:hover { filter: brightness(1.06); color: #fff; }
.acp-nota { font-size: 13px; color: #6b5a3a; margin: 10px 0 0; }
.acp-errore { background: #fff4ef; border: 1px solid #f3c9b8; color: #8a3a1e; border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.acp-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acp-ok, .acp-chiuso { text-align: center; padding: 10px 6px; }
.acp-ok-icona { font-size: 42px; }
.acp-chiuso .acp-btn { width: auto; padding: 12px 26px; margin-top: 6px; }
.acp-piede { text-align: center; font-size: 12px; color: #9a8a70; margin-top: 22px; line-height: 1.6; }
.acp-piede a { color: inherit; }
.acp-scheda.acp-centrato { max-width: 520px; margin: 80px auto; background: #fff; border-radius: 20px; padding: 30px; text-align: center; }
@media (max-width: 600px) { .acp-riga { grid-template-columns: 1fr; gap: 0; } .acp-hero { min-height: 260px; } .acp-hero.acp-hero-foto { min-height: 0; } .acp-hero-img { max-height: 380px; padding-top: 0; } .acp-hero.acp-hero-foto .acp-hero-velo { padding-top: 14px; } }

/* ═══ Sezione "Academy" nei siti dei centri (templates_sito/academy_sito.php) — prefisso tpa-, colore del sito in --tpa-col ═══ */
.tpa-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-top: 28px; text-align: left; }
.tpa-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.tpa-card:hover { transform: translateY(-4px); }
.tpa-foto { position: relative; height: 170px; background: linear-gradient(135deg, #f3e6cc, #dcc391) center/cover no-repeat; }
.tpa-mod { position: absolute; left: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.93); color: #2e261d; }
.tpa-corpo { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.tpa-data { font-size: 13px; font-weight: 700; color: var(--tpa-col); }
.tpa-corpo h3 { font-size: 19px; line-height: 1.25; margin: 8px 0 4px; font-weight: 700; }
.tpa-rivolto { font-size: 14px; margin: 0 0 10px; opacity: .8; }
.tpa-piede { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; font-size: 15px; }
.tpa-posti { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(20,121,90,.1); color: #14795a; }
.tpa-posti.tpa-ultimi { background: rgba(214,120,0,.12); color: #b45f00; }
.tpa-posti.tpa-chiuso { background: rgba(120,110,90,.14); color: #6b5a3a; }
.tpa-btn { display: block; margin-top: 14px; text-align: center; padding: 11px; border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--tpa-col); color: #fff; }
/* stile chiaro (Lumen, Lumière, Vitality, Beauty) */
.tpa-chiaro .tpa-card { background: #fff; border: 1px solid rgba(0,0,0,.07); box-shadow: 0 20px 40px -28px rgba(30,20,10,.55); color: #2e261d; }
.tpa-chiaro .tpa-card:hover { box-shadow: 0 26px 46px -24px rgba(30,20,10,.6); }
/* stile scuro (Hair) */
.tpa-scuro .tpa-card { background: #161616; border: 1px solid rgba(255,255,255,.08); color: #f3efe8; }
.tpa-scuro .tpa-corpo h3 { font-weight: 400; }
.tpa-scuro .tpa-posti { background: rgba(255,255,255,.08); color: #d9c39a; }