/*
 * =====================================================
 * DUOMO DI MILANO - Official Ticket Website
 * Clean, Professional CSS v2.0
 * =====================================================
 */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Brand Colors */
  --dm-gold: #C4A265;
  --dm-gold-light: #D4B275;
  --dm-gold-dark: #A88A4E;
  
  /* Navy Theme */
  --dm-navy: #1A2744;
  --dm-navy-dark: #0F1829;
  --dm-navy-light: #2A3A5A;
  
  /* Accent */
  --dm-crimson: #8B1538;
  
  /* Neutrals */
  --dm-white: #FFFFFF;
  --dm-black: #000000;
  --dm-gray-100: #F8F9FA;
  --dm-gray-200: #E9ECEF;
  --dm-gray-300: #DEE2E6;
  --dm-gray-500: #6C757D;
  --dm-gray-700: #495057;
  --dm-gray-900: #212529;
  
  /* Typography */
  --dm-font-display: 'Cormorant Garamond', Georgia, serif;
  --dm-font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --dm-space-xs: 0.25rem;
  --dm-space-sm: 0.5rem;
  --dm-space-md: 1rem;
  --dm-space-lg: 1.5rem;
  --dm-space-xl: 2rem;
  --dm-space-2xl: 3rem;
  --dm-space-3xl: 4rem;
  
  /* Border Radius */
  --dm-radius-sm: 4px;
  --dm-radius-md: 8px;
  --dm-radius-lg: 12px;
  --dm-radius-xl: 20px;
  --dm-radius-full: 50px;
  
  /* Shadows */
  --dm-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --dm-shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --dm-shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  
  /* Transitions */
  --dm-transition: all 0.3s ease;
  
  /* Header height */
  --dm-promo-height: 44px;
  --dm-header-height: 72px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--dm-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dm-gray-900);
  background: var(--dm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--dm-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==================== CONTAINER ==================== */
.dm-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--dm-space-lg);
}

/* ==================== PROMO BANNER ==================== */
.dm-promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--dm-promo-height);
  background: linear-gradient(135deg, var(--dm-gold) 0%, var(--dm-gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--dm-space-sm);
  padding: 0 var(--dm-space-md);
  color: var(--dm-navy-dark);
  font-weight: 600;
  font-size: 0.875rem;
  overflow: hidden;
}

.dm-promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: promo-shine 3s infinite;
}

@keyframes promo-shine {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.dm-promo-banner__icon {
  font-size: 1.1rem;
}

.dm-promo-banner__discount {
  background: var(--dm-navy-dark);
  color: var(--dm-white);
  padding: 2px 8px;
  border-radius: var(--dm-radius-sm);
  font-weight: 700;
}

.dm-promo-banner__timer {
  display: flex;
  align-items: center;
  gap: var(--dm-space-xs);
  background: rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: var(--dm-radius-full);
}

.dm-promo-banner__timer span:last-child {
  font-family: var(--dm-font-display);
  font-weight: 700;
  min-width: 45px;
}

/* ==================== HEADER ==================== */
.dm-header {
  position: fixed;
  top: var(--dm-promo-height);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--dm-header-height);
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 162, 101, 0.2);
}

.dm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.dm-header__logo {
  display: flex;
  align-items: center;
  gap: var(--dm-space-md);
}

.dm-header__logo img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.dm-header__logo-text {
  display: flex;
  flex-direction: column;
  color: var(--dm-white);
}

.dm-header__logo-text span {
  font-family: var(--dm-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.dm-header__logo-text small {
  font-size: 0.7rem;
  color: var(--dm-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Navigation */
.dm-header__nav {
  display: flex;
  align-items: center;
  gap: var(--dm-space-xl);
}

.dm-header__link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: var(--dm-space-sm) 0;
  position: relative;
}

.dm-header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dm-gold);
  transition: var(--dm-transition);
}

.dm-header__link:hover,
.dm-header__link--active {
  color: var(--dm-white);
}

.dm-header__link:hover::after,
.dm-header__link--active::after {
  width: 100%;
}

/* Header Actions */
.dm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--dm-space-lg);
}

/* Language Switch */
.dm-lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--dm-radius-full);
  padding: 3px;
}

.dm-lang-btn {
  padding: 6px 12px;
  border-radius: var(--dm-radius-full);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--dm-transition);
}

.dm-lang-btn:hover {
  color: var(--dm-white);
}

.dm-lang-btn.active {
  background: var(--dm-gold);
  color: var(--dm-navy-dark);
}

/* Mobile Menu Button */
.dm-header__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--dm-space-sm);
}

.dm-header__menu span {
  width: 24px;
  height: 2px;
  background: var(--dm-white);
  transition: var(--dm-transition);
}

/* ==================== BUTTONS ==================== */
.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--dm-space-sm);
  padding: 12px 24px;
  border-radius: var(--dm-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--dm-transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.dm-btn--primary {
  background: linear-gradient(135deg, var(--dm-gold-light) 0%, var(--dm-gold) 50%, var(--dm-gold-dark) 100%);
  color: var(--dm-navy-dark);
  box-shadow: 0 4px 15px rgba(196, 162, 101, 0.4);
}

.dm-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 162, 101, 0.5);
}

.dm-btn--outline {
  background: transparent;
  border-color: var(--dm-gold);
  color: var(--dm-gold);
}

.dm-btn--outline:hover {
  background: var(--dm-gold);
  color: var(--dm-navy-dark);
}

.dm-btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.dm-btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.dm-btn--block {
  width: 100%;
}

/* ==================== HERO SECTION ==================== */
.dm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--dm-promo-height) + var(--dm-header-height) + var(--dm-space-2xl));
  padding-bottom: var(--dm-space-3xl);
  overflow: hidden;
}

.dm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../img/hero.jpg') center center / cover no-repeat;
}

.dm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, 
    rgba(15, 24, 41, 0.35) 0%, 
    rgba(26, 39, 68, 0.55) 100%);
  pointer-events: none;
}

.dm-hero__content {
  text-align: center;
  color: var(--dm-white);
  max-width: 900px;
}

.dm-hero__badge {
  display: inline-block;
  background: rgba(196, 162, 101, 0.15);
  border: 1px solid rgba(196, 162, 101, 0.3);
  padding: var(--dm-space-sm) var(--dm-space-lg);
  border-radius: var(--dm-radius-full);
  font-size: 0.9rem;
  color: var(--dm-gold-light);
  margin-bottom: var(--dm-space-xl);
}

.dm-hero__title {
  font-family: var(--dm-font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--dm-space-lg);
}

.dm-hero__title span {
  display: block;
}

.dm-hero__title-accent {
  background: linear-gradient(135deg, var(--dm-gold-light), var(--dm-gold), var(--dm-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dm-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto var(--dm-space-2xl);
  line-height: 1.8;
}

.dm-hero__cta {
  display: flex;
  gap: var(--dm-space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--dm-space-3xl);
}

/* Trust Items */
.dm-hero__trust {
  display: flex;
  gap: var(--dm-space-2xl);
  justify-content: center;
  flex-wrap: wrap;
}

.dm-trust-item {
  display: flex;
  align-items: center;
  gap: var(--dm-space-sm);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.dm-trust-item__icon {
  color: var(--dm-gold);
  font-weight: 700;
}

/* Scroll Indicator */
.dm-hero__scroll {
  position: absolute;
  bottom: var(--dm-space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dm-space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==================== SECTIONS ==================== */
.dm-section {
  padding: var(--dm-space-3xl) 0;
}

.dm-section--marble {
  background: linear-gradient(180deg, var(--dm-gray-100) 0%, var(--dm-white) 100%);
}

.dm-section--dark {
  background: var(--dm-navy);
  color: var(--dm-white);
}

.dm-section__header {
  text-align: center;
  margin-bottom: var(--dm-space-2xl);
}

.dm-section__badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dm-gold);
  margin-bottom: var(--dm-space-md);
}

.dm-section__badge--gold {
  background: rgba(196, 162, 101, 0.15);
  padding: var(--dm-space-xs) var(--dm-space-md);
  border-radius: var(--dm-radius-full);
}

.dm-section__title {
  font-family: var(--dm-font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: inherit;
  margin-bottom: var(--dm-space-sm);
}

.dm-section--dark .dm-section__title {
  color: var(--dm-white);
}

.dm-section__subtitle {
  font-size: 1rem;
  color: var(--dm-gray-500);
}

.dm-section--dark .dm-section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.dm-section__action {
  text-align: center;
  margin-top: var(--dm-space-2xl);
}

/* ==================== TICKET CARDS ==================== */
.dm-tickets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dm-space-xl);
}

.dm-ticket-card {
  position: relative;
  background: var(--dm-white);
  border-radius: var(--dm-radius-lg);
  overflow: hidden;
  box-shadow: var(--dm-shadow-md);
  transition: var(--dm-transition);
}

.dm-ticket-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--dm-shadow-lg);
}

.dm-ticket-card--featured {
  border: 2px solid var(--dm-gold);
}

.dm-ticket-card__badge {
  position: absolute;
  top: var(--dm-space-md);
  left: var(--dm-space-md);
  z-index: 2;
  background: var(--dm-navy);
  color: var(--dm-white);
  padding: 4px 12px;
  border-radius: var(--dm-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dm-ticket-card__badge--gold {
  background: var(--dm-gold);
  color: var(--dm-navy-dark);
}

.dm-ticket-card__discount {
  position: absolute;
  top: var(--dm-space-md);
  right: var(--dm-space-md);
  z-index: 2;
  background: var(--dm-crimson);
  color: var(--dm-white);
  padding: 6px 10px;
  border-radius: var(--dm-radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

.dm-ticket-card__image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--dm-gray-200);
}

.dm-ticket-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--dm-transition);
}

.dm-ticket-card:hover .dm-ticket-card__image img {
  transform: scale(1.05);
}

.dm-ticket-card__content {
  padding: var(--dm-space-lg);
}

.dm-ticket-card__icon {
  font-size: 1.5rem;
  margin-bottom: var(--dm-space-sm);
  display: block;
}

.dm-ticket-card__title {
  font-family: var(--dm-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dm-navy);
  margin-bottom: var(--dm-space-sm);
}

.dm-ticket-card__desc {
  font-size: 0.9rem;
  color: var(--dm-gray-500);
  line-height: 1.6;
  margin-bottom: var(--dm-space-lg);
  min-height: 52px;
}

.dm-ticket-card__price {
  display: flex;
  align-items: center;
  gap: var(--dm-space-md);
  margin-bottom: var(--dm-space-lg);
}

.dm-ticket-card__price .old {
  font-size: 1rem;
  color: var(--dm-gray-500);
  text-decoration: line-through;
}

.dm-ticket-card__price .now {
  font-family: var(--dm-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dm-crimson);
}

/* ==================== BENEFITS ==================== */
.dm-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--dm-space-xl);
}

.dm-benefit {
  text-align: center;
  padding: var(--dm-space-xl);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--dm-radius-lg);
  border: 1px solid rgba(196, 162, 101, 0.2);
  transition: var(--dm-transition);
}

.dm-benefit:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--dm-gold);
}

.dm-benefit__icon {
  font-size: 2.5rem;
  margin-bottom: var(--dm-space-md);
}

.dm-benefit__title {
  font-family: var(--dm-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dm-white);
  margin-bottom: var(--dm-space-sm);
}

.dm-benefit__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ==================== STEPS ==================== */
.dm-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--dm-space-xl);
  position: relative;
}

.dm-steps::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, var(--dm-gold), var(--dm-gold-light), var(--dm-gold));
  z-index: 0;
}

.dm-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.dm-step__number {
  width: 32px;
  height: 32px;
  background: var(--dm-gold);
  color: var(--dm-navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto var(--dm-space-md);
}

.dm-step__icon {
  font-size: 2rem;
  margin-bottom: var(--dm-space-md);
}

.dm-step__title {
  font-family: var(--dm-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dm-navy);
  margin-bottom: var(--dm-space-sm);
}

.dm-step__desc {
  font-size: 0.9rem;
  color: var(--dm-gray-500);
}

/* ==================== CTA SECTION ==================== */
.dm-cta-section {
  position: relative;
  padding: var(--dm-space-3xl) 0;
  text-align: center;
  overflow: hidden;
}

.dm-cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/hero.jpg') center center / cover no-repeat;
}

.dm-cta-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 41, 0.85);
}

.dm-cta-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 41, 0.5);
}

.dm-cta-section__content {
  position: relative;
  z-index: 1;
  color: var(--dm-white);
}

.dm-cta-section__title {
  font-family: var(--dm-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: var(--dm-space-md);
}

.dm-cta-section__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--dm-space-xl);
}

.dm-cta-section__timer {
  display: inline-flex;
  align-items: center;
  gap: var(--dm-space-md);
  background: rgba(196, 162, 101, 0.15);
  border: 1px solid rgba(196, 162, 101, 0.3);
  padding: var(--dm-space-md) var(--dm-space-xl);
  border-radius: var(--dm-radius-full);
  margin-bottom: var(--dm-space-xl);
  font-size: 1rem;
}

.dm-cta-section__timer span:last-child {
  font-family: var(--dm-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dm-gold);
}

/* ==================== FOOTER ==================== */
.dm-footer {
  background: var(--dm-navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--dm-space-3xl) 0;
  padding-bottom: 80px; /* Extra space at bottom to ensure visibility */
}

.dm-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--dm-space-2xl);
  margin-bottom: var(--dm-space-2xl);
}

.dm-footer__logo {
  display: flex;
  align-items: center;
  gap: var(--dm-space-md);
  margin-bottom: var(--dm-space-lg);
}

.dm-footer__logo img {
  width: 40px;
  height: 40px;
}

.dm-footer__logo-text span {
  font-family: var(--dm-font-display);
  font-size: 0.95rem;
  color: var(--dm-gold);
}

.dm-footer__address {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.dm-footer__col h4 {
  font-family: var(--dm-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dm-gold);
  margin-bottom: var(--dm-space-lg);
}

.dm-footer__col ul li {
  margin-bottom: var(--dm-space-sm);
}

.dm-footer__col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.dm-footer__col a:hover {
  color: var(--dm-gold);
}

.dm-footer__col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.dm-footer__note {
  font-size: 0.8rem !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: var(--dm-space-sm);
}

.dm-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--dm-space-xl);
  padding-bottom: 40px; /* Extra bottom padding for visibility */
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--dm-space-md);
}

.dm-footer__bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.dm-footer__payments {
  display: flex;
  align-items: center;
  gap: var(--dm-space-md);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Add extra space after footer for scroll room */
.dm-footer::after {
  content: '';
  display: block;
  height: 60px;
  width: 100%;
}

/* ==================== MODALS ==================== */
.dm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 41, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
  overflow-y: auto;
}

.dm-modal-overlay.is-visible {
  display: flex;
}

.dm-modal {
  background: var(--dm-white);
  border-radius: var(--dm-radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: calc(100vh - 20px);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 162, 101, 0.15);
  animation: modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  margin: 10px auto;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dm-modal__header {
  background: linear-gradient(135deg, var(--dm-navy) 0%, var(--dm-navy-dark) 100%);
  padding: 12px 16px;
  color: var(--dm-white);
  position: relative;
  flex-shrink: 0;
}

.dm-modal__header h2 {
  font-family: var(--dm-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 2px;
  padding-right: 32px;
}

.dm-modal__header p {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.3;
}

.dm-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dm-white);
  font-size: 1.2rem;
  font-weight: 300;
  transition: var(--dm-transition);
  cursor: pointer;
}

.dm-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.dm-modal__body {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.dm-modal__footer {
  padding: var(--dm-space-lg) var(--dm-space-xl);
  background: var(--dm-gray-100);
  border-top: 1px solid var(--dm-gray-200);
  flex-shrink: 0;
}

/* Modal Promo Banner */
.dm-modal__promo {
  background: linear-gradient(135deg, var(--dm-gold-light) 0%, var(--dm-gold) 100%);
  color: var(--dm-navy-dark);
  padding: 6px 12px;
  border-radius: var(--dm-radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 4px;
}

.dm-modal__promo strong {
  display: flex;
  align-items: center;
  gap: var(--dm-space-sm);
}

.dm-modal__promo span:last-child {
  background: var(--dm-navy-dark);
  color: var(--dm-white);
  padding: 4px 12px;
  border-radius: var(--dm-radius-full);
  font-size: 0.85rem;
}

/* Modal Form Fields */
.dm-modal__field {
  margin-bottom: var(--dm-space-md);
}

.dm-modal__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dm-navy);
  margin-bottom: 6px;
}

.dm-modal__field input,
.dm-modal__field select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--dm-gray-300);
  border-radius: var(--dm-radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--dm-transition);
  background: var(--dm-white);
}

.dm-modal__field input:focus,
.dm-modal__field select:focus {
  outline: none;
  border-color: var(--dm-gold);
  box-shadow: 0 0 0 4px rgba(196, 162, 101, 0.15);
}

.dm-modal__field input::placeholder {
  color: var(--dm-gray-500);
}

.dm-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dm-space-lg);
}

/* Ticket List in Modal */
.dm-ticket-list {
  margin-bottom: var(--dm-space-lg);
}

.dm-ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--dm-space-md);
  background: var(--dm-gray-100);
  border-radius: var(--dm-radius-md);
  margin-bottom: var(--dm-space-sm);
  border: 1px solid var(--dm-gray-200);
  transition: var(--dm-transition);
}

.dm-ticket-item:hover {
  border-color: var(--dm-gold);
  background: #FFFEF5;
}

.dm-ticket-item__info strong {
  display: block;
  font-size: 1rem;
  color: var(--dm-navy);
  margin-bottom: 4px;
}

.dm-ticket-item__pricing {
  display: flex;
  align-items: center;
  gap: var(--dm-space-sm);
}

.dm-ticket-item__pricing .old {
  text-decoration: line-through;
  color: var(--dm-gray-500);
  font-size: 0.9rem;
}

.dm-ticket-item__pricing .now {
  color: var(--dm-crimson);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Quantity Controls */
.dm-qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--dm-white);
  border: 2px solid var(--dm-gray-300);
  border-radius: var(--dm-radius-md);
  overflow: hidden;
}

.dm-qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dm-navy);
  background: var(--dm-gray-100);
  border: none;
  cursor: pointer;
  transition: var(--dm-transition);
}

.dm-qty-btn:hover {
  background: var(--dm-gold);
  color: var(--dm-navy-dark);
}

.dm-qty-input {
  width: 40px;
  height: 36px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dm-navy);
  border: none;
  background: var(--dm-white);
}

/* Totals Section */
.dm-totals {
  background: var(--dm-gray-100);
  padding: var(--dm-space-md);
  border-radius: var(--dm-radius-md);
  margin-bottom: var(--dm-space-lg);
}

.dm-totals__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--dm-gray-700);
}

.dm-totals__row.final {
  border-top: 2px solid var(--dm-gray-300);
  margin-top: var(--dm-space-xs);
  padding-top: var(--dm-space-sm);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dm-navy);
}

.dm-totals__row.final span:last-child {
  color: var(--dm-gold-dark);
}

/* Modal Back Button */
.dm-btn--back {
  display: inline-flex;
  align-items: center;
  gap: var(--dm-space-sm);
  background: transparent;
  border: none;
  color: var(--dm-gray-500);
  font-size: 0.9rem;
  cursor: pointer;
  padding: var(--dm-space-sm) 0;
  margin-bottom: var(--dm-space-lg);
  transition: var(--dm-transition);
}

.dm-btn--back:hover {
  color: var(--dm-gold);
}

/* Modal Responsive */
@media (max-width: 600px) {
  .dm-modal {
    max-height: 95vh;
    border-radius: var(--dm-radius-lg) var(--dm-radius-lg) 0 0;
    margin-top: auto;
  }
  
  .dm-modal__header {
    padding: var(--dm-space-lg);
  }
  
  .dm-modal__header h2 {
    font-size: 1.25rem;
  }
  
  .dm-modal__body {
    padding: var(--dm-space-lg);
  }
  
  .dm-modal__row {
    grid-template-columns: 1fr;
  }
  
  .dm-modal__promo {
    flex-direction: column;
    text-align: center;
  }
  
  .dm-ticket-item {
    flex-direction: column;
    gap: var(--dm-space-md);
    text-align: center;
  }
  
  .dm-ticket-item__info {
    text-align: center;
  }
  
  .dm-ticket-item__pricing {
    justify-content: center;
  }
}

/* ==================== FORM ELEMENTS ==================== */
.dm-form-group {
  margin-bottom: var(--dm-space-lg);
}

.dm-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dm-gray-700);
  margin-bottom: var(--dm-space-sm);
}

.dm-form-group input,
.dm-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--dm-gray-300);
  border-radius: var(--dm-radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--dm-transition);
}

.dm-form-group input:focus,
.dm-form-group select:focus {
  outline: none;
  border-color: var(--dm-gold);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.2);
}

/* ==================== PAGE HEADER (for inner pages) ==================== */
.dm-page-header {
  position: relative;
  padding: calc(var(--dm-promo-height) + var(--dm-header-height) + var(--dm-space-3xl)) 0 var(--dm-space-3xl);
  text-align: center;
  color: var(--dm-white);
  overflow: hidden;
}

.dm-page-header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/hero.jpg') center center / cover no-repeat;
}

.dm-page-header__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 41, 0.8);
}

.dm-page-header__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 41, 0.5);
}

.dm-page-header__content {
  position: relative;
  z-index: 1;
}

.dm-page-header__content h1 {
  font-family: var(--dm-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: var(--dm-space-md);
}

.dm-page-header__content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== TICKETS PAGE SECTIONS ==================== */
.dm-tickets-page {
  padding: var(--dm-space-3xl) 0;
  background: var(--dm-gray-100);
}

.dm-ticket-category {
  margin-bottom: var(--dm-space-3xl);
}

.dm-ticket-category:last-child {
  margin-bottom: 0;
}

.dm-ticket-category h2 {
  font-family: var(--dm-font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dm-navy);
  margin-bottom: var(--dm-space-xl);
  padding-bottom: var(--dm-space-sm);
  border-bottom: 2px solid var(--dm-gold);
  display: inline-block;
}

.dm-ticket-category .dm-tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--dm-space-xl);
}

/* Tickets page card extended styling */
.dm-ticket-card__features {
  margin-bottom: var(--dm-space-lg);
}

.dm-ticket-card__features li {
  font-size: 0.85rem;
  color: var(--dm-gray-700);
  padding: var(--dm-space-xs) 0;
}

.dm-ticket-card__features li::before {
  content: '✓';
  color: var(--dm-gold);
  margin-right: var(--dm-space-sm);
  font-weight: 700;
}

.dm-ticket-card__prices {
  margin-bottom: var(--dm-space-lg);
}

.dm-ticket-card__prices > div {
  display: flex;
  justify-content: space-between;
  padding: var(--dm-space-sm) 0;
  border-bottom: 1px solid var(--dm-gray-200);
}

.dm-ticket-card__prices > div:last-child {
  border-bottom: none;
}

.dm-ticket-card__prices span:first-child {
  color: var(--dm-gray-500);
  font-size: 0.9rem;
}

.dm-ticket-card__prices .old {
  text-decoration: line-through;
  color: var(--dm-gray-500);
}

.dm-ticket-card__prices .now {
  color: var(--dm-crimson);
  font-weight: 700;
}

/* ==================== UTILITY CLASSES ==================== */
.lang-en { display: none; }
.lang-it { display: inline; }

html[lang="en"] .lang-en { display: inline; }
html[lang="en"] .lang-it { display: none; }

/* ==================== ADDITIONAL FIXES ==================== */
/* Ensure proper stacking and no overlay issues */
body {
  overflow-x: hidden;
  min-height: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Ensure html doesn't cut off footer */
html {
  height: auto;
  min-height: 100%;
  overflow-y: auto !important;
}

/* Fix any potential z-index issues */
.dm-hero__overlay,
.dm-page-header__overlay,
.dm-cta-section__overlay {
  pointer-events: none;
}

/* Ensure grids work properly */
.dm-tickets-grid,
.dm-benefits-grid,
.dm-steps,
.dm-footer__grid {
  display: grid;
}

/* ==================== RESPONSIVE ==================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .dm-container {
    max-width: 100%;
    padding: 0 var(--dm-space-xl);
  }
  
  .dm-header__nav {
    gap: var(--dm-space-lg);
  }
  
  .dm-header__link {
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .dm-tickets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dm-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dm-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dm-space-2xl);
  }
  
  .dm-steps::before {
    display: none;
  }
  
  .dm-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dm-ticket-category .dm-tickets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --dm-promo-height: 36px;
    --dm-header-height: 64px;
  }
  
  .dm-promo-banner {
    font-size: 0.75rem;
    gap: var(--dm-space-xs);
  }
  
  .dm-promo-banner__text {
    display: none;
  }
  
  .dm-header__nav {
    display: none;
    position: fixed;
    top: calc(var(--dm-promo-height) + var(--dm-header-height));
    left: 0;
    right: 0;
    background: var(--dm-navy);
    flex-direction: column;
    padding: var(--dm-space-lg);
    gap: var(--dm-space-md);
    border-bottom: 1px solid rgba(196, 162, 101, 0.2);
  }
  
  .dm-header__nav.is-open {
    display: flex;
  }
  
  .dm-header__menu {
    display: flex;
  }
  
  .dm-header__actions .dm-btn {
    display: none;
  }
  
  .dm-hero__content {
    padding: var(--dm-space-lg);
  }
  
  .dm-hero__cta {
    flex-direction: column;
    align-items: center;
  }
  
  .dm-hero__cta .dm-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .dm-hero__trust {
    flex-direction: column;
    gap: var(--dm-space-md);
  }
  
  .dm-tickets-grid {
    grid-template-columns: 1fr;
  }
  
  .dm-benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .dm-steps {
    grid-template-columns: 1fr;
  }
  
  .dm-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .dm-footer__logo {
    justify-content: center;
  }
  
  .dm-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dm-container {
    padding: 0 var(--dm-space-md);
  }
  
  .dm-hero__title {
    font-size: 2rem;
  }
  
  .dm-section {
    padding: var(--dm-space-2xl) 0;
  }
  
  .dm-ticket-card__image {
    height: 140px;
  }
  
  .dm-ticket-card__content {
    padding: var(--dm-space-md);
  }
  
  .dm-modal {
    max-height: 95vh;
    border-radius: var(--dm-radius-lg);
  }
}
