@charset "utf-8";
/* CSS Document */

/* ==========================================================================
   1. MENU / NAVBAR
   ========================================================================== */
.navbar {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 60px;
  border: 0;
  transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
}

.navbar > .container {
  align-items: stretch;
  min-height: 50px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 1.125rem;
  text-decoration: none;
}

.navbar-brand img {
  max-height: 80px; /* Regola questo valore per modificare l'altezza del logo */
  width: auto;
}

.navbar-nav .nav-link,
.navbar-nav .nav-item.en .nav-link {
  transition: color 300ms ease-in-out, background-color 300ms ease-in-out;
}

/* Desktop (da 992px in su): i link occupano tutta l'altezza della barra */
@media (min-width: 992px) {
  .navbar-collapse,
  .navbar-nav,
  .navbar-nav .nav-item {
    display: flex;
    align-items: stretch;
  }

  .navbar-nav .nav-link,
  .navbar-nav .nav-item.en .nav-link {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Mobile e tablet (sotto 992px) */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link,
  .navbar-nav .nav-item.en .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Stato di default: sfondo blu scuro #211f60 (pagine interne e dopo lo scroll) */
.navbar.fixed-top {
  background-color: #211f60;
  z-index: 1030;
}

.navbar .navbar-nav .nav-link {
  color: #afd4e8;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active {
  color: #ffffff;
  background-color: #1b143a;
}

/* Pulsante ITALIAN (.en) nello stato di default */
.navbar .navbar-nav .nav-item.en .nav-link {
  background-color: #f44336;
  color: #ffffff;
}

.navbar .navbar-nav .nav-item.en .nav-link:hover,
.navbar .navbar-nav .nav-item.en .nav-link:focus,
.navbar .navbar-nav .nav-item.en .nav-link.active {
  background-color: #d32f2f;
  color: #ffffff;
}

/* Stato con classe .color: navbar chiara semitrasparente (es. Home e TEFL) */
.navbar.fixed-top.color {
  background-color: rgba(255, 255, 255, 0.7);
}

.navbar.color .navbar-nav .nav-link {
  color: #211f60;
  background-color: transparent;
}

.navbar.color .navbar-nav .nav-link:hover,
.navbar.color .navbar-nav .nav-link:focus,
.navbar.color .navbar-nav .nav-link.active {
  color: #ffffff;
  background-color: #1b143a;
}

/* Pulsante .en quando la navbar ha .color */
.navbar.color .navbar-nav .nav-item.en .nav-link {
  background-color: transparent;
  color: #f44336;
}

.navbar.color .navbar-nav .nav-item.en .nav-link:hover,
.navbar.color .navbar-nav .nav-item.en .nav-link:focus,
.navbar.color .navbar-nav .nav-item.en .nav-link.active {
  background-color: #d32f2f;
  color: #ffffff;
}

/* Pulsante Hamburger Mobile */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  align-self: center;
}

.navbar:not(.color) .navbar-toggler-icon {
  filter: invert(1);
}

.navbar.color .navbar-toggler {
  border-color: rgba(33, 31, 96, 0.4);
}

.navbar.color .navbar-toggler-icon {
  filter: none;
}

/* Dropdown Menus (Corsi) */
.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 0;
}

.dropdown-menu .dropdown-divider {
  border-top: 1px solid #e5e5e5;
}

.dropdown-menu .dropdown-item {
  color: #333333;
  padding: 5px 20px;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  color: #ffffff;
  background-color: #0081c2;
  background-image: linear-gradient(to bottom, #0088cc, #0077b3);
}


/* ==========================================================================
   2. HERO CAROUSEL & ANIMAZIONI
   ========================================================================== */
.hero-slider .carousel-item {
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  background-color: #211f60;
  position: relative;
  overflow: hidden; /* Evita sbordamenti durante lo zoom Ken Burns */
}

.hero-slider .hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1);
  transition: transform 6s ease-out;
}

.hero-slider .carousel-item.active .hero-media {
  transform: scale(1.06);
}

/* Sfumatura scura per migliorare la leggibilità dei testi */
.hero-slider .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(27, 20, 58, 0.72) 0%,
    rgba(27, 20, 58, 0.35) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.hero-slider .carousel-caption {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  padding-top: 60px; /* Evita che i testi finiscano sotto la navbar */
}

.hero-badge {
  display: inline-block;
  background-color: #211f60;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-list {
  list-style: none;
  padding-left: 0;
}

.hero-list li {
  font-size: 1.35rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Stato iniziale testi prima che la slide diventi attiva */
.hero-slider .carousel-caption .hero-badge,
.hero-slider .carousel-caption .hero-title,
.hero-slider .carousel-caption .hero-subtitle,
.hero-slider .carousel-caption .hero-list li {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Stato attivo: comparsa scaglionata */
.hero-slider .carousel-item.active .carousel-caption .hero-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.hero-slider .carousel-item.active .carousel-caption .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hero-slider .carousel-item.active .carousel-caption .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}

.hero-slider .carousel-item.active .carousel-caption .hero-list li:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.85s;
}

.hero-slider .carousel-item.active .carousel-caption .hero-list li:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.05s;
}

.hero-slider .carousel-item.active .carousel-caption .hero-list li:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.25s;
}

/* Barra di avanzamento carosello */
.hero-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.25);
  z-index: 15;
  pointer-events: none;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #211f60;
}

/* Accenti colore brand */
.text-lp-red {
  color: #f44336;
}

.text-lp-blue,
.text-lp-light {
  color: #afd4e8;
}

@media (max-width: 767.98px) {
  .hero-slider .carousel-item {
    height: 65vh;
    min-height: 400px;
  }

  .hero-badge {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-list li {
    font-size: 1rem;
  }
}


/* ==========================================================================
   3. TIPOGRAFIA & LINK GLOBALI
   ========================================================================== */
h1,
h2 {
  color: #e61f24;
}

a {
  color: #d81f24;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #a01013;
  text-decoration: none;
}

a:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}


/* ==========================================================================
   4. SEZIONE CORSI
   ========================================================================== */
.box_foto_grandi {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 15px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Disattiva background-attachment: fixed su dispositivi touch/mobili per evitare bug di rendering */
@media (max-width: 1024px), (hover: none) {
  .box_foto_grandi {
    background-attachment: scroll;
    min-height: 360px;
  }
}

.menu_corsi {
  margin-bottom: 30px;
  padding-left: 0;
}

.menu_corsi li {
  display: inline-block;
  list-style: none;
  margin-right: 10px;
}

.menu_corsi a {
  display: inline-block;
  border: 3px solid #65b7e6;
  text-decoration: none;
  background-color: #65b7e6;
  padding: 4px 10px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu_corsi a:hover,
.menu_corsi a:focus {
  background-color: transparent;
  text-decoration: none;
  color: #65b7e6;
}

.foto_corsi_di_inglese_per_bambini { background-image: url(../immagini/foto_corsi_di_inglese_per_bambini.jpg); }
.foto_corsi_di_inglese_per_ragazzi  { background-image: url(../immagini/foto_corsi_di_inglese_per_ragazzi.jpg); }
.foto_corsi_di_inglese_generale     { background-image: url(../immagini/foto_corsi_di_inglese_generale.jpg); }
.foto_corsi_aziendali               { background-image: url(../immagini/foto_corsi_aziendali.jpg); }
.foto_corsi_di_altre_lingue         { background-image: url(../immagini/foto_corsi_di_altre_lingue.jpg); }
.foto_corsi_online                  { background-image: url(../immagini/foto_corsi_online.jpg); }
.job                                { background-image: url(../immagini/job-london-plus.jpg); }
.foto_viaggi                        { background-image: url(../immagini/foto_viaggi.jpg); }
.italian                            { background-image: url(../immagini/italian-language.jpg); }
.contact-booking                    { background-image: url(../immagini/contact-booking.jpg); }

.box_titolo {
  width: 60%;
  max-width: 700px;
  padding: 20px;
  text-align: center;
  border: 7px solid #ffffff;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .box_titolo {
    width: 90%;
    padding: 15px;
    border-width: 4px;
  }
}

.box_titolo h1 {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
  margin-bottom: 0;
}

/* Ancora per compensare l'altezza della navbar fissa */
a.posto {
  position: relative;
  top: -80px;
  display: block;
  visibility: hidden;
}


/* ==========================================================================
   5. DOMANDE PIÙ FREQUENTI (FAQ)
   ========================================================================== */
#fondo_domande {
  width: 100%;
  overflow: hidden;
  padding: 0 0 120px 0;
  background-color: #ffffff;
  background-image: url(../immagini/bg_domande.jpg);
  background-attachment: fixed;
  border-bottom: 1px solid #bcc7ce;
}

@media (max-width: 1024px), (hover: none) {
  #fondo_domande {
    background-attachment: scroll;
  }
}

.box_risposta {
  position: relative;
  background-color: #d4edfc;
  width: 100%;
  padding: 20px;
  border-radius: 6px;
}

.box_risposta::after {
  content: "";
  background-color: #d4edfc;
  width: 30px;
  height: 30px;
  position: absolute;
  border-radius: 2px;
  right: 4px;
  top: 50px;
  transform: rotate(-45deg);
}


/* ==========================================================================
   6. SOCIAL & FOOTER
   ========================================================================== */
.social li a {
  color: #211f60;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social li a:hover,
.social li a:focus {
  color: #f44336;
  transform: translateY(-2px);
}

.copyright-wrap {
  padding: 25px 0 30px 0;
  color: #211f60;
  font-size: 13px;
  background-color: #eaeef9;
  background-image: url(../immagini/bb_testa.jpg);
  background-repeat: repeat-x;
  background-position: left bottom;
}

.copyright-wrap a {
  color: #211f60;
  transition: color 0.2s ease;
}

.copyright-wrap a:hover,
.copyright-wrap a:focus {
  color: #f44336;
}


/* ==========================================================================
   7. CONTATTI & GOOGLE MAPS (senza :has(), massima compatibilità browser)
   ========================================================================== */
#container-map {
  width: 100%;
  height: 450px;
  position: relative;
}

#top-sfu,
#bottom-sfu {
  width: 100%;
  height: 10px;
  position: absolute;
  left: 0;
  z-index: 20;
  pointer-events: none;
}

#top-sfu {
  top: 0;
  background: url(../immagini/top-sfu.png) repeat-x;
}

#bottom-sfu {
  bottom: 0;
  background: url(../immagini/bottom-sfu.png) repeat-x;
}

#map-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10;
}

/* Contenitore InfoWindow Google Maps */
.popup {
  font-family: inherit;
  line-height: 1.45;
  padding: 4px 2px;
  min-width: 240px;
}

.popup > * {
  margin: 0;
  padding: 0;
}

/* Child 1: <h2 class="logoLP">London Plus</h2> */
.popup > :nth-child(1),
.popup .logoLP {
  display: block;
  width: 150px;
  height: 56px;
  margin-bottom: 10px;
  background: url(../immagini/email-logo.png) left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

/* Child 2: <p>London Plus Languages</p> (Nome scuola) */
.popup > p:nth-of-type(1) {
  font-size: 1.05rem;
  font-weight: 700;
  color: #211f60;
  margin-bottom: 2px;
}

/* Paragrafi successivi al primo (sede, indirizzo e riga contatti) */
.popup > p:nth-of-type(n + 2) {
  font-size: 0.9rem;
  color: #333333;
  margin-bottom: 5px;
}

/* Se presente in Pompei (child 3), evidenzia la riga "Sede Principale" in grassetto */
.popup > p:nth-child(3) b {
  color: #f44336;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Stile per i tag <small> (Tel / Email) in qualsiasi posizione si trovino */
.popup > p small {
  display: inline-block;
  font-size: 0.85rem;
  color: #444444;
  margin-right: 8px;
}

.popup > p small b {
  color: #211f60;
}

.popup > p small a {
  color: #d81f24;
  text-decoration: none;
  transition: color 0.2s ease;
}

.popup > p small a:hover,
.popup > p small a:focus {
  color: #211f60;
  text-decoration: underline;
}

/* <br/> tra recapiti e link finale */
.popup > br {
  display: none;
}

/* Link finale a schermo intero */
.popup > a:last-of-type {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #211f60;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.popup > a:last-of-type:hover,
.popup > a:last-of-type:focus {
  background-color: #f44336;
  color: #ffffff;
}

@media (max-width: 767.98px) {
  #container-map {
    height: 340px;
  }
}
/* ==========================================================================
   8. PAGINA 404
   ========================================================================== */
.error-page {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 15px 60px;
  background-color: #f8f9fa;
}

.error-card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 2.25rem 1.75rem;
  background-color: #ffffff;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(33, 31, 96, 0.08);
  text-align: center;
}

.error-code {
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f44336;
  margin-bottom: 0.75rem;
}

.error-card h1,
.error-card h2 {
  color: #211f60;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.error-card p {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.error-card .btn-error-home {
  display: inline-block;
  background-color: #211f60;
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.error-card .btn-error-home:hover,
.error-card .btn-error-home:focus {
  background-color: #f44336;
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .error-card {
    padding: 1.75rem 1.25rem;
    border-radius: 0.85rem;
  }
}
/* ==========================================================================
   9. TEST / QUIZ (LP)
   ========================================================================== */
.lp-test-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
}

.lp-question-box {
  background: linear-gradient(135deg, #211f60 0%, #2c4c7e 100%);
  color: #ffffff;
  border-radius: 10px;
}

.lp-option-row {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background-color: #ffffff;
  color: #212529;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lp-option-row:hover {
  border-color: #211f60;
  background-color: #f8f9fa;
}

.lp-option-row:focus-visible {
  outline: 2px solid #211f60;
  outline-offset: 2px;
}

.lp-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 6px;
  font-weight: 700;
  background-color: #e7f0ff;
  color: #211f60;
  border: 1px solid #211f60;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Stato selezionato durante lo svolgimento */
.lp-option-row.is-selected {
  background-color: #f44336;
  border-color: #f44336;
  color: #ffffff;
  font-weight: 600;
}

/* Stato revisione: risposta corretta */
.lp-option-row.is-correct-review {
  background-color: #198754;
  border-color: #198754;
  color: #ffffff;
  font-weight: 600;
}

/* Stato revisione: risposta errata */
.lp-option-row.is-wrong-review {
  background-color: #f44336;
  border-color: #f44336;
  color: #ffffff;
}

/* Badge lettera in tutti gli stati attivi/revisione */
.lp-option-row.is-selected .lp-option-letter,
.lp-option-row.is-correct-review .lp-option-letter,
.lp-option-row.is-wrong-review .lp-option-letter {
  background-color: #ffffff;
  color: #211f60;
  border-color: #ffffff;
}