/*
 * Moduli dei regali dello Studio Legale BCS (12/10/2026): le regole del modulo e del pannello della pagina della
 * checklist (risorse/esdebitazione/index.html), condivise da test, Osservatorio e pagine dei regali generate.
 */
[hidden] { display: none !important; }

.pd-hero .hero-grid { align-items: start; }
.pd-crumbs {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
}
.pd-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.pd-crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pd-crumbs a:hover { color: var(--accent); }
.pd-intro .display-title { font-size: clamp(2.8rem, 5.4vw, 5.2rem); }
.pd-after { display: grid; gap: 22px; }

.pd-panel { padding: 30px; }
.pd-panel__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}
.pd-panel__copy { color: rgba(243, 236, 216, 0.72); line-height: 1.6; margin: 0 0 22px; }

.pd-form { display: grid; gap: 18px; }
.pd-field { display: grid; gap: 8px; }
.pd-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
}
.pd-opt { color: var(--mid); letter-spacing: 0.12em; }
.pd-check .pd-opt { letter-spacing: 0; }
.pd-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(243, 236, 216, 0.14);
    background: rgba(243, 236, 216, 0.04);
    color: var(--paper);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.pd-input::placeholder { color: rgba(243, 236, 216, 0.36); }
.pd-input:hover, .pd-input:focus { border-color: rgba(212, 135, 54, 0.6); }
select.pd-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23d48736' d='M12 15.4 6.6 10l1.4-1.4 4 4 4-4 1.4 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.pd-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(243, 236, 216, 0.78);
    cursor: pointer;
}
.pd-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.pd-check a, .pd-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pd-form .cta-primary { width: 100%; justify-content: center; cursor: pointer; margin-top: 4px; }
.pd-form .cta-primary[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.pd-msg { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: #f0a48f; }
.pd-fine { margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--mid); }

.pd-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pd-files a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(243, 236, 216, 0.12);
    background: rgba(243, 236, 216, 0.04);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.pd-files a:hover { border-color: rgba(212, 135, 54, 0.5); transform: translateY(-1px); }
.pd-files .card-meta { margin-bottom: 4px; }
.pd-files__name { font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; line-height: 1.15; }
.pd-files .material-symbols-outlined { color: var(--accent); flex: none; }

.pd-ep { display: flex; flex-direction: column; }
.pd-ep__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 22px;
}
.pd-ep .bullet-list { margin-bottom: 18px; }
.pd-ep .card-copy { font-size: 0.92rem; }
.pd-ep .cta-inline { margin-top: auto; align-self: flex-start; }
.pd-note { font-size: 0.9rem; }

body.light-mode .pd-crumbs { color: rgba(27, 23, 18, 0.66); }
body.light-mode .pd-panel__copy,
body.light-mode .pd-check { color: rgba(27, 23, 18, 0.72); }
body.light-mode .pd-label,
body.light-mode .pd-check a,
body.light-mode .pd-note a { color: var(--accent-readable); }
body.light-mode .pd-input { background: #fff; border-color: rgba(27, 23, 18, 0.16); color: #1b1712; }
body.light-mode .pd-input::placeholder { color: rgba(27, 23, 18, 0.4); }
body.light-mode .pd-msg { color: #9a3a22; }
body.light-mode .pd-files a { border-color: rgba(27, 23, 18, 0.1); background: #fff; }

@media (max-width: 1080px) {
    /* da telefono (chi arriva dalla bio) il modulo sale subito sotto il titolo */
    .pd-hero .hero-copy { display: contents; }
    .pd-hero .hero-grid { gap: 26px; }
    .pd-intro { order: 1; padding-top: 24px; }
    .pd-hero .hero-panel { order: 2; }
    .pd-after { order: 3; }
    .pd-intro .lead { margin-bottom: 0; }
}

@media (max-width: 760px) {
    .pd-panel { padding: 22px; }
    /* le schede (episodi e regole) hanno span 6 in linea su 12 colonne: da telefono vanno una per riga */
    .pd-ep, .signal-card { grid-column: 1 / -1 !important; }
}
