/* ═══════════════════════════════════════════════
   GENERAL
   ═══════════════════════════════════════════════ */
body {
  font-family: "Open Sans", sans-serif;
  color: #444;
  /* CORREZIONE: layout flex per footer sticky */
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  font-size: 1.2rem;
}

html, body {
  height: 100%;
}

img {
  max-width: 100%;
  height: auto !important; /* Forza il browser a ricalcolare l'altezza in base alla larghezza */
  object-fit: cover;       /* Opzionale: ritaglia l'immagine per riempire lo spazio senza distorcerla */
}

a { color: #006fbe; }
a:hover { color: #008df1; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: "Raleway", sans-serif; }
.text-justify p {text-align:justify; line-height:1.8 }

/* ═══════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  display: none;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
}

.back-to-top i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  background: #006fbe;
  color: #fff;
  transition: all 0.4s;
}

.back-to-top i:hover { background: #0087e7; }

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
#header {
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  /*box-shadow: 0px 2px 15px rgba(36, 50, 93, 0.06);*/
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

#header .logo { font-size: 28px; margin: 0; padding: 0; line-height: 1; font-weight: 600; }
#header .logo a { color: #24325d; }
#header .logo img { max-height: 80px; }

/* ═══════════════════════════════════════════════
   DESKTOP NAV
   ═══════════════════════════════════════════════ */
.nav-menu ul { margin: 0; padding: 0; list-style: none; }
.nav-menu > ul { display: flex; }
.nav-menu > ul > li { position: relative; white-space: nowrap; padding: 10px 0 10px 28px; }
.nav-menu a { display: block; position: relative; color: #24325d; transition: .3s; font-size: 15px; font-weight: 500; font-family: "Poppins", sans-serif; }
.nav-menu a:hover,
.nav-menu .active > a,
.nav-menu li:hover > a { color: #006fbe; }

/* CORREZIONE: graffa di chiusura mancante aggiunta */
.nav-menu .drop-down ul {
  display: block;
  position: absolute;
  left: 15px;
  top: calc(100% + 30px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  padding: 10px 0;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: .3s;
}

.nav-menu .drop-down:hover > ul { opacity: 1; top: 100%; visibility: visible; }
.nav-menu .drop-down li { min-width: 180px; position: relative; }
.nav-menu .drop-down ul a { padding: 10px 20px; font-size: 14px; font-weight: 500; color: #24325d; }
.nav-menu .drop-down ul a:hover,
.nav-menu .drop-down ul .active > a,
.nav-menu .drop-down ul li:hover > a { color: #006fbe; }
.nav-menu .drop-down > a:after { content: "\ea99"; font-family: IcoFont; padding-left: 5px; }

/* ═══════════════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════════════ */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav-toggle i { color: #24325d; }

.mobile-nav {
  position: fixed;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 9999;
  overflow-y: auto;
  background: #fff;
  transition: ease-in-out 0.2s;
  opacity: 0;
  visibility: hidden;
  border-radius: 10px;
  padding: 10px 0;
}

.mobile-nav * { margin: 0; padding: 0; list-style: none; }
.mobile-nav a { display: block; position: relative; color: #24325d; padding: 10px 20px; font-weight: 500; outline: none; }
.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a { color: #006fbe; text-decoration: none; }
.mobile-nav .drop-down > a:after { content: "\ea99"; font-family: IcoFont; padding-left: 10px; position: absolute; right: 15px; }
.mobile-nav .active.drop-down > a:after { content: "\eaa1"; }
.mobile-nav .drop-down > a { padding-right: 35px; }
.mobile-nav .drop-down ul { display: none; overflow: hidden; }
.mobile-nav .drop-down li { padding-left: 20px; }

.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 9997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(22, 30, 56, 0.6);
  overflow: hidden;
  display: none;
  transition: ease-in-out 0.2s;
}

.mobile-nav-active { overflow: hidden; }
.mobile-nav-active .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav-active .mobile-nav-toggle i { color: #fff; }



/* forza tutti i layer carousel a 100vh */
.about .img-fluid {
  max-width: 100%;
  height: auto;
  /* Impedisce all'immagine di ingrandirsi oltre i suoi pixel reali */
  width: auto; 
}

/* ═══════════════════════════════════════════════
   HERO CAROUSEL - FIX BOTTONI E ALTEZZA
   ═══════════════════════════════════════════════ */

/* 1. Contenitore principale */
#hero {
  width: 100%;
  height: calc(100vh - 450px) !important; 
  background-color: #fff; 
  overflow: hidden;
  position: relative;
  display: block;
  flex-shrink: 0;
  margin-bottom: 0 !important;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  height: 100% !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

#hero .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
  filter: brightness(1.15) contrast(1.05) saturate(1.25);
}

/* 2. Overlay con z-index basso per non coprire i bottoni */
#hero .carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
  z-index: 1; 
}

/* 3. FIX BOTTONI: z-index alto e posizionamento forzato */
#hero .carousel-control-prev,
#hero .carousel-control-next {
	display: none !important;
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  background: rgba(0, 111, 190, 0.4); /* Più visibile */
  font-size: 30px;
  border-radius: 50%;
  padding: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4. Indicatori (puntini in basso) */
#hero .carousel-indicators {
  z-index: 15;
  bottom: 0px; /* Alzati leggermente per altezze ridotte */
}

#hero .carousel-indicators li {
  cursor: pointer;
  background: #006fbe;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.4;
  border: none;
}

#hero .carousel-indicators li.active { opacity: 1; }

/* 5. Transizione Fade */
#hero .carousel-inner .carousel-item { transition: opacity 2.5s ease-in-out; }
#hero .carousel-inner .carousel-item,
#hero .carousel-inner .active.carousel-item-left,
#hero .carousel-inner .active.carousel-item-right { opacity: 0; }
#hero .carousel-inner .active,
#hero .carousel-inner .carousel-item-next.carousel-item-left,
#hero .carousel-inner .carousel-item-prev.carousel-item-right { opacity: 1; }
#hero .carousel-inner .carousel-item-next,
#hero .carousel-inner .carousel-item-prev,
#hero .carousel-inner .active.carousel-item-left,
#hero .carousel-inner .active.carousel-item-right { left: 0; transform: translate3d(0, 0, 0); }

/* 6. Responsive */
@media (max-width: 992px) {
  #hero, #hero .carousel, #hero .carousel-inner, #hero .carousel-item { height: 50vh !important; }
}
@media (max-width: 768px) {
  #hero, #hero .carousel, #hero .carousel-inner, #hero .carousel-item { height: 40vh !important; }
}

/* Fix strutturali per eliminare spazi blu tra le sezioni del sito */
.carousel { margin-bottom: 0 !important; }
#main { margin-top: 0px !important; }
#intro-level-1 { margin-top: 0 !important; padding-top: 0px; }

/* ═══════════════════════════════════════════════
   SECTIONS GENERAL
   ═══════════════════════════════════════════════ */
section { padding: 60px 0; }
.section-bg { background-color: #b4e0ff; }
.section-title { text-align: center; padding-bottom: 30px; color: #1e2d4a;}
.section-title h2 { font-size: 32px; font-weight: bold; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 20px; position: relative; }
.section-title h2::before { content: ''; position: absolute; display: block; width: 120px; height: 1px; background: #ddd; bottom: 1px; left: calc(50% - 60px); }
.section-title h2::after { content: ''; position: absolute; display: block; width: 40px; height: 3px; background: #006fbe; bottom: 0; left: calc(50% - 20px); }
.section-title p { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about .content h3 { font-weight: 600; font-size: 26px; }
.about .content ul { list-style: none; padding: 0; }
.about .content ul li { padding-left: 28px; position: relative; }
.about .content ul li + li { margin-top: 10px; }
.about .content ul i { position: absolute; left: 0; top: 2px; font-size: 20px; color: #006fbe; line-height: 1; }
.about .content p:last-child { margin-bottom: 0; }


.about .content .btn-learn-more {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 5px;
  transition: .3s;
  line-height: 1;
  color: #006fbe;
  margin-top: 6px;
  border: 2px solid #006fbe;
}

.about .content .btn-learn-more:hover { background: #006fbe; color: #fff; text-decoration: none; }

#about h4 { text-align: center; }
#about p { line-height: 1.8; text-align: justify; }


/* ═══════════════════════════════════════════════
   PAYOFF
   ═══════════════════════════════════════════════ */
#payoff h3 { line-height: 2.5; }

/* ═══════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════ */
.features .icon-box { margin-bottom: 20px; text-align: center; }
.features .icon { display: flex; justify-content: center; }

.features .icon i {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 50%;
  transition: .5s;
  color: #006fbe;
  font-size: 40px;
  overflow: hidden;
  padding-top: 20px;
  box-shadow: 0px 0 25px rgba(0, 0, 0, 0.15);
}

.features .icon-box:hover .icon i { box-shadow: 0px 0 25px rgba(0, 111, 190, 0.3); }
.features .title { font-weight: 600; margin-bottom: 15px; font-size: 18px; position: relative; padding-bottom: 15px; }
.features .title a { color: #444; transition: .3s; }
.features .title a:hover { color: #006fbe; }
.features .title::after { content: ''; position: absolute; display: block; width: 50px; height: 2px; background: #006fbe; bottom: 0; left: calc(50% - 25px); }
.features .description { line-height: 24px; font-size: 14px; }

/* ═══════════════════════════════════════════════
   MEMBERS
   ═══════════════════════════════════════════════ */
.members .member { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.members .member-img img { width: 100%; }
.members .member-info { padding: 20px; }
.members .member-info h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }

.member-info h4 { text-align: center; }
.member-info p { font-style: normal !important; line-height: 2.5; text-align: justify; font-size: 1rem !important; }

/* ═══════════════════════════════════════════════
   CARDS PERCORSI
   ═══════════════════════════════════════════════ */
.event-list .card { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: .3s; width: 100%; }
.event-list .card:hover { box-shadow: 0 4px 20px rgba(0, 111, 190, 0.12); transform: translateY(-3px); }
.event-list .card img { width: 100%; height: 220px; object-fit: cover; }
.event-list .card-title a { color: #24325d; font-weight: 600; }
.event-list .card-title a:hover { color: #006fbe; }

/* ═══════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════ */
.cta-section { /*background: #006fbe;*/background: #1e2d4a; color: #fff; padding: 60px 0; margin: 60px 0;text-align: center; }
.cta-section h3 { font-size: 28px; margin-bottom: 12px; }
.cta-section p { margin-bottom: 24px; opacity: .92; }
.btn-rounded { border-radius: 50px; }

/* ═══════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════ */
#breadcrumbs {   
  display:none;
  position: relative;      
  padding: 20px 0 !important;  
  min-height: 20px !important;
  margin-top: 10px !important;
  
  background: linear-gradient(rgba(36, 50, 93, 0.8), rgba(36, 50, 93, 0.8)),
    url("../img/carousel3.webp") center/cover no-repeat;
}
#breadcrumbs h2 { 
  display:none;
  font-size: 26px !important; 
  font-weight: 700 !important; 
  color: #fff !important; 
  line-height: 1.2 !important;  
  margin-bottom: 10px !important;
}

/* Ol e LI uniformi */
#breadcrumbs ol { 
  display:none;
  /*display: flex !important; */
  flex-wrap: wrap; 
  list-style: none; 
  padding: 0 !important; 
  margin: 0 !important; 
  font-size: 1.1rem !important;  
}

#breadcrumbs ol li { padding: 0; }
#breadcrumbs ol li + li { padding-left: 10px; }
#breadcrumbs ol li + li::before { 
  display: inline-block; 
  padding-right: 10px; 
  color: rgba(255, 255, 255, .6); 
  content: "/"; 
}
#breadcrumbs ol li a { color: rgba(255, 255, 255, .85) !important; }
#breadcrumbs ol li:last-child { color: #fff !important; }

/* RESPONSIVE: mobile + fullscreen */
@media (max-width: 768px) {
  #breadcrumbs { 
    padding: 80px 0 !important; 
    margin-top: 90px !important; 
    min-height: 100px !important;
  }
  #breadcrumbs h2 { font-size: 22px !important; }
}

@media screen and (display-mode: fullscreen) {
  #breadcrumbs { margin-top: 0 !important; padding-top: 140px !important; }
}

/* ═══════════════════════════════════════════════
   INNER PAGE
   ═══════════════════════════════════════════════ */
.inner-page { margin-top:100px; padding: 60px 0; }
.inner-page h3 { font-size: 26px; font-weight: 700; color: #24325d; margin-bottom: 20px; }
.inner-page h4 { font-size: 18px; font-weight: 600; color: #24325d; margin-top: 30px; margin-bottom: 10px; }
.inner-page ul { padding-left: 0; list-style: none; }
.inner-page ul li { /*margin-bottom: 10px;*/ margin: 20px 0; padding-left: 15px; }

.card-body{ text-align:justify; }

.email-mask { cursor: pointer; }
.email-mask::before { content: "info@"; }
.email-mask::after { content: "echolos.it"; }

.phone-number {   font-family: monospace;  }
.phone-number::before { content: "+39 "; }
.phone-number::after { content: "351 955 51 79"; }
.phone-number span { display: none; } 	

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
#footer {
  padding: 40px 0 30px;
  /*background: #1e2d4a;*/
}

#footer .copyright { font-size: .85rem; text-align: center; margin-top: 10px; }
#footer .copyright a { /*color: rgba(255, 255, 255, .7);*/ text-decoration: underline; }
#footer .disclaimer { font-size: .75rem; /*color: rgba(255, 255, 255, .5);*/ text-align: center; /*max-width: 700px;*/ margin: 0 auto; line-height: 1.6; }

footer#footer { flex-shrink: 0; }
#footer .container img { max-height: 80px; }
.footer-logo { display: flex; justify-content: center; }

/* ═══════════════════════════════════════════════
   DISCLAIMER BAR
   ═══════════════════════════════════════════════ */
.disclaimer-bar {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 10px 0;
  font-size: .78rem;
  color: #999;
  text-align: center;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   HEADER SCROLLED
   ═══════════════════════════════════════════════ */
/*.header-scrolled { box-shadow: 0px 2px 20px rgba(36, 50, 93, .12) !important; }*/

/* ═══════════════════════════════════════════════
   CONTACT INFO
   ═══════════════════════════════════════════════ */
.contact-info li { font-size: 2.5rem; }
.contact-info a { color: #006fbe; }

.inner-page ul.privacy-list {
  list-style-type: disc !important;
  list-style-position: outside;
  padding-left: 25px !important;
  margin-left: 0;
}

.inner-page ul.privacy-list li {
  display: list-item !important;
  padding-left: 0 !important;
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════
   CARD PAGINA CORSI
   ═══════════════════════════════════════════════ */
/* Allineamento label in fondo alla card */
.card-body {
  display: flex;
  flex-direction: column;
}

.card-body .badge {
  margin-top: auto;      /* Spinge la label in fondo */
  align-self: flex-start; /* Evita che la label si allarghi a tutta larghezza */
  margin-bottom: 10px;   /* Spazio opzionale rispetto al bordo inferiore */
}

.card-img-top {
  width: 100%;
  height: 200px;       /* Mantieni un'altezza fissa se vuoi uniformità */
  object-fit: cover;    /* QUESTA È LA CHIAVE: taglia i bordi dell'immagine invece di schiacciarla */
  object-position: center; 
}