/* 1. CONTENITORE PRINCIPALE CORSI */
.box {
  background-color: #f28e11;
  border: 2px solid #ffb74d;
  box-shadow: 0 0 25px rgba(255, 152, 0, 0.9);
  backdrop-filter: blur(6px);
  background-image: url(elpitodance.png), url(elpitofondo.png);
  background-repeat: no-repeat, no-repeat;
  background-position: top right, left;
  background-size: 100px, 1350px;
  text-align: center;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow:hidden;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.box::before{
  content:"";
  position:absolute; top:0; left:-100%;
  width:60%; height:100%;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transition:left .7s ease;
  z-index:2; pointer-events:none;
}
.box:hover::before{left:150%}

.box:hover {
  cursor: pointer;
  box-shadow: 0 0 35px rgba(255, 152, 0, 1);
  transform: scale(1.01);
  background-image: url(elpitodance2.png), url(elpitofondo2.png);
}

/* 2. ELEMENTI INTERNI CORSI */
.corso-giorno {
  background-color: rgba(0, 41, 139, 0.8);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
  border-radius: 10px 10px 0px 0px;
  padding: 3px 10px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
  width: 80%;
}

.corso-palestra {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  color: black;
  border-radius: 0px;
  padding: 3px 10px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
  width: 80%;
}

.corso-tipo {
  background-color: rgba(0, 41, 139, 0.8);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
  border-radius: 0px 0px 0px 0px;
  padding: 3px 10px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
  width: 80%;
}

.corso-maestri {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  color: black;
  border-radius: 0px 0px 10px 10px;
  padding: 3px 10px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
  width: 80%;
}

.corso-button {
  background-color: rgba(205, 13, 19, 0.8);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 7px 15px;
  font-weight: bold;
  position: absolute;
  bottom: 10px;
  right: 10px;
  text-decoration: none;
}

.corso-button:hover {
  background-color: rgba(114, 7, 0, 0.8);
  cursor: pointer;
}

/* ===== CSS SCHEDA TEAM COMPLETO CON NOMI ORIGINALI ===== */

/* Contenitore principale delle card - Centra le card nella pagina */
.card-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px;
}

/* Classe per card personalizzate - Larghezza totale */
.custom-card {
  width: 100%;
}

/* ===== STILE CARD PRINCIPALE (TRASPARENTE) ===== */
.card {
  width: 100%;
  max-height: 465px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== STILE CARD SECONDARIA (CON SFONDO IMMAGINE) ===== */

.card2 {
    width: 100%;
    background-color: #1a1a1a;

    /* Sfondo della card */
    background-image: url("sfondo-schede.webp");
    background-repeat: no-repeat;

    /* Copre sempre tutta la card */
    background-size: cover;
    background-position: center center;

    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== TESTO DECORATIVO "el pito dance" ===== */
.card::before,
.card2::before {
  content: "el pito dance";
  font-size: 26px;
  color: #1a1a1a;
  position: absolute;
  top: 78px;
  font-family: 'Satisfy', cursive;
  font-weight: bold;
  left: -62px;
  transform: rotate(-90deg);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 
    0.5px 0.5px 0.8px #242424,
    -1px -1px 1px rgba(112, 56, 19, 0.6);
}

/* EFFETTO SHINE per .card e .card2 */
.card::after,
.card2::after{
  content:"";
  position:absolute; top:0; left:-100%;
  width:60%; height:100%;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transition:left .7s ease;
  z-index:10; pointer-events:none;
}
.card:hover::after,
.card2:hover::after{left:150%}

/* ===== EFFETTI HOVER PER CARD ===== */
.card:hover,
.card2:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== IMMAGINE PROFILO ===== */
.card-img-top {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff9800;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 20px;
  right: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

/* Effetto hover per immagine profilo */
.card-img-top:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 152, 0, 0.35), 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ===== CLASSI CONTENUTO (NOMI ORIGINALI) ===== */
.card-bod {
  padding: 30px;
  margin-top: 230px;
  position: relative;
  z-index: 1;
}

.card-text-orange {
  color: #ffa726;
  margin-bottom: 20px;
  font-size: 16px;
  margin-top: -20px;
  position: relative;
  z-index: 1;
}

.card-text {
  color: #e0e0e0;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 25px;
  position: relative;
  z-index: 1;
}

/* ===== LINK SOCIAL ===== */
.card-link {
  display: inline-block;
  margin-top: 20px;
  transition: all 0.3s ease;
}

/* Effetto rotazione per icona Facebook */
.card-link:hover .img-fb {
  transform: rotate(360deg);
}

/* ===== CLASSI UTILITY PER TRANSIZIONI ===== */
.zoom {
  transition: transform 0.3s ease;
}

.img-fb:hover {
  transform: scale(1.1);
}

/* ===== STILI AGGIUNTIVI ===== */

/* Titoli delle card */
.card-title {
  color: #ff9800;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

/* Sottotitoli */
.card-subtitle {
  color: #ffa726;
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 15px;
}

/* Link "Scheda completa" trasformato in bottone sottile */
.scheda-completa {
  display: inline-block;      /* Necessario per applicare bordi e padding */
  border: 1px solid #ff9800;  /* Bordo sottile arancio */
  padding: 2px 20px;          /* 2px sopra/sotto (sottilissimo), 12px ai lati */
  border-radius: 8px;         /* Angoli leggermente arrotondati */
  
  color: #ff9800;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;           /* Opzionale: riduce leggermente il font per guadagnare spazio */
  line-height: 1.2;           /* Mantiene la riga compatta */
  transition: all 0.3s ease;
}

.scheda-completa:hover {
  background-color: #ff9800;  /* Diventa pieno al passaggio del mouse */
  color: #1a1a1a;             /* Testo scuro per contrasto (o #fff se preferisci bianco) */
  text-decoration: none;      /* Rimuove la sottolineatura */
}

/* Responsive design per dispositivi mobili */

@media (max-width: 768px) {
  .card-container {
    padding: 8px;
  }
  
  .card-img-top {
    width: 150px;
    height: 150px;
    top: 15px;
    right: 15px;
  }
  
  .card-bod {
    margin-top: 180px;
    padding: 20px;
  }
  
  .card::before,
  .card2::before {
    font-size: 20px;
    top: 60px;
    left: -50px;
  }
}

/* Animazione di entrata per le card */

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .card2 {
  animation: cardEntrance 0.6s ease-out;
}

/* =============================================
   CONVERT FORMS - EL PITO DANCE CUSTOM STYLE
   Tema: Arancio/Nero con animazioni eleganti
   ============================================= */
/* === CONTAINER PRINCIPALE === */

.convertforms.cf {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-radius: 20px !important;
    padding: 15px !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 140, 50, 0.1) !important;
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.convertforms.cf:hover {
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 140, 50, 0.1) !important;
}

/* === WRAPPER FORM (sovrascrive lo sfondo inline) === */
.convertforms .cf-form-wrap {
    background: transparent !important;
    padding: 20px !important;
}

/* === TITOLO === */
.convertforms .cf-content-text p,
.convertforms .cf-content-text strong {
    color: #ff8c32 !important;
    text-align: center;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(255, 140, 50, 0.3);
}

/* === LABELS === */
.convertforms .cf-label {
    color: #f0f0f0 !important;
    font-weight: 500 !important;
    font-size: 0.95em !important;
    margin-bottom: 8px !important;
    display: block;
    transition: color 0.3s ease;
}

/* Asterisco obbligatorio */
.convertforms .cf-required-label {
    color: #ff8c32 !important;
}

/* === CAMPI INPUT E TEXTAREA === */
.convertforms .cf-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
    font-size: 1em !important;
    width: 100% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Placeholder */
.convertforms .cf-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    transition: opacity 0.3s ease;
}

/* Focus sui campi */
.convertforms .cf-input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #ff8c32 !important;
    outline: none !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(255, 140, 50, 0.15),
        0 0 20px rgba(255, 140, 50, 0.1) !important;
    transform: translateY(-1px);
}

.convertforms .cf-input:focus::placeholder {
    opacity: 0.6;
}

/* Hover sui campi */
.convertforms .cf-input:hover {
    border-color: rgba(255, 140, 50, 0.5) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* === CAMPO CORSO (TEXTAREA READONLY) === */
.convertforms textarea.cf-input[readonly] {
    background: linear-gradient(135deg, rgba(255, 140, 50, 0.2) 0%, rgba(255, 100, 50, 0.15) 100%) !important;
    border-color: rgba(255, 140, 50, 0.4) !important;
    color: #ffd9b3 !important;
    font-weight: 500 !important;
    cursor: default;
}

/* === BOTTONE INVIA === */
.convertforms .cf-btn {
    background: linear-gradient(135deg, #ff8c32 0%, #e67320 50%, #cc5500 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px 40px !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 15px rgba(255, 140, 50, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
    width: 100% !important;
}

.convertforms .cf-btn .cf-btn-text {
    position: relative;
    z-index: 1;
}

/* Effetto shine sul bottone */
.convertforms .cf-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

/* Hover bottone */
.convertforms .cf-btn:hover {
    background: linear-gradient(135deg, #ffa04d 0%, #ff8c32 50%, #e67320 100%) !important;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 140, 50, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.convertforms .cf-btn:hover::before {
    left: 100%;
}

/* Active/Click bottone */
.convertforms .cf-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(255, 140, 50, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* === GRUPPI DI CAMPI === */
.convertforms .cf-control-group {
    margin-bottom: 15px !important;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Riduci spazio degli emptyspace */
.convertforms .cf-control-group[data-type="emptyspace"] {
    margin-bottom: 5px !important;
}

/* Riduci spazio prima del bottone */
.convertforms .cf-control-group[data-type="submit"] {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.convertforms .cf-control-group:nth-child(1) { animation-delay: 0.1s; }
.convertforms .cf-control-group:nth-child(2) { animation-delay: 0.15s; }
.convertforms .cf-control-group:nth-child(3) { animation-delay: 0.2s; }
.convertforms .cf-control-group:nth-child(4) { animation-delay: 0.25s; }
.convertforms .cf-control-group:nth-child(5) { animation-delay: 0.3s; }
.convertforms .cf-control-group:nth-child(6) { animation-delay: 0.35s; }
.convertforms .cf-control-group:nth-child(7) { animation-delay: 0.4s; }
.convertforms .cf-control-group:nth-child(8) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MESSAGGI DI ERRORE === */
.convertforms .cf-error-message {
    color: #ff6b6b !important;
    font-size: 0.85em !important;
    margin-top: 6px !important;
    padding-left: 5px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Campo con errore */
.convertforms .cf-control-group.cf-has-error .cf-input {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2) !important;
}

/* === MESSAGGIO DI SUCCESSO === */
.convertforms .cf-response.cf-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%) !important;
    border: 2px solid #4caf50 !important;
    border-radius: 12px !important;
    color: #81c784 !important;
    padding: 20px !important;
    text-align: center;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* === RECAPTCHA === */
.convertforms .nr-recaptcha {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

/* === HONEYPOT (nascosto) === */
.convertforms .cf-field-hp {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .convertforms.cf {
        padding: 10px !important;
        border-radius: 15px !important;
    }
    
    .convertforms .cf-form-wrap {
        padding: 15px !important;
    }
    
    .convertforms .cf-content-text p {
        font-size: 1.2em !important;
        letter-spacing: 1px;
    }
    
    .convertforms .cf-btn {
        padding: 14px 30px !important;
        font-size: 1em !important;
    }
    
    .convertforms .cf-one-half {
        width: 100% !important;
        margin-bottom: 15px;
    }
}

/* === EMOJI DANZA RIMOSSA === */

/* === FRECCIA MENU === */
#ml-navigation-menu .nav li.deeper > a::after,
#ml-navigation-menu .nav li.deeper > span::after {
    content: "▾";
    color: #ff6b00;
    margin-left: 6px;
    font-size: 0.9em;
}

#ml-navigation-menu .nav li.deeper > a::before,
#ml-navigation-menu .nav li.deeper > span::before {
    content: none;
}

/* ============================================
EL PITO DANCE — Card corsi v14 (Shine Effect + 600px Mobile)
============================================ */
*,*::before,*::after{box-sizing:border-box}
.elp-wrap{
  width:100%;
  max-width:1040px;
  margin:0 auto;
  padding:50px 24px;
}
body{
  margin:0;
  background:#0a0a0d;
  overflow-x:hidden;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
}
.elp-day,.elp-day *,.elp-main,.elp-main *,.elp-titolo,.elp-luogo,.elp-maestri,.elp-btn{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif !important;
}

/* --- CARD (con filo da 2px + effetto shine) --- */
.elp-card{
  position:relative;
  display:grid;
  grid-template-columns:150px 1fr;
  align-items:stretch;
  background:#ef9207;
  border-radius:16px;
  overflow:hidden;
  border:2px solid rgba(255,255,255,0.28);
  box-shadow:0 16px 48px rgba(0,0,0,.35),0 4px 12px rgba(0,0,0,.15);
  margin-bottom:30px;
  transition:box-shadow .4s ease, border-color .4s ease;
}
.elp-card:hover{
  border-color:rgba(255,255,255,0.45);
  box-shadow:0 24px 64px rgba(0,0,0,.45),0 6px 16px rgba(0,0,0,.18);
}

/* EFFETTO SHINE: riflesso di luce che attraversa la card al hover */
.elp-card::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:60%;
  height:100%;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transition: left .7s ease;
  z-index:2;
  pointer-events:none;
}
.elp-card:hover::before{
  left:150%;
}

/* --- LEFT PANEL --- */
.elp-day{
  background:#1e3068;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:26px 20px;
  color:#fff;
  text-align:center;
  position:relative;
  border-radius:14px 0 0 14px;
  -webkit-clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%);
  clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%);
}
.elp-day .elp-g{
  font-size:14px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.4;
}
.elp-day .elp-o{
  font-size:34px;
  font-weight:900;
  margin-top:10px;
  letter-spacing:-.02em;
  line-height:1;
}

/* --- RIGHT PANEL --- */
.elp-main{
  position:relative;
  padding:30px 36px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  border-radius:0 14px 14px 0;
  min-width:0;
}
.elp-info{
  flex:1;
  min-width:0;
  position:relative;
  z-index:1;
  overflow-wrap:break-word;
}
.elp-titolo{
  font-size:30px;
  font-weight:900;
  color:#fff;
  margin-bottom:16px;
  letter-spacing:-.02em;
  line-height:1.15;
  text-shadow:0 2px 8px rgba(0,0,0,.18);
  padding-right:110px;
  word-wrap:break-word;
  overflow-wrap:break-word;
}
.elp-luogo{
  color:#2a1500;
  font-weight:600;
  line-height:1.65;
  font-size:15px;
}
.elp-luogo strong{
  color:#1a0d00;
  font-weight:800;
  display:inline-block;
  margin-bottom:2px;
}
.elp-luogo strong::before{
  content:"📍";
  display:inline-block;
  margin-right:4px;
  font-size:13px;
}
.elp-maestri{
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid rgba(0,0,0,.12);
  color:#fff;
  font-size:15px;
  font-weight:600;
  position:relative;
  z-index:1;
  text-shadow:0 1px 4px rgba(0,0,0,.3);
}
.elp-maestri a{
  color:#fff;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.25);
  transition:border-color .3s ease;
  text-shadow:0 1px 4px rgba(0,0,0,.3);
}
.elp-maestri a:hover{
  border-bottom-color:#fff;
}

/* --- LOGO --- */
.elp-logo{
  position:absolute;
  top:16px;
  right:18px;
  width:88px;
  height:88px;
  background-image:url(elpitodance.png);
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  z-index:3;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.12));
  transition:transform .4s cubic-bezier(.34,1.56,.64,1),filter .4s ease;
}
.elp-card:hover .elp-logo{
  background-image:url(elpitodance2.png);
  transform:scale(1.06);
}
 
/*==========================================================
    ELP BUTTON - Lucido & Chiaro
==========================================================*/

.elp-btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:315px;
    height:44px;
    padding:0 30px;
    overflow:hidden;
    border:none;
    border-radius:26px;
    cursor:pointer;
    user-select:none;
    text-decoration:none;
    font-family:inherit;
    font-size:13px;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:#f5a031;
    background:linear-gradient(
        180deg,
        #32568f 0%,
        #2a4a82 20%,
        #233d72 45%,
        #1e3566 70%,
        #1a2e5a 100%
    );
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.2),
        inset 0 -4px 6px rgba(0,0,0,.1),
        0 3px 8px rgba(0,0,0,.18);
    transition:
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .12s ease;
}

/* Cornice oro lucida */
.elp-btn::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    padding:2px;
    background:linear-gradient(
        180deg,
        #fffbe7 0%,
        #f9e6ae 18%,
        #e4c46a 42%,
        #c9993a 68%,
        #a07028 84%,
        #7d5a20 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
            mask-composite:exclude;
    pointer-events:none;
}

/* Piastra interna - schiacciatura solo qui */
.elp-btn::after{
    content:"";
    position:absolute;
    inset:4px;
    border-radius:21px;
    border:2px solid rgba(245,160,49,.5);
    pointer-events:none;
    transition:
        inset .12s ease,
        border-color .2s ease,
        box-shadow .15s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.2),
        inset 0 10px 12px rgba(255,255,255,.06),
        inset 0 -12px 14px rgba(0,0,0,.28);
}

.elp-btn > *{
    position:relative;
    z-index:10;
}

.elp-btn:hover{
    color:#fabb4a;
    background:linear-gradient(
        180deg,
        #426aa8 0%,
        #3a5f99 20%,
        #30528a 45%,
        #28437a 70%,
        #22396b 100%
    );
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.24),
        inset 0 -4px 6px rgba(0,0,0,.08),
        0 5px 12px rgba(0,0,0,.22);
}

.elp-btn:hover::before{
    background:linear-gradient(
        180deg,
        #ffffff 0%,
        #fff0c8 18%,
        #eccf7a 45%,
        #d4a844 72%,
        #a87a2e 100%
    );
}

.elp-btn:hover::after{
    border-color:rgba(245,160,49,.65);
}

.elp-btn:active{
    transform:none;
}

.elp-btn:active::after{
    inset:5px;
    border-color:rgba(255,240,205,.30);
    box-shadow:
        inset 0 4px 7px rgba(0,0,0,.42),
        inset 0 -2px 2px rgba(255,255,255,.05);
}

.elp-btn:focus-visible{
    outline:none;
    box-shadow:
        0 0 0 3px rgba(255,216,120,.28),
        0 6px 14px rgba(0,0,0,.35);
}


/* --- MODAL (Bootstrap) --- */
#elpModal .modal-content{
  border-radius:16px;
  border:none;
  box-shadow:0 25px 60px rgba(0,0,0,.4);
}
#elpModal .modal-body{padding:35px}
#elpModal .modal-header,
#elpModal .modal-footer{border:none}

/* --- RESPONSIVE --- */

@media (max-width: 800px) {

  .elp-wrap {
    padding: 16px 10px;
    overflow-x: hidden;
  }

  .elp-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-bottom: 20px;
  }

  /* --- FASCIA BLU --- */

  .elp-day {
    -webkit-clip-path: none;
    clip-path: none;

    border-radius: 14px 14px 0 0;

    padding: 14px 14px;

    flex-direction: row;
    justify-content: center;
    align-items: center;

    gap: 10px;
  }

  .elp-day .elp-g {
    font-size: 11px;
    letter-spacing: .06em;
    margin: 0;
  }

  .elp-day .elp-o {
    font-size: 20px;
    margin: 0;
    flex-shrink: 0;
  }

  /* --- PARTE ARANCIONE --- */

  .elp-main {
    border-radius: 0 0 14px 14px;

    flex-direction: column;
    align-items: stretch;

    /*
     * Spazio superiore per il logo
     * posizionato sotto la fascia blu
     */
    padding: 76px 16px 16px;

    gap: 18px;
  }

  /* --- LOGO --- */

  .elp-logo {
    width: 50px;
    height: 50px;

    /* Logo sotto la fascia blu */
    top: 58px;
    right: 10px;

    z-index: 3;
  }

  /* --- TITOLO --- */

  .elp-titolo {
    font-size: 19px;

    /* Il titolo non deve più evitare il logo */
    padding-right: 0;

    word-break: break-word;
    overflow-wrap: break-word;

    line-height: 1.15;
    margin-bottom: 12px;
  }

  /* --- LUOGO --- */

  .elp-luogo {
    font-size: 13px;
    line-height: 1.6;
  }

  /* --- MAESTRI --- */

  .elp-maestri {
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
  }

  .elp-maestri a {
    display: inline;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
  }

  /* --- PULSANTE --- */

  .elp-btn {
    align-self: stretch;

    width: 100%;
    min-width: 0;

    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 0 10px;

    /*
     * Una sola riga
     */
    white-space: nowrap;

    font-size: 10px;
    letter-spacing: .06em;
    line-height: 1;
  }
}


/* ==========================================================
   SMARTPHONE MOLTO STRETTI
   ========================================================== */

@media (max-width: 380px) {

  .elp-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .elp-btn {
    font-size: 9px;
    letter-spacing: .045em;
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media print{
  body{background:none;padding:0}
  .elp-card{break-inside:avoid;box-shadow:none;border:1px solid #ccc;margin-bottom:16px}
  .elp-btn{display:none}
}

/* ============================================   
EL PITO DANCE — Bootstrap Modal   
============================================ */

#elpModal .modal-dialog{    max-width:760px;}#elpModal .modal-content{    background:#1b1b1b;    color:#fff;    border:0px solid #f6a80e;    border-radius:16px;    overflow:hidden;}#elpModal .modal-header{    background:#263f83;    color:#fff;    border:none;}#elpModal .modal-title{    color:#fff;}#elpModal .btn-close{    filter:invert(1);}#elpModal .modal-body{    background:#1b1b1b;    padding:0px;}

#cf_30 .cf-content-text{
    position:relative;
    margin-bottom:4px;   /* prima 24px */
    padding-bottom:4px;  /* prima 18px */
}

#cf_30 .cf-content-text::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    width:120px;
    height:2px;
    border-radius:2px;
    background:linear-gradient(
        90deg,
        transparent,
        #ff8c33,
        transparent
    );
}

#elpModal .modal-content{
    background:#202020;
}
#cf_30 .cf-control-group[data-name="recaptchaaio_31"]{
    margin:0 !important;
    padding:0 !important;
}

/* ==========================================================
   NUOVE SCHEDE MAESTRI - STRUTTURA STANDARD JOOMLA
   Queste classi sono riutilizzabili per ogni maestro.
   ========================================================== */

.schede-maestri-preview,
.schede-maestri-preview *{
    box-sizing:border-box;
}

.schede-maestri-preview{
    width:100%;
    max-width:1120px;
    margin:0 auto;
    padding:24px;
}

.scheda-maestro{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,38%);
    align-items:stretch;
    min-height:620px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.16);
    border-radius:18px;
    background:#080808 url("sfondo-schede.webp") center/cover no-repeat;
    box-shadow:0 22px 55px rgba(0,0,0,.5);
}

.scheda-maestro__testo{
    position:relative;
    z-index:2;
    padding:58px 34px 52px 54px;
}

.scheda-maestro__qualifica{
    color:#c8943e;
    font-size:11px;
    font-weight:700;
    letter-spacing:.14em;
    line-height:1.5;
    text-transform:uppercase;
}

.scheda-maestro__qualifica::after{
    content:"";
    display:block;
    width:34px;
    height:2px;
    margin-top:9px;
    background:#c8943e;
}

.scheda-maestro__nome{
    margin:17px 0 0;
    color:#fff;
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(36px,5vw,62px);
    font-weight:900;
    letter-spacing:-.035em;
    line-height:1.02;
}

.scheda-maestro__nome-arte{
    display:block;
    margin-top:8px;
    color:#c8943e;
    font-family:'Playfair Display',Georgia,serif;
    font-size:22px;
    font-style:italic;
}

.scheda-maestro__dati{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:26px;
}

.scheda-maestro__dato{
    padding:10px 15px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:8px;
    background:rgba(0,0,0,.3);
    color:#ddd;
    font-size:12px;
    line-height:1.35;
}

.scheda-maestro__dato strong{
    display:block;
    margin-bottom:2px;
    color:#fff;
    font-size:13px;
}

.scheda-maestro__biografia{
    max-width:650px;
    margin-top:28px;
}

.scheda-maestro__biografia p{
    margin:0 0 15px;
    color:#e2e2e2;
    font-size:15px;
    line-height:1.75;
    text-shadow:0 1px 3px rgba(0,0,0,.8);
}

.scheda-maestro__biografia p:last-child{
    margin-bottom:0;
}

.scheda-maestro__citazione{
    margin-top:22px;
    padding-left:18px;
    border-left:2px solid #c8943e;
    color:#c8943e;
    font-family:'Playfair Display',Georgia,serif;
    font-size:16px;
    font-style:italic;
    line-height:1.5;
}

.scheda-maestro__social{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:26px;
    padding:10px 20px;
    border:1px solid rgba(200,148,62,.45);
    border-radius:30px;
    background:rgba(0,0,0,.28);
    color:#c8943e;
    font-size:12px;
    font-weight:700;
    letter-spacing:.05em;
    text-decoration:none;
    text-transform:uppercase;
    transition:background .25s ease,color .25s ease;
}

.scheda-maestro__social:hover{
    background:#c8943e;
    color:#080808;
}

.scheda-maestro__figura{
    position:relative;
    z-index:1;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    min-height:620px;
    padding:12px 16px 0 0;
}

.scheda-maestro__figura img{
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:calc(100% - 12px);
    object-fit:contain;
    object-position:top center;
    position:relative;
    z-index:1;
    transform:translateY(15px);
    filter:drop-shadow(10px 14px 12px rgba(0,0,0,.42))
           drop-shadow(0 3px 5px rgba(0,0,0,.25));
}

/* Ancoraggio al suolo dedicato alla figura di Dario */
.scheda-maestro--dario .scheda-maestro__figura::after{
    content:"";
    position:absolute;
    right:12%;
    bottom:3%;
    width:58%;
    height:18px;
    border-radius:50%;
    background:rgba(0,0,0,.52);
    filter:blur(7px);
    pointer-events:none;
    z-index:0;
}

.scheda-maestro--dario .scheda-maestro__figura img{
    position:relative;
    z-index:1;
    transform:translateY(15px);
}

@media(max-width:700px){
    .schede-maestri-preview{
        padding:12px 8px;
    }

    .scheda-maestro{
        grid-template-columns:minmax(0,1fr) minmax(145px,38%);
        min-height:520px;
        border-radius:14px;
    }

    .scheda-maestro__testo{
        padding:30px 12px 30px 20px;
    }

    .scheda-maestro__nome{
        font-size:clamp(22px,7vw,36px);
    }

    .scheda-maestro__nome-arte{
        font-size:16px;
    }

    .scheda-maestro__qualifica{
        font-size:9px;
        letter-spacing:.08em;
    }

    .scheda-maestro__dati{
        gap:5px;
        margin-top:15px;
    }

    .scheda-maestro__dato{
        padding:6px 8px;
        font-size:9px;
    }

    .scheda-maestro__dato strong{
        font-size:10px;
    }

    .scheda-maestro__biografia{
        margin-top:16px;
    }

    .scheda-maestro__biografia p{
        margin-bottom:9px;
        font-size:11px;
        line-height:1.52;
    }

    .scheda-maestro__citazione{
        margin-top:14px;
        padding-left:10px;
        font-size:12px;
    }

    .scheda-maestro__social{
        margin-top:16px;
        padding:7px 12px;
        font-size:9px;
    }

    .scheda-maestro__figura{
        min-height:520px;
        padding:10px 4px 0 0;
    }

.scheda-maestro__figura img{
    max-width:100%;
    max-height:calc(100% - 10px);
}

    .scheda-maestro--dario .scheda-maestro__figura img{
        transform:translateY(15px);
    }
}

/* ==========================================================
   NUOVE SCHEDE MAESTRI - VISTA MOBILE
   Ordine: dati principali, foto, biografia, social.
   ========================================================== */
@media(max-width:700px){
    .scheda-maestro{
        display:grid;
        grid-template-columns:1fr;
        grid-template-areas:
            "qualifica"
            "nome"
            "nome-arte"
            "dati"
            "figura"
            "biografia"
            "social";
        min-height:0;
    }

    /* I figli del testo diventano direttamente elementi della griglia */
    .scheda-maestro__testo{
        display:contents;
    }

    .scheda-maestro__qualifica{
        grid-area:qualifica;
        margin:28px 20px 0;
    }

    .scheda-maestro__nome{
        grid-area:nome;
        margin:10px 20px 0;
        font-size:clamp(30px,8vw,42px);
    }

    .scheda-maestro__nome-arte{
        grid-area:nome-arte;
        margin:6px 20px 0;
    }

    .scheda-maestro__dati{
        grid-area:dati;
        margin:18px 20px 0;
    }

    .scheda-maestro__figura{
        grid-area:figura;
        min-height:460px;
        padding:26px 12px 0;
        align-items:flex-start;
        justify-content:center;
    }

    .scheda-maestro__figura img,
    .scheda-maestro--dario .scheda-maestro__figura img{
        width:auto;
        max-width:90%;
        max-height:460px;
        transform:translateY(15px);
    }

    .scheda-maestro__biografia{
        grid-area:biografia;
        max-width:none;
        margin:24px 20px 0;
    }

    .scheda-maestro__biografia p{
        font-size:14px;
        line-height:1.65;
        margin-bottom:13px;
    }

    .scheda-maestro__social{
        grid-area:social;
        justify-self:start;
        margin:20px 20px 30px;
    }
}


/* ===== SOCIAL LINK NELLE SCHEDE MAESTRI ===== */

.scheda-social {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.scheda-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #c8943e;
    text-decoration: none;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    padding: 10px 22px;

    border: 1px solid rgba(200, 148, 62, 0.3);
    border-radius: 30px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;

    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.2);
}

.scheda-social a:hover {
    background: #c8943e;
    color: #0a0a0a;
    border-color: #c8943e;
}

.scheda-social svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}




/* =========================================================
   CARD2 - DESKTOP
   Dati iniziali allineati alla foto
   ========================================================= */

@media (min-width: 769px) {

    .card2 .card-bod {
        padding: 20px 30px 30px 30px;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }

    .card2 .card-text-orange {
        color: #ffa726;
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 16px;
        position: relative;
        z-index: 1;

        width: 200px;
        max-width: 200px;

        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .card2 .card-text {
        max-width: 100%;
    }
}


/* =========================================================
   CARD2 - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .card2 .card-bod {
        margin-top: 180px;
        padding: 20px;
    }

    .card2 .card-text-orange {
        width: auto;
        max-width: none;
        margin-top: 0;
    }

}

/* =========================================================
   CARD E CARD2 - SFONDO + LEGGIBILITÀ
   ========================================================= */

.card,
.card2 {
    background-color: #1a1a1a;

    background-image:
        linear-gradient(
            rgba(10, 10, 10, 0.38),
            rgba(10, 10, 10, 0.38)
        ),
        url("sfondo-schede.webp");

    background-repeat:
        no-repeat,
        no-repeat;

    /* Riempie completamente la scheda mantenendo le proporzioni */
    background-size:
        cover,
        cover;

    /* Immagine ancorata in alto a destra */
    background-position:
        top right,
        top right;
}


/* =========================================================
   CARD2 - CONTENUTO
   ========================================================= */

.card2 .card-bod {
    position: relative;
    z-index: 1;
}


/* =========================================================
   CARD2 - TESTO ARANCIO
   ========================================================= */

.card2 .card-text-orange {
    color: #ffa726 !important;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 2px 6px rgba(0, 0, 0, 0.65);
}


/* =========================================================
   CARD2 - TESTO BIOGRAFIA
   ========================================================= */

.card2 .card-text,
.card2 .card-bod p {
    color: #f0f0f0;

    font-size: 15px;
    line-height: 1.75;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 2px 6px rgba(0, 0, 0, 0.65);
}


/* Spaziatura paragrafi */

.card2 .card-bod > p {
    margin-bottom: 18px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* Sfondo: stesso comportamento di desktop */
    .card,
    .card2 {
        background-size:
            cover,
            cover;

        background-position:
            top right,
            top right;
    }


    /* Testo arancio */
    .card2 .card-text-orange {
        color: #ffa726 !important;

        font-size: 15px;
        line-height: 1.6;
    }


    /* Testo biografia */
    .card2 .card-text,
    .card2 .card-bod p {
        font-size: 15px;
        line-height: 1.7;
    }


    /* Spaziatura paragrafi */
    .card2 .card-bod > p {
        margin-bottom: 17px;
    }
}

/* ==========================================================
   CARD2 - SFONDO + LEGGIBILITÀ MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .card2 {
        background-image:
            linear-gradient(
                rgba(10, 10, 10, 0.38),
                rgba(10, 10, 10, 0.38)
            ),
            url("sfondo-schede-card2.webp");

        background-repeat:
            no-repeat,
            no-repeat;

        background-size:
            cover,
            cover;

        background-position:
            top right,
            top right;
    }

    /* Sfondo più scuro sotto il testo */
    .card2 .card-bod {
        background: linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.10) 0%,
            rgba(10, 10, 10, 0.35) 35%,
            rgba(10, 10, 10, 0.60) 100%
        );

        border-radius: 10px;
        padding: 20px;
    }

}
