/* ═══════════════════════════════════════
   css/components.css
   Museo Nola - Componenti riutilizzabili
   ═══════════════════════════════════════ */

/* Section Card */
.section-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.section-card:active {
  transform: scale(0.98);
}

.section-card__image {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.section-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.section-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-card__text {
  position: absolute;
  bottom: 12px;
  left: 16px;
  color: white;
}

.section-card__text h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
}

.section-card__text p {
  font-style: italic;
  font-size: 13px;
  opacity: 0.9;
}

.section-card__chevron {
  position: absolute;
  top: 12px;
  right: 12px;
  color: white;
  opacity: 0.8;
  width: 20px;
  height: 20px;
}

/* List Item con icona circolare */
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-footer-border);
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.list-item:active {
  background: rgba(0,0,0,0.02);
}

.list-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-item__icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.list-item__body {
  flex: 1;
  min-width: 0;
}

.list-item__body strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  display: block;
}

.list-item__body p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item__chevron {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* CTA Ticket */
.cta-ticket {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 16px 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-ticket:active {
  opacity: 0.9;
}

.cta-ticket__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-ticket__icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.cta-ticket__body {
  flex: 1;
}

.cta-ticket__body strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
}

.cta-ticket__body p {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

/* Section Hero */
.section-hero {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.section-hero img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.section-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.section-hero__overlay h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.section-hero__overlay p {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

.btn-audio-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Podcast Card */
.podcast-card {
  display: flex;
  gap: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.podcast-card__artwork {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.podcast-card__artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-accent);
  color: white;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1.1;
}

.podcast-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.podcast-card__body strong {
  font-size: 12px;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.podcast-card__body p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.podcast-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.btn-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.waveform {
  flex: 1;
  height: 24px;
  background: repeating-linear-gradient(
    to right,
    var(--color-text-muted) 0 2px,
    transparent 2px 6px
  );
  opacity: 0.3;
  border-radius: 4px;
}

.duration {
  font-size: 11px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Card List */
.card-list {
  margin: 16px 0;
}

/* QR Section */
.qr-section {
  text-align: center;
  padding: 24px 0;
}

.qr-section p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.qr-section canvas {
  display: inline-block;
}

/* Experience Card */
.experience-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.experience-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.experience-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.experience-card__icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.experience-card__icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.experience-card__image h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: 20px;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
}

.experience-card__image p {
  position: relative;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  margin-top: 4px;
}

.btn-cta {
  position: relative;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

/* Event Featured */
.event-featured {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.event-featured__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-featured__body {
  padding: 16px;
}

.badge-evidenza {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.event-featured__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.event-featured__subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.event-featured__date {
  font-size: 12px;
  color: var(--color-accent);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Event Item */
.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-footer-border);
  background: none;
  width: 100%;
  text-align: left;
}

.event-item__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.event-item__body {
  flex: 1;
  min-width: 0;
}

.event-item__body strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.event-item__body p {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Account */
.account-header {
  text-align: center;
  padding: 24px 0;
}

.badge-section {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-header-bg);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar svg {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
}

.account-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.account-email {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-footer-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Orari */
.orari-table {
  margin: 16px 0;
}

.orari-table tr {
  border-bottom: 1px solid var(--color-footer-border);
}

.orari-table td {
  padding: 12px 8px;
  font-size: 14px;
}

.orari-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

.orari-table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}

.orari-today {
  background: rgba(232,115,74,0.08);
}

.orari-today td:last-child {
  color: var(--color-accent);
  font-weight: 700;
}

.orari-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-footer-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  transition: opacity 0.2s;
}

.btn-primary:active {
  opacity: 0.9;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 8px;
}

/* Section body */
.section-body {
  padding: 8px 0;
}

.section-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* ═══════════════════════════════════════
   css/components.css - Museo Nola
   Componenti card sezioni, eventi, ecc.
   ═══════════════════════════════════════ */

/* Card sezione orizzontale (mobile) */
.section-card-row {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 14px;
}

.section-card-row:active {
  transform: scale(0.98);
}

.section-card-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.section-card-row__image {
  width: 120px;
  min-height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 40px;
}

.section-card-row__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e8734a;
  color: white;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.section-card-row__body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-card-row__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.section-card-row__body p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  font-style: italic;
}

.section-card-row__arrow {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #d1d5db;
  font-size: 24px;
  flex-shrink: 0;
}

/* Griglia card sezioni (desktop) */
.section-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .section-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .section-card-row {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .section-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .section-card-row {
    flex-direction: column;
  }
  
  .section-card-row__image {
    width: 100%;
    min-height: 160px;
    font-size: 56px;
  }
  
  .section-card-row__arrow {
    display: none;
  }
}