/* ========================================================
   VARIABILI COLORE (OPZIONALI)
======================================================== */
:root {
  --arcademy-bg: #FBFBFB;
  --arcademy-green: #65B2A3;
  --arcademy-green-light: #8CCEC1;
  --arcademy-green-hover: #55998D;
  --arcademy-green-active: #6DA192;
  --arcademy-blue: #2F61A5;
  --arcademy-orange: #E79A2D;
}

/* Layout base */
body {
  background-color: var(--arcademy-bg); /* #f5f7fb; */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Navbar pubblica */
.navbar-brand {
  color: #111827; /* grigio molto scuro leggibile sullo sfondo chiaro */
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #111827;
  text-decoration: none;
}

.navbar .nav-link {
  font-size: 0.95rem;
}

/* Card corsi in home */
.card {
  border-radius: 0.50rem;
  border: 1px solid #e0e4f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.card h2.h5 {
  font-weight: 600;
}

.badge.bg-success {
  background-color: #16a34a !important;
}

/* Tabella corsi */
.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td,
.table th {
  vertical-align: middle;
  font-size: 0.9rem;
}

/* Area riservata */
.sidebar-reserved {
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0;
}

.sidebar-reserved .nav-link {
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.sidebar-reserved .nav-link.active,
.sidebar-reserved .nav-link:hover {
  background-color: #0d6efd;
  color: #ffffff;
}

/* Spaziature dashboard */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Pulsanti Bootstrap base */
.btn-primary {
  border-radius: 999px;
}

/* Responsive piccoli schermi */
@media (max-width: 767.98px) {
  .sidebar-reserved {
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
}

/* Righe anagrafica scheda studente */
.card .row dt,
.card .row dd {
  line-height: 1.4;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  margin-bottom: 0; /* elimina extra spazio sotto */
}

/* Allinea meglio badge e link email */
.card .row dd .badge,
.card .row dd a {
  line-height: 1.2;
}

/* Forza stile base delle modali bootstrap 5 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  background: none;
}

/* quando è aperta (Bootstrap aggiunge .show) */
.modal.show {
  display: block;
}

/* backdrop generato da Bootstrap */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.show {
  opacity: .5;
}

#aiutoModal .modal-dialog {
  width: 95%;
  max-width: 95%;
  margin: 1.5rem auto;
}

#aiutoModal .modal-header {
  border-bottom: none;
  padding: 0;
  position: relative;
  display: block;
}

#aiutoModal .modal-header .btn-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 0.45rem;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.2);
}

#aiutoModal .modal-body {
  padding: 1.5rem;
}

#aiutoModal .aiuto-modal-hero {
  width: 100%;
  height: 100px;
  background: url('/images/hero/hero-aiuto.jpg') center/cover no-repeat;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

#aiutoModal .aiuto-modal-hero h5 {
  margin: 0;
  color: #111;
  font-size: 1.5rem;
}

@media (min-width: 992px) {
  #aiutoModal .modal-dialog {
    width: 50vw !important;
    max-width: 50vw !important;
    margin: 2rem auto;
  }
}

.footer a {
  color: #0F8F73 !important;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: #0C755F !important; /* leggermente più scuro per hover */
}

.footer p {
  text-align: center;
}

div .btn-h1 {
  text-align: center;
}

.btn-h1 {
  display: inline-block;
  text-align: center;
  width: 40%;
  padding: 10px 20px;
  background-color: var(--arcademy-green);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.btn-h1:hover {
  opacity: 0.85;
}

/* ========================================================
   CHI SIAMO – PILASTRI
======================================================== */

.aid-culture .aid-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 143, 115, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.aid-culture .aid-card h3 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1f1f1f;
}

.aid-culture .aid-card .aid-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 143, 115, 0.1);
  color: var(--arcademy-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.aid-culture .aid-card p {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================================
   ACCADEMIA – MODULI
======================================================== */

.module-grid .module-card {
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.module-grid .module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.module-grid .module-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.module-grid h3 {
  color: #1f1f1f;
}

/* ========================================================
   CAFFE PAGE
======================================================== */

.caffe-hero-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.caffe-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f1f1f;
}

.caffe-eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
}

.caffe-video-card {
  border-radius: 16px;
  overflow: hidden;
}

.caffe-video-card .ratio {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.ratio-9x16 {
  --bs-aspect-ratio: calc(16 / 9 * 100%);
}

.caffe-video-card .card-body {
  padding: 1.75rem;
}

.caffe-cta {
  background: #eff8f5;
  border-top: 1px solid rgba(15, 143, 115, 0.1);
  border-bottom: 1px solid rgba(15, 143, 115, 0.1);
}

@media (max-width: 767.98px) {
  .caffe-hero-card-img {
    height: 200px;
  }
  .caffe-video-card .ratio {
    border-radius: 12px 12px 0 0;
  }
}

/* ========================================================
   BASE SETTINGS
======================================================== */

/* Spazio sotto navbar – rimosso in homepage con body.home */
body {
  padding-top: 80px;
}

body.home {
  padding-top: 0 !important;
}

html {
  scroll-behavior: smooth;
}

/* Link base */
a {
  color: var(--arcademy-green);
  text-decoration: none;
  font-weight: 600 !important;
  transition: color .2s ease, opacity .2s ease;
}

/* Hover: più scuro del 15% */
a:hover {
  color: #55998D;
}

/* Active: più scuro del 30% */
a:active {
  color: #6DA192;
}

/* Focus: alone basato sul colore principale */
a:focus {
  outline: 2px solid var(--arcademy-green);
  outline-offset: 3px;
}

/* Visited: tono leggermente desaturato */
a:visited {
  color: var(--arcademy-green);
}

/* ========================================================
   NAVBAR
======================================================== */

.navbar {
  align-items: center !important;
}

.navbar-brand {
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.navbar-brand svg {
  display: block;
  max-height: 48px;
  width: auto;
}

/* Link navbar */
.navbar .nav-link {
  color: #000 !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  height: 40px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--arcademy-green) !important;
}

/* Bottone area riservata */
.navbar .btn {
  background-color: #ffffff !important;
  border: 2px solid var(--arcademy-green) !important;
  color: var(--arcademy-green) !important;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  margin: 0;
  border-radius: 20px;
  font-weight: 500;
}

/* Toggler */
.navbar-toggler {
  border-color: var(--arcademy-green);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link.active {
  color: #6DA192 !important;
  font-weight: 600 !important;
  background-color: rgba(101, 178, 163, 0.12) !important;
  border-left: 4px solid var(--arcademy-green) !important;
  padding-left: 12px !important;
}

.nav-link.active i {
  color: #333333 !important;
}

.navbar-nav {
  color: #333 !important;
}

/* Navbar riservata — link normali */
.navbar .nav-link,
.sidebar .nav-link {
  color: #333 !important;
}

/* Se hai anche icone */
.navbar .nav-link i,
.sidebar .nav-link i {
  color: #333 !important;
}


/* ========================================================
   HERO CAROUSEL
======================================================== */
.hero-header {
  height: 360px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-header {
    height: 260px;
  }
}

/* Carousel base */
#heroCarousel {
  height: 100%;
  width: 100%;
}

/* ========================================
   CAROUSEL FADE - Configurazione principale
======================================== */

/* Contenitore interno */
#heroCarousel.carousel-fade .carousel-inner {
    position: relative;
    height: 100%;
}

/* ✅ TUTTE le slide con fade */
#heroCarousel.carousel-fade .carousel-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transform: none !important;
    transition: opacity 1.2s ease-in-out !important;
    -webkit-transition: opacity 1.2s ease-in-out !important;
    display: block !important;
}

#heroCarousel.carousel-fade .carousel-item.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

#heroCarousel.carousel-fade .carousel-item-next.carousel-item-start,
#heroCarousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1 !important;
    z-index: 1 !important;
}

#heroCarousel.carousel-fade .active.carousel-item-start,
#heroCarousel.carousel-fade .active.carousel-item-end {
    opacity: 0 !important;
    z-index: 1 !important;
}

/* Blocca TUTTI i transform per evitare slide orizzontali */
#heroCarousel.carousel-fade .carousel-item-next,
#heroCarousel.carousel-fade .carousel-item-prev,
#heroCarousel.carousel-fade .carousel-item.active,
#heroCarousel.carousel-fade .active.carousel-item-start,
#heroCarousel.carousel-fade .active.carousel-item-prev {
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
}

/* ========================================
   Contenuto Hero
======================================== */

/* Hero slide background */
#heroCarousel .hero-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay (senza sfondo scuro) */
#heroCarousel .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contenuto centrale */
#heroCarousel .hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    text-align: center;
    width: 90%;
}

.hero-logo {
  max-width: 160px;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #333 !important; 
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-logo {
    max-width: 120px;
  }
}

/* ========================================
   Controlli Carousel
======================================== */

/* Frecce */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  z-index: 15;
  width: 5%;
}

/* Pallini (indicatori) */
#heroCarousel .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

#heroCarousel .carousel-indicators button.active {
    background-color: #fff;
    opacity: 1;
    transform: scale(1.2);
}

#heroCarousel .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}


/* ========================================================
   CARD CORSI (già presenti)
======================================================== */

.compact-card .card-body {
  padding: 1rem 1.1rem;
}

.card-body p:last-of-type {
  margin-bottom: 0.25rem;
}

.compact-card .card-footer {
  padding: 0.75rem 1.1rem;
}

.btn-arcademy {
  background-color: var(--arcademy-green);
  border-color: var(--arcademy-green);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 0.5rem;
}

.btn-arcademy:hover,
.btn-arcademy:focus {
  background-color: #579e90;
  border-color: #579e90;
}

/* ========================================================
   INTRO CARD (TESTO + IMMAGINE)
======================================================== */

.big-card {
  background: #ffffff;
  border-radius: 10px !important;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 575.98px) {
  .big-card .btn,
  .big-card-blue .btn,
  .big-card-network .btn,
  .voucher-box .btn {
    width: 100% !important;
    display: block;
    text-align: center;
  }

  .help-dual .btn {
    width: 100% !important;
    display: block;
    text-align: center;
  }
}

.intro-arcademy {
  max-width: 900px;
}

.intro-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #2F2F2F;
}

.intro-paragraph {
  font-size: 1.15rem;
  color: #4A4A4A;
}

.intro-list {
  max-width: 700px;
  list-style-type: disc;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4A4A4A;
  padding-left: 20px;
}

/* ========================================================
   3 CARD COLORATE (Formazione, Counseling, Network)
======================================================== */

.service-colored-box {
  color: #fff;
  padding: 2rem;
  transition: transform .2s;
}

.service-colored-box:hover {
  transform: translateY(-4px);
}

/* Colori brand Arcademy */
.formazione-box {
  background: #2F61A5;
}

.counseling-box {
  background: var(--arcademy-green);
}

.network-box {
  background: var(--arcademy-orange);
}

.service-title {
  font-weight: 700;
  font-size: 1.4rem;
}

.service-text {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.service-email a {
  color: #fff;
  text-decoration: underline;
}

/* Responsive icone / testi */
@media (max-width: 768px) {
  .intro-title {
    font-size: 1.6rem;
  }
  .intro-paragraph {
    font-size: 1.05rem;
  }
}

/* ========================================================
   BOX & CARD VARI
======================================================== */

.arc-box {
  background: #8CCEC1;
  color: #1F1F1F;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  transition: transform .2s ease;
}

.arc-box:hover {
  transform: translateY(-6px);
}

.arc-box-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.arc-box a {
  color: #1F1F1F;
  text-decoration: underline;
}

.arc-box-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* PREMIUM CARD */
.premium-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transition: all .25s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* ICONA PREMIUM */
.premium-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #E79A2D;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.15);
    */
}

.premium-icon i {
  font-size: 28px;
  color: #ffffff;
}

/* TITOLO */
.premium-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

/* DIVIDER SOTTO IL TITOLO */
.premium-divider {
  width: 50px;
  height: 2px;
  background: #8CCEC1;
  border-radius: 20px;
  margin: 0.5rem auto 1.2rem;
  opacity: .85;
}

/* TESTO */
.premium-text {
  color: #3A3A3A;
  font-size: 1rem;
  line-height: 1.6;
}

/* EMAIL */
.premium-email a {
  color: #0f8f73ff;
  text-decoration: none;
  font-weight: 600;
}

.premium-email a:hover {
  text-decoration: underline;
}

/* RESPONSIVE premium */
@media (max-width: 768px) {
  .premium-icon {
    width: 70px;
    height: 70px;
  }
  .premium-icon i {
    font-size: 32px;
    color: #ffffff;
  }
  .premium-card .btn {
    width: 100%;
  }
}

/* BIG CARD ORANGE */
.big-card-orange {
  background-color: var(--arcademy-orange);
  border-radius: 20px;
  color: #ffffff;
}

.big-card-orange .intro-title {
  color: #ffffff;
}

.big-card-orange .intro-paragraph,
.big-card-orange p,
.big-card-orange li {
  color: #ffffff;
}

.big-card-orange a {
  color: #ffffff;
  text-decoration: underline;
}

.big-card-orange a:hover {
  opacity: 0.85;
}

/* HEADER CORSI ATTIVI */
.courses-header {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px;
  margin-bottom: 40px;
}

.courses-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2F2F2F;
  margin-bottom: 0.5rem;
}

.courses-subtitle {
  font-size: 1.15rem;
  color: #4A4A4A;
}

.course-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(200px, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: #fff;
}

.course-row__preview {
  min-width: 0;
}

.course-row__image {
  flex: 0 0 110px;
}

.course-row__image img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.course-row__badge {
  display: inline-block;
  background: #2f8f68;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 0.25rem;
}

.course-row__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.course-row__code {
  color: #6c757d;
  margin-bottom: 0.35rem;
}

.course-row__details {
  min-width: 0;
}

.course-row__meta {
  color: #444;
  margin-bottom: 0.6rem;
}

.course-row__dates {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.95rem;
  color: #222;
}

.course-row__deadline {
  margin-top: 0.15rem;
}

.course-row__cta {
  justify-self: end;
}

.course-row__cta .btn {
  border-radius: 999px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .course-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .course-row__cta {
    width: 100%;
    margin-top: 1rem;
  }

  .course-row__cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Mobile tuning corsi */
@media (max-width: 768px) {
  .courses-title {
    font-size: 1.8rem;
  }
  .courses-subtitle {
    font-size: 1.05rem;
  }
}

/* CARD FULL WIDTH COME LE TUE BIG-CARD ORIGINALI */
.big-card-approach {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  width: 100%;
}

/* LOGO */
.acc-logo {
  height: 38px;
  width: auto;
}

.acc-label {
  font-size: 0.95rem;
  color: #666;
}

/* TITOLO */
.approach-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #333;
}

/* TESTO */
.big-card-approach p,
.big-card-approach ul li {
  font-size: 0.90rem;
  line-height: 1.6;
  color: #444;
}

/* LISTE */
.big-card-approach ul {
  padding-left: 20px;
  list-style: disc;
}

.big-card-approach ul li::marker {
  color: #E79A2D;
}

li::marker {
  color: #E79A2D;
}

/* BOTTONE APPROACH */
.btn-approach {
  background-color: var(--arcademy-green);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
}

.btn-approach:hover {
  background-color: #579e90;
}

/* RESPONSIVE approach */
@media (max-width: 768px) {
  .approach-title {
    font-size: 1.55rem;
  }
  .acc-logo {
    height: 30px;
  }
}

/* --- BLOCCO 1 : HERO AIUTO --- */

.help-hero {
  background-color: var(--arcademy-blue);
  border-radius: 10px;
  padding: 3rem 2rem;
  color: #fff;
}

.help-hero img {
  border-radius: 14px;
}

.big-card-blue {
  background-color: var(--arcademy-blue);
  border-radius: 10px;
  color: #fff;
}

.big-card-blue img {
  border-radius: 16px;
}

/* --- BLOCCO 2 : TESTO DUE COLONNE SUPER ENFATIZZATO --- */

.help-dual,
.voucher-box {
  background: #ffffff;
  border-radius: 22px;
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.help-dual h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2F2F2F;
}

.help-highlight {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--arcademy-blue);
}

.help-dual p,
.help-dual li {
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
}

.help-call {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--arcademy-blue);
  text-align: center;
  margin: 1.5rem 0;
}

.btn-help,
a.btn-help {
  background-color: var(--arcademy-blue) !important;
  border-color: var(--arcademy-blue) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 999px;
  font-size: 1rem;
  transition: .2s;
}

.btn-help:hover,
a.btn-help:hover {
  background-color: #244f86 !important;
  border-color: #244f86 !important;
  color: #fff !important;
}

/* --- BLOCCO 3 : VOUCHER BOX --- */

.voucher-box {
  background: #fff;
  border-radius: 10px;
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.voucher-box img {
  border-radius: 14px;
}

.btn-voucher {
  background-color: var(--arcademy-blue);
  border-color: var(--arcademy-blue);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-voucher:hover {
  background-color: #244f86;
  border-color: #244f86;
  color: #FFF;
}

/* Responsive help/voucher */
@media (max-width: 768px) {
  .help-highlight {
    font-size: 1.2rem;
  }
  .help-dual h2 {
    font-size: 1.8rem;
  }
}

.big-card-network {
  background-color: #6DA192;
  border-radius: 10px;
  color: #fff;
  margin-top: 50px;
}

.big-card-network img {
  border-radius: 16px;
}

/* Card bianca come le altre (ombra e bordi stondati) */
.donation-card {
  background: #FFF;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Pulsante pieno: verde Arcademy */
.btn-donate-full {
  background-color: var(--arcademy-green-light);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
}

.btn-donate-full:hover {
  background-color: #78b9ad;
  color: #fff;
}

/* Pulsante outline */
.btn-donate-outline {
  background-color: transparent;
  color: #2F2F2F;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 2px solid #2F2F2F;
}

.btn-donate-outline:hover {
  background-color: #2F2F2F;
  color: #fff;
}

.code-box-wrapper {
  text-align: center;
  width: 100%;
}

.code-box {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2F2F2F;
  background-color: #ffffff;
  border: 2px solid var(--arcademy-green);
  border-radius: 14px;
  letter-spacing: 5px;
  margin-bottom: 15px;
}

.donation-icon {
  font-size: 3rem;
  color: var(--arcademy-green);
  display: block;
}

.footer-social-buttons {
  padding: 1rem 0;
}

.social-buttons-container {
  gap: 0.4rem;
}

/* BOTTONI SOCIAL PICCOLI */
.social-btn.small {
  background-color: var(--arcademy-green);
  color: #ffffff;
  padding: 0.55rem 1.2rem;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

.social-btn.small i {
  font-size: 1.1rem;
}

/* Hover social */
.social-btn.small:hover {
  background-color: #5a8a7c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
  .social-btn.small {
    width: 46px;
    height: 46px;
    padding: 0.55rem;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }

  .social-btn.small span {
    display: none;
  }
}

/* BTN iscrizione */
.btn-iscrizione {
  background-color:#78b9ad;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-iscrizione:hover {
  background-color: #FFF;
  color: #78b9ad !important;
  transform: translateY(-2px);
  text-decoration: none !important;
  border: 1px solid #78b9ad !important;
}

.btn-iscrizione:active {
  transform: scale(0.98);
}

/* Bottone piccolo nell'hero */
.btn-iscrizione-hero {
  background-color: var(--arcademy-green);
  color: #ffffff;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 40px;
  border: none;
  text-decoration: none;
  display: inline-block;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-iscrizione-hero:hover {
  background-color: #78b9ad;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ----------------------------- */
/*   CARD come in home           */
/* ----------------------------- */
.card.table-card {
  border-radius: 14px;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* Header card */
.card.table-card .card-header {
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
}

/* Body card */
.card.table-card .card-body {
  padding: 0;
}

/* ----------------------------- */
/*   TABELLA stile home          */
/* ----------------------------- */
.table-clean th {
  background: #F4F6F8 !important;
  padding: 10px 16px !important;
  font-weight: 600;
  font-size: 0.78rem;
  color: #4B5563;
  text-transform: uppercase;
  border-bottom: 1px solid #E5E7EB !important;
}

.table-clean td {
  padding: 8px 16px !important;
  border-bottom: 1px solid #F1F3F5;
  font-size: 0.9rem;
  color: #111827;
}

/* Righe studenti leggermente più sottili */
.table-students td {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.table-students th {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Hover riga */
.table-clean tbody tr:hover {
  background: #F9FAFB;
}

/* ----------------------------- */
/*   Avatar                      */
/* ----------------------------- */
.table-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------- */
/* modifiche layout.             */
/* ----------------------------- */

.select-highlight {
  border: 2px solid var(--arcademy-green) !important;
  background-color: #F7FAFF !important;
  border-radius: 10px !important;
  box-shadow: 0 0 0 3px rgba(47, 97, 165, 0.1);
  transition: all 0.2s ease-in-out;
}

.select-highlight:focus {
  border-color: var(--arcademy-green) !important;
  box-shadow: 0 0 0 4px rgba(47, 97, 165, 0.2);
}

.search-highlight {
  border: 2px solid var(--arcademy-green) !important;
  background-color: #F8FBFF !important;
  border-radius: 10px !important;
  padding-left: 16px !important;
  height: 46px !important;
  transition: all 0.2s ease-in-out;
}

.search-highlight::placeholder {
  color: #7A8CA5 !important;
}

.search-highlight:focus {
  border-color: var(--arcademy-green-active) !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 4px rgba(101, 178, 163, 0.18);
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:active {
  color: #000 !important;
}

main.content {
  margin-top: 20px;
}

.btn-logout {
  background-color: var(--arcademy-orange) !important;
  color: #fff !important;
  padding: 6px 18px;
  border-radius: 50px !important;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  border: none !important;
}

.btn-logout:hover {
  background-color: #55998D !important;
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

.btn-logout:active {
  background-color: #000000 !important;
  transform: scale(.98);
}

/* ------------------------------------------ */
/*  VERSIONE MOBILE DELLA TABELLA STUDENTI    */
/* ------------------------------------------ */

/* Nascondi la tabella normale solo su mobile */
@media (max-width: 768px) {
  .table-students {
    display: none;
  }
}

/* Contenitore card-list */
@media (max-width: 768px) {
  .student-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .student-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .student-info {
    flex: 1;
    margin-left: 10px;
  }

  .student-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 18px;
  }

  .student-body div {
    font-size: 0.9rem;
    margin-top: 4px;
    color: #374151;
  }

  .student-body span.label {
    font-weight: 600;
    color: #6B7280;
    margin-right: 4px;
  }
}

/* Rimuove spazio superiore generato da AdminKit */
.content {
  padding-top: 0 !important;
}

.content-inner {
  padding-top: 0 !important;
}

@media (min-width: 577px) {
  .btn-iscrizione,
  .btn-iscrizione-hero {
    width: auto !important;
    display: inline-block;
  }
}

@media (max-width: 576px) {
  .content,
  .container,
  .container-fluid,
  .content .container-fluid {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  main.content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .row {
    --bs-gutter-x: 10px;
  }

  .btn-iscrizione,
  .btn-iscrizione-hero {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
  }
}
/* Mobile heading tweaks */
@media (max-width: 576px) {
  .card-header h3,
  .card-header h5 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  dl.row dt {
    flex: 0 0 100%;
    text-align: left;
    margin-bottom: 0.25rem;
  }

  dl.row dd {
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }
}

/* ========================================================
   BUTTONS GLOBALI ARCADEMY
   (.btn outline di default, .btn-primary pieno)
======================================================== */

.btn {
  border-radius: 50px;
  border-width: 2px;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* Default: outline verde */
.btn:not(.btn-primary):not(.btn-success):not(.btn-outline-danger),
a.btn:not(.btn-primary):not(.btn-success):not(.btn-outline-danger) {
  background-color: transparent;
  color: var(--arcademy-green);
  border: 2px solid var(--arcademy-green);
}

/* Hover outline */
.btn:not(.btn-primary):not(.btn-success):not(.btn-outline-danger):hover,
a.btn:not(.btn-primary):not(.btn-success):not(.btn-outline-danger):hover {
  background-color: var(--arcademy-green);
  color: #fff;
  border-color: var(--arcademy-green);
}

/* PRIMARY pieno */
.btn-primary,
a.btn-primary {
  background-color: var(--arcademy-green);
  border-color: var(--arcademy-green);
  color: #fff !important;
}

.btn-primary:hover,
a.btn-primary:hover {
  background-color: var(--arcademy-green-hover);
  border-color: var(--arcademy-green-hover);
}

.btn-primary:active,
a.btn-primary:active {
  background-color: var(--arcademy-green-active) !important;
  border-color: var(--arcademy-green-active) !important;
}

.btn:active,
a.btn:active,
.btn.active,
a.btn.active,
.btn-check:checked + .btn,
.btn-check:active + .btn,
.show > .btn.dropdown-toggle {
  background-color: var(--arcademy-green-active) !important;
  border-color: var(--arcademy-green-active) !important;
  color: #fff;
}

.btn-primary:focus,
a.btn-primary:focus {
  box-shadow: 0 0 0 4px rgba(101, 178, 163, 0.35);
}

.btn-primary:disabled {
  background-color: #A7D4CB;
  border-color: #A7D4CB;
  color: #fff;
  opacity: .65;
}

/* OUTLINE PRIMARY */
.btn-outline-primary {
  border: 2px solid var(--arcademy-green);
  color: var(--arcademy-green);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--arcademy-green);
  border-color: var(--arcademy-green);
  color: #fff;
}

/* SUCCESS (outline-style) */
.btn-success,
.btn-outline-success {
  border-color: var(--arcademy-green);
  color: var(--arcademy-green);
  background: transparent;
}

.btn-success:hover,
.btn-outline-success:hover {
  background-color: var(--arcademy-green);
  color: #fff;
}

/* DANGER OUTLINE */
.btn-outline-danger {
  border-color: var(--bs-danger) !important;
  color: var(--bs-danger) !important;
}

.btn-outline-danger:hover {
  background-color: var(--bs-danger) !important;
  color: #fff !important;
}

/* ========================================================
   TITOLI & BOTTONI SPECIALI
======================================================== */

h1 {
  color: var(--arcademy-green);
}

.btn-h1 {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--arcademy-green);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.btn-h1:hover {
  opacity: 0.85;
  color: #FFF;
}

.alert-info {
  color: var(--arcademy-green-active) !important;
}

.title-success {
  color: var(--arcademy-green-active) !important;
  font-weight: 700;
}

/* Bottone accademia in hero arancione */
.btn-accademia,
a.btn-accademia {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-accademia:hover,
a.btn-accademia:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
}




/* --- Menu mobile: area utente ordinata --- */
  @media (max-width: 992px) {

    .navbar-nav {
      width: 100%;
      padding: 1rem;
    }

    /* Forza tutti gli elementi a disposizione verticale ordinata */
    .navbar-nav .nav-item {
      width: 100%;
      margin: 0.4rem 0;
      text-align: left;
    }

    /* "Benvenuto, Nome" */
    .navbar-nav .nav-item.user-welcome {
      font-size: 1.1rem;
      font-weight: 600;
      margin-top: 1rem;
      display: inline-block;
    }

    /* Bottone logout */
    .navbar-nav .btn-logout {
      display: inline-flex;
      align-items: left;
      gap: 6px;
      border: 2px solid #78b9ad;
      padding: 10px 18px;
      border-radius: 40px;
      display:block;

    }

    /* "Vai al sito" */
    .navbar-nav .nav-link.go-site {
      font-weight: 600;
      margin-top: 0.4rem;
    }
  }

  .navbar .btn {
    margin-left: 10px;
  }
.shadow-card {
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 143, 115, 0.08);
}
