/* =========================================================================
   banda.css — la «banda finale» (Hai una domanda? + piè di pagina su un'unica
   foto) per le pagine statiche dei libri. Tutto è circoscritto a .banda-finale:
   non tocca il contenuto del libro. Carica dopo libro.css.
   ========================================================================= */
.banda-finale {
  --bordeaux: #4A1824; --bordeaux-2: #5C2230; --bordeaux-3: #3A121C;
  --notte: #2B0D15; --oro: #C0954F; --oro-chiaro: #E6CC9C; --crema: #F2E6DC;
  --carta: #FAF4EA; --nebbia: #F4EADD; --inchiostro: #2C1F1B; --grigio: #6E5D54; --linea: #E8DCCD;
  --serif: "Libre Caslon Text", Georgia, serif; --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif; --r: 18px; --larghezza: 1280px; --gut: clamp(1.1rem, 4vw, 2.75rem);
  --spazio-finale: clamp(2.75rem, 5.5vw, 4rem);
  position: relative; isolation: isolate; overflow: hidden; background: var(--notte);
  font-family: var(--sans); text-align: left;
}
.banda-finale *, .banda-finale *::before, .banda-finale *::after { box-sizing: border-box; }

/* lo sfondo condiviso: una sola foto + un solo velo */
.banda-finale-sfondo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.banda-finale-sfondo picture { display: block; width: 100%; height: 100%; }
.banda-finale-sfondo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.banda-finale-sfondo::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 58% 44% at 80% 7%, rgba(240, 190, 160, .16), rgba(240, 190, 160, 0) 70%),
  linear-gradient(90deg, rgba(43, 13, 21, .92) 0%, rgba(62, 20, 31, .8) 46%, rgba(74, 24, 36, .58) 100%),
  linear-gradient(180deg, rgba(43, 13, 21, .55) 0%, rgba(43, 13, 21, .3) 20%, rgba(43, 13, 21, .44) 48%, rgba(43, 13, 21, .72) 72%, rgba(29, 8, 14, .9) 100%); }

/* la sezione «Hai una domanda?» */
.banda-finale .contatti { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0 0; color: #EADBD0; }
.banda-finale .contatti-testa { position: relative; z-index: 1; }
.banda-finale .contatti-in { position: relative; max-width: var(--larghezza); margin: 0 auto; padding-inline: var(--gut); }
.banda-finale .contatti h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.012em; color: #fff; text-wrap: balance; }
.banda-finale .contatti h2::after { content: ""; display: block; width: 60px; height: 10px; margin-top: 1rem; border-bottom: 2px solid var(--oro-chiaro); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.banda-finale .contatti-intro { margin: 1.1rem 0 0; color: #EADBD0; line-height: 1.7; text-wrap: balance; }
.banda-finale .contatti-intro strong { color: #fff; }
.banda-finale .unito { white-space: nowrap; }

/* il marchio in filigrana */
.banda-finale .filigrana { position: absolute; z-index: 0; right: clamp(-6rem, -6vw, -1rem); top: clamp(-13rem, -13vw, -5rem); width: clamp(220px, 34vw, 500px); height: auto; aspect-ratio: 50.5 / 50.3; color: #D9B77C; opacity: .36; pointer-events: none; --lg-v: 0; --lg-o: 0; --lg-p: 1; }
.banda-finale .filigrana-testa { display: none; }

/* la scheda del modulo (foto di Debora + campi) */
.banda-finale .contatti-scheda { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(2rem, 4vw, 2.6rem); color: #F4E9DF; background: linear-gradient(150deg, rgb(26 9 14 / .62) 0%, rgb(14 5 8 / .74) 100%); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--r); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 40px 80px -40px rgba(0, 0, 0, .85); }
.banda-finale .contatti-volto { display: block; position: relative; overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.banda-finale .contatti-volto img { display: block; width: 100%; height: clamp(220px, 56vw, 280px); object-fit: cover; object-position: 50% 6%; }
.banda-finale .contatti-modulo { position: relative; z-index: 1; padding: clamp(1.3rem, 3vw, 2.4rem); }

/* il modulo */
.banda-finale .modulo-email { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; margin: 0; max-width: none; }
.banda-finale .campo { display: grid; gap: .4rem; }
.banda-finale .campo-largo, .banda-finale .modulo-piede { grid-column: 1 / -1; }
.banda-finale .campo label { font-size: .86rem; font-weight: 650; color: #F1DFC4; }
.banda-finale .campo label span { font-weight: 400; color: rgb(234 219 208 / .78); }
.banda-finale .campo-trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.banda-finale .campo input, .banda-finale .campo select, .banda-finale .campo textarea { -webkit-appearance: none; appearance: none; width: 100%; min-height: 50px; padding: .75rem 1rem; font: 400 1rem/1.5 var(--sans); color: #fff; background-color: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; transition: background-color .2s, border-color .2s; }
.banda-finale .campo input:hover, .banda-finale .campo select:hover, .banda-finale .campo textarea:hover { border-color: rgb(255 255 255 / .28); }
.banda-finale .campo input:focus, .banda-finale .campo select:focus, .banda-finale .campo textarea:focus { background-color: rgb(255 255 255 / .1); border-color: var(--oro-chiaro); outline: 2px solid rgba(192, 149, 79, .35); outline-offset: 1px; }
.banda-finale .campo textarea { resize: vertical; min-height: 7.5rem; }
.banda-finale .campo select { padding-right: 2.8rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%23F1DFC4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 12px 8px; }
.banda-finale .campo select option { color: var(--inchiostro); background: #fff; }
.banda-finale .campo ::placeholder { color: rgb(234 219 208 / .5); }
.banda-finale .campo input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #2A1218 inset; caret-color: #fff; }
.banda-finale .modulo-piede { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: .3rem; }
.banda-finale .modulo-piede p { flex: 1 1 18rem; font-size: .85rem; color: rgb(234 219 208 / .78); line-height: 1.5; }
.banda-finale .modulo-piede a { color: var(--oro-chiaro); }
.banda-finale .modulo-piede button[disabled] { opacity: .65; cursor: progress; }
.banda-finale .modulo-esito { grid-column: 1 / -1; font-size: .95rem; line-height: 1.5; }
.banda-finale .modulo-esito:empty { display: none; }

/* il pulsante */
.banda-finale .btn { display: inline-flex; align-items: center; gap: .65rem; min-height: 50px; padding: .8rem 1.5rem; border: 1px solid var(--oro); color: var(--bordeaux-3); background: var(--oro); text-decoration: none; font: 600 .95rem/1.2 var(--sans); letter-spacing: .005em; border-radius: 999px; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.banda-finale .btn:hover { background: var(--oro-chiaro); border-color: var(--oro-chiaro); color: var(--bordeaux-3); }
.banda-finale .btn .ic { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* il piè di pagina: trasparente, la foto condivisa passa sotto */
.banda-finale .piede { background: transparent; }
.banda-finale .piede-in { padding-top: var(--spazio-finale) !important; }

@media (min-width: 640px) {
  .banda-finale .contatti-scheda { grid-template-columns: minmax(0, 5fr) minmax(0, 12fr); }
  .banda-finale .contatti-volto { border-radius: var(--r) 0 0 var(--r); }
  .banda-finale .contatti-volto img { position: absolute; inset: 0; height: 100%; object-position: 34% 30%; }
}
@media (min-width: 640px) and (max-width: 859px) { .banda-finale .contatti-scheda .modulo-email { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .banda-finale .contatti-scheda > .filigrana { display: none; }
  .banda-finale .contatti-testa .filigrana-testa { display: block; z-index: -1; right: 0; top: 50%; transform: translateY(-50%); width: 150px; }
}
