/* ============================================================
   Guitar Academy — Componenti: bottoni, card, pill, segnaposto
   media, form, icone
   ============================================================ */

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: .97rem;
  text-decoration: none; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-med);
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; transition: transform var(--t-fast); }
.btn:hover .ico--fly { transform: translateX(3px); }
.btn--lg { min-height: 58px; padding: 15px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9rem; border-radius: 10px; }

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #33291E; }
.btn--accent { background: var(--amber); color: var(--on-amber); }
.btn--accent:hover { background: var(--amber-hover); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #FFFFFF; }
.btn--outline { border-color: rgba(25, 21, 16, .3); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: rgba(245, 238, 223, .38); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--link {
  min-height: auto; padding: 4px 2px; border-radius: 0; color: var(--ink);
  font-weight: 700; border-bottom: 2px solid var(--amber); justify-content: flex-start;
}
.btn--link:hover { color: var(--amber-deep); border-color: var(--amber-deep); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; }
.on-dark .btn--link { color: var(--cream); }

/* ---------- Pill / tag ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-display); font-size: var(--fs-micro);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.pill--amber { background: var(--amber-tint); color: var(--amber-deep); }
.pill--dark { background: var(--dark); color: var(--cream); }
.pill--outline { border: 1px solid var(--line-2); color: var(--muted); background: transparent; }
.pill--outline-dark { border: 1px solid var(--dark-line); color: var(--cream-2); background: transparent; }
.pill .ico { width: 13px; height: 13px; }

/* ---------- Segnaposto media (foto da sostituire) ---------- */
.ph-media {
  position: relative; overflow: hidden;
  border-radius: var(--r-3);
  background:
    radial-gradient(130% 100% at 88% 0%, rgba(224, 138, 46, .2), transparent 55%),
    linear-gradient(155deg, #2A2219 0%, #19140E 60%, #221709 100%);
}
.ph-media::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 47px, rgba(245, 238, 223, .05) 47px 48px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(245, 238, 223, .035) 47px 48px);
}
.ph-media--plain::after { display: none; }
.ph-monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -.02em;
  color: rgba(245, 238, 223, .14);
}
.ph-media .ph-monogram { font-size: clamp(2.6rem, 7vw, 5.4rem); color: rgba(245, 238, 223, .13); }
.ph-media > .ico { position: absolute; inset: 0; margin: auto; width: clamp(54px, 9vw, 92px); height: auto; color: rgba(245, 238, 223, .22); }
.ph-media--light > .ico, .ph-media--light .ph-monogram { color: rgba(25, 21, 16, .18); }
.ph-note {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(17, 13, 9, .78); border: 1px solid rgba(245, 238, 223, .16);
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream-2); backdrop-filter: blur(4px);
}
.ph-note .ico { width: 12px; height: 12px; color: var(--amber); }
.ph-4x5 { aspect-ratio: 4 / 5; }
.ph-3x4 { aspect-ratio: 3 / 4; }
.ph-1x1 { aspect-ratio: 1 / 1; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-21x9 { aspect-ratio: 21 / 9; }
.ph-rounded-sm { border-radius: var(--r-2); }

/* ---------- Tile icona ---------- */
.tile {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--dark); color: var(--amber);
}
.tile--tint { background: var(--amber-tint); color: var(--amber-deep); }
.tile--line { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); }
.tile--sm { width: 40px; height: 40px; border-radius: 11px; }
.tile .ico { width: 24px; height: 24px; }
.tile--sm .ico { width: 19px; height: 19px; }

/* ---------- Card corso ---------- */
.course-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: clamp(24px, 3vw, 30px);
  text-decoration: none; color: inherit;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-fast);
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.course-card:focus-visible { box-shadow: var(--ring); }
.course-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px var(--s-4); flex-wrap: wrap; }
.course-card__title { font-size: 1.45rem; font-weight: 800; margin: 0; }
.course-card__who { display: grid; gap: 2px; }
.course-card__who .who-label { font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.course-card__who p { font-size: .98rem; color: var(--ink-2); }
.course-card__desc { font-size: .94rem; color: var(--ink-2); }
.course-card__ticks { margin-top: 4px; display: grid; gap: 9px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: var(--ink-2); }
.checklist .chk {
  width: 19px; height: 19px; margin-top: 2px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--amber-tint); color: var(--amber-deep);
}
.checklist .chk .ico { width: 11px; height: 11px; stroke-width: 2.6; }
.cc-cta { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: .97rem; }
.cc-cta .ico { width: 17px; height: 17px; color: var(--amber-deep); transition: transform var(--t-fast); }
.course-card:hover .cc-cta .ico { transform: translateX(4px); }

/* ---------- Schede editoriali (docenti, news, risorse) ---------- */
.editorial-card { transition: transform var(--t-med), box-shadow var(--t-med); }
.editorial-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.editorial-card .ph-media { border-radius: var(--r-2); }

/* ---------- Liste di check / icone ---------- */
.checklist--inline { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.icon-list { display: grid; gap: 22px; }
.icon-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.icon-list h3 { font-size: 1.12rem; margin-bottom: 4px; }
.icon-list p { font-size: .95rem; color: var(--ink-2); max-width: 46ch; }

/* ---------- Form ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .93rem; }
.field .req { color: var(--amber-deep); }
.field .hint { font-size: var(--fs-small); color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 12px 15px;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-2);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(178, 106, 29, .16); }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2345403A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field--error .input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(166, 43, 31, .12); }
.field-error { display: none; align-items: center; gap: 7px; font-size: var(--fs-small); font-weight: 600; color: var(--danger); }
.field--error .field-error { display: flex; }
.field-error .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amber-deep); flex-shrink: 0; cursor: pointer; }
.check a { color: var(--amber-deep); }
.form-note { font-size: var(--fs-small); color: var(--muted); }
.form-success {
  display: none; gap: 12px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--r-2);
  background: var(--success-tint); border: 1px solid rgba(35, 122, 70, .35); color: #14532D;
}
.form-success.is-visible { display: flex; }
.form-success h3 { font-size: 1.05rem; color: #14532D; }
.form-success p { font-size: .94rem; }
.form-success .ico { color: var(--success); width: 22px; height: 22px; }
.form-error-box {
  display: none; padding: 14px 18px; border-radius: var(--r-2);
  background: var(--danger-tint); border: 1px solid rgba(166, 43, 31, .35);
  font-size: var(--fs-small); font-weight: 600; color: var(--danger);
}
.form-error-box.is-visible { display: block; }

/* ---------- Callout ---------- */
.callout {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-2);
  background: var(--amber-tint); border: 1px solid rgba(156, 87, 19, .25);
  font-size: .95rem; color: var(--ink-2);
}
.callout .ico { color: var(--amber-deep); margin-top: 2px; }
.callout--dark { background: var(--dark-2); border-color: var(--dark-line); color: var(--cream-2); }
.callout--dark .ico { color: var(--amber); }
.callout strong { color: var(--ink); }
.callout--dark strong { color: var(--cream); }

/* ---------- Badge numero / dati ---------- */
.data-point { display: grid; gap: 2px; }
.data-point strong { font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.data-point span { font-size: var(--fs-small); color: var(--muted); }
.on-dark .data-point strong { color: var(--cream); }
.on-dark .data-point span { color: var(--cream-2); }

/* ---------- Empty state ---------- */
.empty-state {
  max-width: 640px; margin-inline: auto; text-align: center;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-3);
  background: var(--surface); padding: clamp(32px, 6vw, 60px) clamp(24px, 5vw, 56px);
}
.empty-state .empty-ico {
  width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 18px;
  display: grid; place-items: center; background: var(--amber-tint); color: var(--amber-deep);
}
.empty-state .empty-ico .ico { width: 28px; height: 28px; }
.empty-state h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.empty-state p { margin-inline: auto; color: var(--ink-2); }
.empty-state .mt-2 { justify-content: center; display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- Band CTA ---------- */
.band {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--cream-2);
  border-radius: var(--r-3); padding: clamp(32px, 5.5vw, 64px);
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 130% at 100% 0%, rgba(224, 138, 46, .2), transparent 60%);
}
.band > * { position: relative; }
.band h2 { color: var(--cream); max-width: 24ch; }
.band p { max-width: 58ch; margin-top: var(--s-3); }
.band .btn-row { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }

/* ---------- Dettaglio corso: box specifiche ---------- */
.spec-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: clamp(22px, 3vw, 28px); display: grid; gap: 0;
}
.spec-box dl { display: grid; }
.spec-box .spec-row { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-box .spec-row:last-child { border-bottom: 0; }
.spec-box dt { font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.spec-box dt .ico { width: 14px; height: 14px; color: var(--amber-deep); }
.spec-box dd { font-weight: 600; font-size: .97rem; margin: 0; }
.spec-box .spec-note { font-size: .85rem; color: var(--muted); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
  transition: border-color var(--t-fast), box-shadow var(--t-med);
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--amber-deep); transition: transform var(--t-fast); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; font-size: .96rem; color: var(--ink-2); }
.faq details a { color: var(--amber-deep); }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 30px; max-width: 720px; border-left: 1px solid var(--line-2); margin-left: 5px; padding-left: clamp(24px, 4vw, 40px); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * (clamp(24px, 4vw, 40px) + 5px) - 4px); top: 7px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline .tl-year { font-family: var(--font-display); font-weight: 800; color: var(--amber-deep); font-size: .92rem; letter-spacing: .02em; }
.timeline h3 { font-size: 1.12rem; margin: 3px 0 6px; }
.timeline p { font-size: .95rem; color: var(--ink-2); }
