/* ============================================================
   TESTOEACCORDI 2026 — PAGINA "SCARICA PDF"
   Foglio di stile dedicato, derivato da canzone2026.css.
   Contiene solo le regole necessarie a questo template
   (nessun menu, nessuna toolbar, nessun blocco testo/accordi).
   Versione: 2.0 - Aggiunto Cookie Consent unificato
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* ============================================================
   HEADER — invariato rispetto a canzone2026.css
   ============================================================ */
header {
  background: #ffffff;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.site-brand { text-align: center; }
.site-logo {
  display: block;
  margin: 0 auto;
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* ============================================================
   CONTENITORE
   ============================================================ */
.page-wrap {
  max-width: 1200px;
  margin: 25px auto;
  padding: 0 15px;
}
.main-content-song { width: 100%; min-width: 0; }

/* ============================================================
   BLOCCO "SCARICA PDF"
   ============================================================ */
.pdf-download-page {
  text-align: center;
  padding: 40px 20px;
}
.pdf-download-page h2 {
  font-size: 32px;
  margin-bottom: 28px;
  color: #222;
}

/* Icona Adobe/PDF — rimpicciolita, link invariato */
.pdf-icon-link {
  display: inline-block;
  margin-bottom: 24px;
  border-radius: 6px;
}
.pdf-icon-link:focus-visible {
  outline: 3px solid #1d4e89;
  outline-offset: 3px;
}
.pdf-icon {
  display: block;
  width: 56px;
  height: auto;
  margin: 0 auto;
}

/* Pulsante di download — chiaro, evidente, solo testo */
.pdf-actions { margin: 8px 0 32px; }
.btn-download-pdf {
  display: inline-block;
  min-width: 220px;
  background: #1d4e89;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 16px 40px;
  border-radius: 8px;
  transition: background .2s, transform .1s;
}
.btn-download-pdf:hover { background: #163b68; }
.btn-download-pdf:focus-visible {
  outline: 3px solid #163b68;
  outline-offset: 3px;
}
.btn-download-pdf:active { transform: translateY(1px); }

/* Pulsante generico (Chiudi Finestra) */
.btn-control {
  background: #333;
  color: #fff;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  transition: background .2s;
}
.btn-control:hover { background: #222; }
.btn-control:focus-visible {
  outline: 3px solid #333;
  outline-offset: 3px;
}
.pdf-close-wrap { margin-top: 24px; }

/* ============================================================
   ADSENSE — stile coerente con le altre pagine
   ============================================================ */
.banner {
  width: 100%;
  max-width: 728px;
  margin: 32px auto;
  padding: 0 16px;
  text-align: center;
  min-height: 100px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
  background: #fdfdfd;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner ins.adsbygoogle {
  display: block;
  width: 100% !important;
  height: auto !important;
}
@media (min-width: 600px) {
  .banner { min-height: 250px; }
}
@media (min-width: 992px) {
  .banner { min-height: 280px; }
}

/* ============================================================
   FOOTER — invariato rispetto a canzone2026.css
   ============================================================ */
.site-footer {
  background: #fff;
  padding: 25px 15px;
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid #ddd;
}
.site-footer p { margin-bottom: 12px; }
.site-footer a {
  color: #1d4e89;
  text-decoration: none;
  font-weight: bold;
}
.site-footer a:hover { text-decoration: underline; }
.legal-note {
  max-width: 900px;
  margin: 15px auto 0 auto;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

/* ============================================================
   COOKIE CONSENT — banner + pannello preferenze (GDPR/ePrivacy)
   Versione unificata da stiletea.css
   ============================================================ */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,26,33,.45);
  z-index: 10000;
}

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: #ffffff;
  border-top: 1px solid #e2e2dc;
  box-shadow: 0 -6px 24px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cc-banner.cc-visible { transform: translateY(0); }

.cc-banner-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 28px;
  align-items: center;
}
.cc-banner .cc-title { grid-column: 1; }
.cc-banner .cc-text { grid-column: 1; }
.cc-banner .cc-actions { grid-column: 2; grid-row: 1 / span 2; }

.cc-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 460px;
  max-height: 86vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 28px 26px;
  z-index: 10002;
}
.cc-panel[hidden], .cc-banner:not(.cc-visible) + .cc-panel[hidden] { display: none; }

.cc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  color: #1a3d5c;
  margin-bottom: 8px;
}
.cc-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 4px;
}
.cc-text a { color: #1a3d5c; text-decoration: underline; }

.cc-option {
  border-top: 1px solid #e2e2dc;
  padding: 14px 0;
}
.cc-option:last-of-type { border-bottom: 1px solid #e2e2dc; margin-bottom: 20px; }
.cc-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc-option-label {
  font-weight: 600;
  font-size: 15px;
  color: #222222;
}
.cc-option-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #4a5568;
  margin-top: 6px;
}
.cc-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #1a3d5c;
  flex-shrink: 0;
  cursor: pointer;
}
.cc-option input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .6; }

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.cc-btn {
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.cc-btn-primary {
  background: #1a3d5c;
  color: #fff;
  border-color: #1a3d5c;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  box-shadow: 0 4px 14px rgba(26,61,92,.28);
}
.cc-btn-primary:hover {
  background: #112d44;
  border-color: #112d44;
  box-shadow: 0 6px 18px rgba(26,61,92,.34);
  transform: translateY(-1px);
}
.cc-btn-primary:active { transform: translateY(0); }

.cc-btn-outline {
  background: #fff;
  color: #1a3d5c;
  border-color: #1a3d5c;
}
.cc-btn-outline:hover { background: #eaf2f8; }

.cc-btn-ghost {
  background: transparent;
  color: #4a5568;
  border-color: #e2e2dc;
}
.cc-btn-ghost:hover { background: #fafaf7; color: #222222; }

.cc-btn:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 2px;
}

.cc-manage-link {
  background: none;
  border: none;
  padding: 0;
  color: #f5a623;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.cc-manage-link:hover { color: #e09310; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 768px) {
  .site-logo { max-width: 240px; }
  .pdf-download-page { padding: 32px 16px; }
  .pdf-download-page h2 { font-size: 24px; }
  .pdf-icon { width: 46px; }
  .btn-download-pdf {
    width: 100%;
    max-width: 320px;
    font-size: 16px;
    padding: 15px 24px;
  }
  .btn-control { font-size: 14px; padding: 10px 14px; }
}

@media screen and (max-width: 480px) {
  .pdf-download-page { padding: 26px 12px; }
}

/* ============================================================
   RESPONSIVE — COOKIE BANNER
   ============================================================ */
@media (max-width: 720px) {
  .cc-banner-inner {
    grid-template-columns: 1fr;
  }
  .cc-banner .cc-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: stretch;
  }
  .cc-banner .cc-btn { flex: 1 1 auto; }
  .cc-panel { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { transition: none; }
}

/* Rispetta la preferenza utente per animazioni ridotte */
@media (prefers-reduced-motion: reduce) {
  .btn-download-pdf, .btn-control { transition: none; }
}