:root {
  --bg-gradient: radial-gradient(
    circle at 50% 35%,
    #0c2b4e 0%,
    #051424 70%,
    #030a13 100%
  );
  --cyan-primary: #00d4fe;
  --card-bg: rgba(8, 24, 44, 0.8);
  --text-white: #ffffff;
  --text-muted: #e2e8f0;
  --bar-bg: #262a2d;
  --ticker-bg: #f1f5f9;
  --ticker-text: #1e293b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--bg-gradient);
  color: var(--text-white);
}

/* Kiosk Portrait Container (9:16 Display Optimization) */
.tv-kiosk-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Header Section */
.tv-kiosk-header {
  height: 140px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 50px;
  z-index: 10;
}

.header-logo-container img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

/* Main Content Area - Portrait Layout Centered */
.tv-kiosk-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 50px;
  position: relative;
  z-index: 5;
}

.kiosk-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 950px;
  animation: fadeIn 0.8s ease-in-out forwards;
}

.kiosk-slide.active {
  display: flex;
}

/* Doctor Portrait Component */
.doctor-avatar-wrap {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 6px solid var(--cyan-primary);
  box-shadow: 0 0 40px rgba(0, 212, 254, 0.45);
  overflow: hidden;
  margin-bottom: -60px;
  z-index: 2;
  background-color: #0c2b4e;
}

.doctor-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card-box {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 90px 60px 60px 60px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 212, 254, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.doctor-name {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.doctor-specialization {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan-primary);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.doctor-description {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* Promo Slide Component Vertical (Dimensioni Immagine Raddoppiate) */
.promo-card-box {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 50px 60px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(20px);
  border: 3px solid var(--cyan-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.promo-featured-img-wrap {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.promo-featured-img {
  max-height: 320px;
  width: auto;
  max-width: 95%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
}

.promo-title {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--cyan-primary);
  margin-bottom: 25px;
  line-height: 1.2;
}

.promo-subtitle {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-white);
  margin-bottom: 35px;
}

.promo-services-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.promo-service-tag {
  background: rgba(0, 212, 254, 0.15);
  border: 2px solid var(--cyan-primary);
  color: var(--text-white);
  padding: 14px 30px;
  border-radius: 40px;
  font-size: 1.35rem;
  font-weight: 600;
  width: 90%;
}

/* Footer Section - ANSA Bar & Ticker Vertical Screen */
.tv-kiosk-footer {
  width: 100vw;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.ansa-bar {
  background: var(--bar-bg);
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  border-top: 4px solid var(--cyan-primary);
}

.ansa-bar-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ansa-bar-clock {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan-primary);
  font-family: "Courier New", Courier, monospace;
}

.ticker-container {
  background: var(--ticker-bg);
  height: 85px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-anim 130s linear infinite;
  will-change: transform;
}

.ticker-text-item {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ticker-text);
}

.ticker-bullet {
  color: var(--cyan-primary);
  margin: 0 35px;
  font-size: 2rem;
}

.footer-symbol-fixed {
  position: absolute;
  bottom: 175px;
  right: 50px;
  width: 110px;
  height: 110px;
  z-index: 15;
  pointer-events: none;
}

.footer-symbol-fixed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes ticker-anim {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
