@charset "UTF-8";

:root {
  --colore-verde-scuro: rgb(10, 34, 26);
  --colore-rosso-scuro: rgb(63, 12, 21);
  --colore-corallo-chiaro: rgb(230, 194, 169);
  --colore-blu: #1f3d82;
  --colore-ombra: rgba(0,0,0,0.4);
  --colore-overlay: rgba(0,0,0,0.45);
  --colore-testo: #323232;
  --colore-verde-check: #198754;
  --colore-bg-light: #f8f9fa;
  --font-base: "ptsans", "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Times New Roman", Times, serif;
  --ombra-soft: 0 10px 30px rgba(0,0,0,.16);
  --ombra-soft-hover: 0 10px 25px rgba(0,0,0,0.22);
}

/* Base */
body {
  font-family: var(--font-base);
  min-height: 100vh;
}

/* Colori di sfondo */
.bg-verde-scuro { background-color: var(--colore-verde-scuro) !important; }
.bg-rosso-scuro { background-color: var(--colore-rosso-scuro) !important; }
.bg-corallo-chiaro { background-color: var(--colore-corallo-chiaro) !important; }
.bg-blu { background-color: var(--colore-blu); }
.bg-box-light { background-color: var(--colore-bg-light); }
.bg-image-full { background-repeat: no-repeat; background-attachment: scroll; background-position: center; background-size: cover; }

/* Tipografia */
.fs-7 { font-size: 0.8rem !important; }
.text-conimg { font-size: 15px; font-family: var(--font-serif); margin: 24px 0; color: #545454; }
.text-chisiamo p { font-size: 28px; }
.text-chisiamo img { max-width: 70%; }
.h-corsi1, .h-chisiamo { font-size: 5rem; font-family: var(--font-serif); line-height: 5rem; color: var(--colore-testo); }
.h-corsi2 { font-size: 2.5rem; font-family: var(--font-serif); line-height: 4rem; color: var(--colore-testo); }
.d-corsi2 { font-size: 16px; font-family: var(--font-serif); margin: 48px 0 48px -16px; color: var(--colore-testo); }
.hometitleh2 { font-weight: 300; line-height: 1.2; font-size: 2rem; }
.e-corsi { font-size: 1.2rem; background-color: transparent; border-color: #212529; }
.text-center-mobile { text-align: center; }

/* Navbar */
.nav-link { transition: all .2s ease; }
.nav-link:hover { color: #f50101 !important; transform: translateY(-1px); }
.padding-nav-link { padding-right: 1rem !important; padding-left: 1rem !important; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; }
.hero .overlay { position: absolute; inset: 0; background: var(--colore-overlay); }
.hero h1 { text-shadow: 0 2px 6px var(--colore-ombra); }
.hero-logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); transition: transform 0.3s ease; }
.hero-logo:hover { transform: scale(1.05); }

/* Badge e liste */
.badge-date { font-variant-numeric: tabular-nums; font-size: 0.85rem; padding: 0.4em 0.7em; }
.list-check li { padding-left: 1.75rem; position: relative; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--colore-verde-check); font-weight: 700; }

/* Card e ombre */
.shadow-soft { box-shadow: var(--ombra-soft); transition: transform 0.3s, box-shadow 0.3s; }
.shadow-soft:hover { transform: translateY(-3px); box-shadow: var(--ombra-soft-hover); }
.custom-card { max-width: 540px; margin: 0 auto; }

/* Bottoni */
.custom-button-corsi {
  display: flex; align-items: center; justify-content: center;
  padding: 20px; width: 300px; height: 300px;
  background-image: url('/static/Home/image/picche.svg');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: 0.8; color: #fff; font-size: 100%; text-align: center; border: none; cursor: pointer;
  transition: opacity 0.3s ease;
}
.custom-button-corsi:hover { opacity: 0.8; }

/* Icone */
.icon { width: 60px; height: 60px; border-radius: 50%; background: #2553b8; margin: 0 auto 20px; }
.icon span { font-size: 20px; color: #fff; }
.quadri { width: 45px; }

/* Carousel */
.carousel-wrapper-custom { width: 100%; overflow: hidden; position: relative; }
.carousel-track-custom { display: flex; justify-content: center;}
.carousel-track-animation { transition: transform 0.6s ease;}
.carousel-item-custom { flex: 0 0 33.33%; opacity: 0.6; transform: scale(0.8); display: flex; justify-content: center;}
.carousel-item-animation {transition: all 0.6s ease;}
.carousel-item-custom img { width: 100%; height: 100%; object-fit: cover; border-radius: 1rem; }
.carousel-item-custom.active-custom { transform: scale(1); opacity: 1; z-index: 2; }
.carousel-btn-custom { z-index: 3; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; text-align: center; }
.prev-custom { left: -1.5rem; }
.next-custom { right: -1.5rem; }
.arrow { cursor: pointer; height: 60px; position: absolute; top: 50%; transition: transform 0.1s; width: 50px; }
.arrow-top, .arrow-bottom { background-color: #666; height: 4px; left: -5px; position: absolute; top: 50%; width: 100%; }
.arrow-top:after, .arrow-bottom:after { background-color: #fff; content: ""; height: 100%; position: absolute; top: 0; transition: all 0.15s; }
.arrow-top { transform: rotate(45deg); transform-origin: bottom right; }
.arrow-top-flipped { transform: rotate(-45deg); transform-origin: bottom left; }
.arrow-top:after { left: 100%; right: 0; transition-delay: 0s; }
.arrow-bottom { transform: rotate(-45deg); transform-origin: top right; }
.arrow-bottom-flipped { transform: rotate(45deg); transform-origin: top left; }
.arrow-bottom:after { left: 0; right: 100%; transition-delay: 0.15s; }
.arrow:hover .arrow-top:after { left: 0; transition-delay: 0.15s; }
.arrow:hover .arrow-bottom:after { right: 0; transition-delay: 0s; }
.arrow:active { transform: scale(0.9); }

/* Popup e Lightbox */
.lightbox-custom, .popup-overlay { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; justify-content: center; align-items: center; }
.lightbox-custom { background-color: rgba(0,0,0,0.8); }
.lightbox-img-custom { max-width: 90%; max-height: 90%; border-radius: 1rem; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.lightbox-close-custom { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; cursor: pointer; user-select: none; }
.popup-content { border-radius: 16px; max-width: 96%; max-height: 100%; }
.popup-content img { max-width: 100%; max-height: 80vh; display: block; border-radius: 18px; }
.popup-close { position: absolute; top: 0; right: 18px; font-size: 2.5rem; cursor: pointer; color: white; }

/* Utility */
.sticky-cta { position: sticky; bottom: 1rem; z-index: 1020; backdrop-filter: blur(8px); background: rgba(248,249,250,.8); border-radius: 999px; }
.clickable-area { position: absolute; top: 62.5%; left: 45.5%; transform: translate(-50%, -50%); width: 122px; height: 45px; background-color: red; opacity: 0.5; }
.no-scroll { overflow: hidden; }
.colonne-uguali td, .colonne-th-uguali th { width: 50%; }
.custom-button-corsi:hover { opacity: 0.8; }

/* Breakpoints mobile-first */
@media (max-width: 358px) {
  .navbar-brand { font-size: 1rem !important; letter-spacing: -0.2px; }
}
@media (max-width: 382px) {
  .navbar-brand { font-size: large !important; }
  .navbar-container { padding-left: 0.3rem !important; padding-right: 0.5rem !important; }
  .navbar-toggler { padding: 0.1rem 0.3rem !important; font-size: 1.1rem !important; color: var(--colore-rosso-scuro) !important; }
}
@media (max-width: 400px) { .hero h1 { font-size: 1.8rem; } }
@media (max-width: 666px) {
  .scomparsa-responsiva { display: none !important; }
  .h-corsi { margin: auto; display: flex; justify-content: center; }
  .quadri { width: 25px; }
  .hometitleh2 { font-size: 1rem !important; }
}
@media (max-width: 768px) {
  .carousel-item-custom { flex: 0 0 80%; }
  .arrow { display: none !important; }
}
@media (max-width: 900px) {
  .padding-nav-link { padding-right: 0.2rem !important; padding-left: 0.2rem !important; }
  .hero h1 { text-shadow: 0 2px 6px var(--colore-ombra); font-size: 1.9rem; }
}
@media (max-width: 992px) {
  .row-chisiamo { display: flex; justify-content: center; }
  .jc-center { justify-content: center; }
  .text-center-mobile { text-align: center; }
  .hero-logo { display: none; }
  .scomparsa-responsiva-lg { display: none; }
}
@media (min-width: 992px) {
  .text-conimg { margin: 0 !important; }
  .padding-lg { padding: 3rem; }
}
@media (min-width: 1200px) { .padding-nav-link { padding-right: 1rem !important; padding-left: 1rem !important; } }
@media (min-width: 1700px) { .container { max-width: 1660px !important; } }


html, body {
  overflow-x: hidden;
}
