/* ==========================================================================
   ITERCARS ACADEMY - PRIVATE TRAINING & CERTIFICATION STYLES
   ========================================================================== */
.academy-section {
  padding: 0;
  min-height: calc(100vh - 200px);
  position: relative;
  z-index: 2;
}
#academyDashboardSection {
  padding: 120px 0 80px 0;
}
/* ================= LOGIN VIEW ================= */
.academy-login-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--glow-emerald);
}
.academy-login-header {
  text-align: center;
  margin-bottom: 30px;
}
.academy-login-header i {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: inline-block;
}
.academy-login-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.academy-login-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.login-form-group {
  margin-bottom: 22px;
}
.login-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1.2rem;
  pointer-events: none;
}
.login-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}
.login-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 146, 70, 0.3);
}
.login-notice {
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ================= DASHBOARD VIEW ================= */
.academy-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}
.academy-title-area h2 {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.course-badge {
  padding: 4px 12px;
  background: rgba(0, 146, 70, 0.2);
  border: 1px solid rgba(0, 146, 70, 0.4);
  color: #2ecc71;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.academy-user-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-welcome-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: #fff;
}
.user-welcome-badge strong {
  color: var(--accent-primary);
}
/* Course Progress Bar */
.course-progress-container {
  margin-bottom: 30px;
  padding: 24px 30px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.progress-header span {
  font-weight: 600;
  font-size: 0.95rem;
}
.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 146, 70, 0.5);
}
/* ================= COURSE GRID (2 COLUMNS) ================= */
.course-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 1024px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  .playlist-column {
    order: 2;
  }
  .video-column {
    order: 1;
  }
}
/* LEFT COLUMN: PLAYLIST */
.playlist-column {
  padding: 24px;
  max-height: 820px;
  display: flex;
  flex-direction: column;
}
.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}
.playlist-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lessons-list {
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Custom Scrollbar for Playlist */
.lessons-list::-webkit-scrollbar {
  width: 6px;
}
.lessons-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.lessons-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.lessons-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}
.lesson-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.lesson-card:hover:not(.locked) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 146, 70, 0.4);
  transform: translateX(4px);
}
.lesson-card.active {
  background: rgba(0, 146, 70, 0.15);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 146, 70, 0.2);
}
.lesson-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(10, 14, 23, 0.6);
}
.lesson-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.lesson-card.active .lesson-number {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 146, 70, 0.5);
}
.lesson-card.completed .lesson-number {
  background: #2ecc71;
  color: #000;
}
.lesson-info {
  flex-grow: 1;
  min-width: 0;
}
.lesson-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lesson-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lesson-status-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
/* RIGHT COLUMN: VIDEO PLAYER */
.video-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.video-player-container {
  width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
  aspect-ratio: 16 / 9;
}
.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= THEATER MODE ================= */
.course-grid.theater-mode {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-areas: 
    "controls controls"
    "video video"
    "playlist details";
  gap: 30px;
}
.course-grid.theater-mode > .video-column {
  display: contents !important;
}
.course-grid.theater-mode .playlist-column {
  grid-area: playlist;
  max-height: 800px;
}
.course-grid.theater-mode .video-view-controls {
  grid-area: controls;
  justify-content: flex-end;
  display: flex;
  margin-bottom: -15px; /* avvicina i bottoni al video */
}
.course-grid.theater-mode .video-player-container {
  grid-area: video;
  width: 100%;
  aspect-ratio: 21 / 9;
}
.course-grid.theater-mode .lesson-details-card {
  grid-area: details;
}
@media (max-width: 1024px) {
  .course-grid.theater-mode {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "controls"
      "video"
      "playlist"
      "details";
  }
}

.lesson-details-card {
  padding: 30px;
}
.lesson-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lesson-header-row h3 {
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.3;
}
.lesson-status-tag {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tag-uncompleted {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.tag-completed {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}
.lesson-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}
.lesson-action-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
/* TOAST / ALERT NOTIFICATION */
.academy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--glow-emerald);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.academy-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.academy-toast.error {
  border-color: #ef4444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.3);
}
.academy-toast i {
  font-size: 1.4rem;
}
/* ==========================================================================
   ACADEMY PRESENTATION & BROKERAGE INTRO SECTION
   ========================================================================== */
.presentation-hero-box {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
}
.presentation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 146, 70, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.45);
  border-radius: var(--radius-full);
  color: #2ecc71;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 146, 70, 0.25);
}
.presentation-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
.presentation-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
/* STATS GRID */
.brokerage-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}
@media (max-width: 1024px) {
  .brokerage-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .presentation-title {
    font-size: 2.4rem;
  }
}
@media (max-width: 640px) {
  .brokerage-stats-grid {
    grid-template-columns: 1fr;
  }
}
.broker-stat-card {
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.broker-stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 146, 70, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 146, 70, 0.15);
}
.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 146, 70, 0.15);
  color: #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px auto;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}
/* BENEFIT CARDS & INTRO GRID */
.brokerage-benefits-section {
  margin-bottom: 80px;
}
.brokerage-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px auto;
}
.brokerage-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 991px) {
  .brokerage-benefits-grid {
    grid-template-columns: 1fr;
  }
}
.benefit-card-broker {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}
.benefit-card-broker:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
  transform: translateY(-6px);
}
.benefit-icon-broker {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 146, 70, 0.3);
}
.benefit-card-broker h3 {
  font-size: 1.35rem;
  color: #fff;
}
.benefit-card-broker p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
/* GALLERY GRID: SHOWROOM, BROKER & CLIENTS IN OFFICE */
.brokerage-gallery-section {
  margin-bottom: 80px;
}
.broker-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) {
  .broker-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  group: true;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: all 0.3s ease;
}
.gallery-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 146, 70, 0.8);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}
.gallery-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.gallery-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}
/* ==========================================================================
   ADVANCED LUXURY SCROLLBAR FOR MODAL FORM & DESKTOP ADAPTATION
   ========================================================================== */
#accessRequestModal .modal-content,
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: #2ecc71 rgba(10, 14, 23, 0.8);
}
#accessRequestModal .modal-content::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 8px;
}
#accessRequestModal .modal-content::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: rgba(10, 14, 23, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 10px 0;
}
#accessRequestModal .modal-content::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #009246 0%, #2ecc71 50%, #009246 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.5);
  transition: all 0.3s ease;
}
#accessRequestModal .modal-content::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2ecc71 0%, #009246 100%);
  box-shadow: 0 0 18px rgba(46, 204, 113, 0.8);
}
/* Desktop Adaptation & Responsive Form Grid */
@media (min-width: 768px) {
  #accessRequestModal .modal-content {
    max-width: 820px !important;
    padding: 36px 44px !important;
    max-height: 88vh !important;
  }
  #academyLoginModal .modal-content {
    max-width: 540px !important;
    padding: 40px !important;
    max-height: 90vh !important;
  }
  .desktop-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
/* Mobile Adaptation per Modali Academy & Chiedi Accesso */
@media (max-width: 767px) {
  /* Modale overlay su mobile con margine e scroll ottimizzato */
  #accessRequestModal,
  #academyLoginModal {
    padding: 12px !important;
    align-items: flex-start !important;
  }
  /* Box contenuto del modale adatta per smartphone */
  #accessRequestModal .modal-content,
  #academyLoginModal .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 24px 18px !important;
    max-height: 88vh !important;
    border-radius: 14px !important;
    margin: auto 0 !important;
  }
  /* Titoli del form proporzionati per schermi piccoli */
  #accessRequestModal h3,
  #academyLoginModal h2 {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
  }
  /* Sottotitoli e descrizioni concise e leggibili */
  #accessRequestModal p,
  #academyLoginModal p {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }
  /* Trasforma le griglie a 2 colonne in 1 colonna verticale su smartphone */
  .desktop-grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  /* Campi input ad alta leggibilità (16px per evitare zoom automatico su iOS Safari) */
  #accessRequestModal input,
  #accessRequestModal select,
  #accessRequestModal textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
    height: 48px !important;
  }
  #academyLoginModal input {
    font-size: 16px !important;
    height: 48px !important;
  }
  #academyLoginModal .login-input-wrapper input {
    padding: 12px 14px 12px 48px !important;
  }
  #academyLoginModal .login-input-wrapper i {
    position: absolute !important;
    left: 16px !important;
    font-size: 1.2rem !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }
  /* Pulsante di chiusura (X) ben accessibile con il pollice */
  #accessRequestModal .close-modal,
  #academyLoginModal .close-modal {
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1.3rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }
  /* Pulsanti touch-friendly ampi e comodi */
  #accessRequestModal button[type="submit"],
  #academyLoginModal button[type="submit"] {
    min-height: 52px !important;
    height: auto !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
}

/* ==========================================================================
   ACADEMY LANDING v2 — FULL-BLEED HERO & SECTIONS
   ========================================================================== */
.acd-landing { width: 100%; overflow: hidden; }

/* HERO */
.acd-hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  min-height: 85svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0 85px;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.acd-hero-bg {
  position: absolute;
  inset: 0;
  background: url('academy_hero_bg.jpg') center / cover no-repeat;
  z-index: -2;
  transform: scale(1.06);
  animation: acdKenBurns 22s ease-out forwards;
}
@keyframes acdKenBurns { to { transform: scale(1); } }
.acd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(10, 14, 23, 0.45) 0%, rgba(10, 14, 23, 0.8) 75%),
    linear-gradient(180deg, rgba(10, 14, 23, 0.6) 0%, rgba(10, 14, 23, 0.3) 40%, var(--bg-primary) 100%);
}
.acd-hero-inner { max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.acd-hero-title {
  font-size: clamp(1.95rem, 3.2vw, 2.45rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.acd-hero-sub {
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 30px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.acd-hero-sub strong { color: #fff; }
.acd-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.acd-btn-lg { padding: 14px 30px; font-size: 0.98rem; font-weight: 700; text-decoration: none; border-radius: var(--radius-sm); }
.acd-hero-ctas .btn-outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.acd-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.acd-hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: #e5e7eb; }
.acd-hero-trust i { color: #2ecc71; font-size: 1.05rem; }
.acd-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  animation: acdBounce 2.2s ease-in-out infinite;
}
.acd-scroll-cue:hover { border-color: var(--accent-primary); color: #2ecc71; }
@keyframes acdBounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.acd-reveal { opacity: 0; transform: translateY(24px); animation: acdFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.acd-hero-inner .acd-reveal:nth-child(2) { animation-delay: 0.12s; }
.acd-hero-inner .acd-reveal:nth-child(3) { animation-delay: 0.24s; }
.acd-hero-inner .acd-reveal:nth-child(4) { animation-delay: 0.36s; }
.acd-hero-inner .acd-reveal:nth-child(5) { animation-delay: 0.48s; }
@keyframes acdFadeUp { to { opacity: 1; transform: translateY(0); } }

/* SHARED SECTION TYPOGRAPHY */
.acd-section { padding: 100px 0; }
.acd-section-alt { background: linear-gradient(180deg, transparent 0%, rgba(0, 146, 70, 0.05) 50%, transparent 100%); }
.acd-h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 14px 0; line-height: 1.15; }
.acd-lead { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

/* STATS BAND */
.acd-stats-section { padding: 90px 0 100px; position: relative; }
.acd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(26, 35, 51, 0.65), rgba(10, 14, 23, 0.85));
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 146, 70, 0.08);
  overflow: hidden;
}
.acd-stat {
  padding: 44px 28px;
  text-align: center;
  position: relative;
  transition: background 0.3s ease;
}
.acd-stat + .acd-stat { border-left: 1px solid var(--border-glass); }
.acd-stat::after {
  content: '';
  position: absolute;
  left: 20%; right: 20%; bottom: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.acd-stat:hover { background: rgba(0, 146, 70, 0.06); }
.acd-stat:hover::after { transform: scaleX(1); }
.acd-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 60%, #2ecc71 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.acd-stat-title { font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 6px; }
.acd-stat-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 1024px) {
  .acd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .acd-stat:nth-child(3) { border-left: none; }
  .acd-stat:nth-child(n+3) { border-top: 1px solid var(--border-glass); }
}
@media (max-width: 600px) {
  .acd-stats-grid { grid-template-columns: 1fr; }
  .acd-stat + .acd-stat { border-left: none; border-top: 1px solid var(--border-glass); }
}

/* STEPS */
.acd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; counter-reset: none; }
.acd-step {
  position: relative;
  padding: 40px 30px 34px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}
.acd-step:hover { transform: translateY(-6px); border-color: rgba(0, 146, 70, 0.45); }
.acd-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: 18px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.acd-step h3 { font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.acd-step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .acd-steps { grid-template-columns: 1fr; } }

/* FINAL CTA */
.acd-cta-section { padding: 40px 0 120px; }
.acd-cta-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  border: 1px solid rgba(0, 146, 70, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 146, 70, 0.22), transparent 55%),
    linear-gradient(145deg, rgba(26, 35, 51, 0.85), rgba(10, 14, 23, 0.95));
  box-shadow: var(--shadow-lg), var(--glow-emerald);
}
.acd-includes { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.acd-includes li { display: flex; align-items: center; gap: 12px; color: #e5e7eb; font-size: 1rem; }
.acd-includes i {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  display: flex; align-items: center; justify-content: center;
}
.acd-price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 36px 30px;
  border-radius: 22px;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-glass);
}
.acd-price-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.acd-price { font-family: 'Outfit', sans-serif; font-size: 4rem; font-weight: 800; line-height: 1; color: #fff; }
.acd-price-note { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; }
.acd-price-login { color: #2ecc71; font-size: 0.9rem; font-weight: 600; margin-top: 4px; }
.acd-price-login:hover { text-decoration: underline; }
.acd-secure { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.acd-secure i { color: #2ecc71; }
@media (max-width: 900px) {
  .acd-cta-card { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
  .acd-section { padding: 70px 0; }
}
@media (max-width: 600px) {
  .acd-hero-trust { border-radius: 18px; gap: 10px 18px; }
  .acd-btn-lg { width: 100%; }
  .acd-stat-number { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .acd-hero-bg, .acd-reveal, .acd-scroll-cue { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   ACADEMY DASHBOARD MOBILE ADAPTATION (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  #academyDashboardSection {
    padding: 15px 0 60px 0 !important;
  }
  
  .academy-top-bar {
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  
  .academy-title-area h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  .course-badge {
    font-size: 0.78rem !important;
    padding: 4px 10px !important;
  }
  
  .academy-user-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  
  .user-welcome-badge {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
    flex: 1 1 auto !important;
  }
  
  .course-progress-container {
    padding: 14px 16px !important;
    margin-bottom: 18px !important;
  }
  
  .progress-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    font-size: 0.85rem !important;
  }
  
  #btnModeTheater {
    display: none !important;
  }
  
  .video-view-controls {
    justify-content: flex-end !important;
    margin-bottom: 8px !important;
  }
  
  .lesson-details-card {
    padding: 18px 14px !important;
  }
  
  .lesson-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  #currentLessonTitle {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }
  
  #currentLessonPdfBtn {
    align-self: flex-start !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }
  
  .lesson-action-area {
    margin-top: 18px !important;
    padding-top: 16px !important;
  }
  
  #completeLessonBtn {
    width: 100% !important;
    font-size: 0.95rem !important;
    padding: 14px 16px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
    min-height: 52px !important;
  }

  .playlist-column {
    padding: 16px 12px !important;
    max-height: none !important;
    margin-top: 10px !important;
  }
  
  .lessons-list {
    max-height: 480px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 4px !important;
  }
  
  .lesson-card {
    padding: 12px 14px !important;
    gap: 12px !important;
  }
  
  .lesson-info h4 {
    white-space: normal !important;
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
  }
}


/* ==========================================================================
   ACADEMY HERO STORY SLIDER (8-STAGE CAREER & LIFESTYLE JOURNEY)
   ========================================================================== */
.acd-story-slider {
  position: relative;
  width: 100%;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06080e;
  overflow: hidden;
  padding: 110px 0 85px 0;
  isolation: isolate;
  border-bottom: 1px solid var(--border-glass);
}

.acd-slider-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.acd-slider-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, #2ecc71 50%, #f1c40f 100%);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

.acd-slider-top-bar {
  position: absolute;
  top: 95px;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.acd-slider-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  pointer-events: auto;
}

.acd-slider-tag-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  animation: acdPulse 2s infinite ease-in-out;
}

@keyframes acdPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.acd-slider-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 16px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  pointer-events: auto;
}

.acd-slider-counter .counter-current {
  color: #2ecc71;
  font-size: 1.15rem;
}

.acd-slider-counter .counter-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

.acd-slider-counter .counter-total {
  color: var(--text-muted);
}

.acd-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.acd-story-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
  z-index: 1;
}

.acd-story-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.acd-slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.acd-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.acd-story-slide.active .acd-slide-img {
  transform: scale(1.05);
}

.acd-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 45%, rgba(0, 0, 0, 0.15) 0%, rgba(6, 8, 14, 0.85) 75%),
    linear-gradient(to right, rgba(6, 8, 14, 0.95) 0%, rgba(6, 8, 14, 0.75) 50%, rgba(6, 8, 14, 0.4) 100%),
    linear-gradient(to top, rgba(6, 8, 14, 0.95) 0%, rgba(6, 8, 14, 0.2) 50%, rgba(6, 8, 14, 0.75) 100%);
  pointer-events: none;
}

.acd-slide-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  width: 100%;
  padding-top: 40px;
}

.acd-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 146, 70, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.45);
  border-radius: var(--radius-full);
  color: #2ecc71;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 146, 70, 0.25);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.6s ease 0.15s;
}

.acd-story-slide.active .acd-slide-badge {
  transform: translateY(0);
  opacity: 1;
}

.acd-slide-title {
  font-size: 2.75rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 20px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, opacity 0.6s ease 0.25s;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.acd-story-slide.active .acd-slide-title {
  transform: translateY(0);
  opacity: 1;
}

.acd-slide-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #d1d5db;
  margin-bottom: 24px;
  max-width: 740px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, opacity 0.6s ease 0.35s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.acd-slide-desc strong {
  color: #ffffff;
  font-weight: 600;
}

.acd-story-slide.active .acd-slide-desc {
  transform: translateY(0);
  opacity: 1;
}

.acd-slide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, opacity 0.6s ease 0.45s;
}

.acd-story-slide.active .acd-slide-pills {
  transform: translateY(0);
  opacity: 1;
}

.acd-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #f3f4f6;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.acd-pill i {
  color: #2ecc71;
  font-size: 1.05rem;
}

.acd-slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s, opacity 0.6s ease 0.55s;
}

.acd-story-slide.active .acd-slide-actions {
  transform: translateY(0);
  opacity: 1;
}

.acd-btn-glow {
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.45), var(--shadow-lg) !important;
  animation: acdBtnPulse 2.4s infinite ease-in-out;
}

@keyframes acdBtnPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(46, 204, 113, 0.4), var(--shadow-lg); }
  50% { box-shadow: 0 0 45px rgba(46, 204, 113, 0.7), 0 0 60px rgba(241, 196, 15, 0.3); }
}

/* Freccia di Navigazione Sinistra / Destra */
.acd-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-fast);
}

.acd-slider-arrow:hover {
  background: var(--accent-primary);
  border-color: #2ecc71;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(46, 204, 113, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.acd-slider-prev {
  left: 24px;
}

.acd-slider-next {
  right: 24px;
}

/* Bottom Bar: Dots & Play/Pause */
.acd-slider-bottom-bar {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.acd-slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.acd-slider-dot {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.acd-slider-dot .dot-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.acd-slider-dot .dot-bar {
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.acd-slider-dot:hover {
  border-color: rgba(46, 204, 113, 0.5);
  color: #fff;
}

.acd-slider-dot.active {
  background: rgba(0, 146, 70, 0.25);
  border-color: #2ecc71;
  color: #2ecc71;
  box-shadow: 0 0 15px rgba(0, 146, 70, 0.3);
}

.acd-slider-dot.active .dot-bar {
  background: linear-gradient(90deg, #2ecc71, #f1c40f);
  width: 32px;
}

.acd-slider-playpause {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.acd-slider-playpause:hover {
  background: var(--accent-primary);
  border-color: #2ecc71;
  transform: scale(1.08);
}

/* Scroll cue */
.acd-slider-scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 12;
  cursor: pointer;
  transition: color var(--transition-fast), transform 0.2s;
}

.acd-slider-scroll-cue:hover {
  color: #2ecc71;
  transform: translateX(-50%) translateY(2px);
}

.acd-slider-scroll-cue i {
  font-size: 1.2rem;
  animation: acdBounce 2s infinite ease-in-out;
}

@keyframes acdBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .acd-slide-title {
    font-size: 2.2rem;
  }
  .acd-slide-desc {
    font-size: 1.05rem;
  }
  .acd-slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .acd-slider-prev { left: 12px; }
  .acd-slider-next { right: 12px; }
}

/* ==========================================================================
   MOBILE HERO STORY SLIDER: FOCALIZZATO SULL'IMMAGINE CON TITOLO E CTA IN BASSO
   Elimina il muro di testo per far risaltare al 100% l'auto su smartphone
   ========================================================================== */
@media (max-width: 991px) {
  .acd-story-slider {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 !important;
    display: flex;
    align-items: flex-end;
  }

  .acd-slide-img {
    object-position: center 28% !important;
  }

  /* Prima slide: inquadratura spostata verso sinistra per inquadrare perfettamente entrambi i soggetti e la stretta di mano */
  .acd-story-slide[data-slide-index="0"] .acd-slide-img,
  .acd-story-slide:first-child .acd-slide-img {
    object-position: 70% 25% !important;
  }

  /* Overlay sfumato: parte superiore e centrale chiara per ammirare l'auto, base scura per il testo */
  .acd-slide-overlay {
    background:
      linear-gradient(to top, rgba(4, 7, 17, 0.96) 0%, rgba(4, 7, 17, 0.72) 35%, rgba(4, 7, 17, 0.1) 62%, rgba(4, 7, 17, 0.35) 100%) !important;
  }

  .acd-slider-top-bar {
    top: 78px;
    padding: 0 16px;
  }

  .acd-slider-tag-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .acd-slider-counter {
    font-size: 0.88rem;
    padding: 4px 12px;
  }

  .acd-slider-counter .counter-current {
    font-size: 1rem;
  }

  /* Ancoraggio del contenuto in basso per lasciare libera la visuale dell'auto */
  .acd-story-slide {
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 72px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .acd-slide-content {
    position: relative !important;
    z-index: 3 !important;
    max-width: 520px !important;
    width: 100% !important;
    padding: 0 6px !important;
    margin: 0 auto !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .acd-slide-content::before,
  .acd-slide-content::after {
    display: none !important;
  }

  /* Badge FASE compatto ed elegante */
  .acd-slide-badge {
    display: inline-flex !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    padding: 5px 12px !important;
    margin-bottom: 8px !important;
    background: rgba(0, 146, 70, 0.25) !important;
    border: 1px solid rgba(46, 204, 113, 0.5) !important;
    border-radius: var(--radius-full) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  /* Titolo della slide compatto e visibile */
  .acd-slide-title {
    font-size: clamp(1.35rem, 4.6vw, 1.65rem) !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 14px !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9) !important;
  }

  /* Nascondi la descrizione lunga e le pillole su mobile: solo immagine, titolo e CTA */
  .acd-slide-desc {
    display: none !important;
  }

  .acd-slide-pills {
    display: none !important;
  }

  /* Call to action flessibili ed ergonomiche su mobile (il testo si adatta sempre senza debordare) */
  .acd-slide-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
  }

  .acd-slide-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 50% !important;
    padding: 9px 10px !important;
    font-size: clamp(0.72rem, 2.7vw, 0.82rem) !important;
    line-height: 1.22 !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    letter-spacing: 0.01em !important;
    gap: 6px !important;
  }

  .acd-slide-actions .btn i {
    font-size: 0.92rem !important;
    flex-shrink: 0 !important;
  }

  .acd-slide-actions .btn span {
    display: inline-block !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .acd-slider-arrow {
    display: none !important; /* Su mobile navigazione via touch swipe e dots */
  }

  .acd-slider-bottom-bar {
    bottom: 14px !important;
    justify-content: center !important;
    padding: 0 16px !important;
  }

  .acd-slider-scroll-cue {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  .acd-slider-dots {
    gap: 4px !important;
  }

  .acd-slider-dot {
    padding: 3px 5px !important;
  }

  .acd-slider-dot .dot-bar {
    width: 12px !important;
    height: 3px !important;
  }

  .acd-slider-dot.active .dot-bar {
    width: 18px !important;
  }

  .acd-slider-playpause {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 360px) {
  .acd-slide-actions {
    flex-direction: column !important;
    gap: 7px !important;
    max-width: 280px !important;
  }
  .acd-slide-actions .btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   DESKTOP HERO SLIDER: MINIMALIST LEFT-ALIGNED LAYOUT WITH THIN FRAMING LINES
   Spazio aperto per supercar / lifestyle con inquadratura minimalista a sinistra
   ========================================================================== */
@media (min-width: 992px) {
  .acd-story-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: clamp(60px, 6.5vw, 110px) !important;
    padding-right: 40px !important;
  }

  .acd-story-slide .acd-slide-content {
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 550px !important;
    width: 100% !important;
    padding: 34px 28px !important;
    position: relative !important;
    background: linear-gradient(135deg, rgba(6, 8, 14, 0.85) 0%, rgba(10, 15, 26, 0.65) 80%, rgba(6, 8, 14, 0.25) 100%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-radius: 4px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45) !important;
  }

  /* Linea superiore sottilissima (inquadra il testo) */
  .acd-story-slide .acd-slide-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, #2ecc71 0%, rgba(255, 255, 255, 0.45) 35%, rgba(46, 204, 113, 0.2) 80%, transparent 100%) !important;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5) !important;
    pointer-events: none !important;
  }

  /* Linea inferiore sottilissima (inquadra le call to action) */
  .acd-story-slide .acd-slide-content::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, #2ecc71 0%, rgba(255, 255, 255, 0.45) 35%, rgba(46, 204, 113, 0.2) 80%, transparent 100%) !important;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5) !important;
    pointer-events: none !important;
  }

  .acd-slide-badge {
    margin-bottom: 16px !important;
  }

  .acd-slide-title {
    font-size: 2.3rem !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }

  .acd-slide-desc {
    display: block !important;
    font-size: 1.02rem !important;
    line-height: 1.62 !important;
    margin-bottom: 20px !important;
    max-width: 490px !important;
  }

  .acd-slide-pills {
    display: flex !important;
    margin-bottom: 24px !important;
    gap: 8px !important;
  }

  .acd-slide-actions {
    gap: 12px !important;
  }

  .acd-slider-prev {
    left: 18px !important;
  }

  /* Overlay alleggerito sul centro-destra per far risaltare al massimo la supercar */
  .acd-slide-overlay {
    background:
      linear-gradient(to right, rgba(6, 8, 14, 0.92) 0%, rgba(6, 8, 14, 0.72) 42%, rgba(6, 8, 14, 0.15) 75%, rgba(6, 8, 14, 0.35) 100%),
      linear-gradient(to top, rgba(6, 8, 14, 0.88) 0%, transparent 35%, rgba(6, 8, 14, 0.6) 100%) !important;
  }
}

