/* ==========================================================================
   RESET E COLORI PASTELLO PULITI (COME IN ORIGINALE)
   ========================================================================== */
:root {
    --bg-main: #FFFDF9;            /* Sfondo panna neutro pulito */
    --primary-pastel: #FFB7B2;     /* Rosa pastello */
    --secondary-pastel: #E2F0CB;   /* Verde salvia chiaro */
    --accent-pastel: #FFDAC1;      /* Pesca pastello */
    --yellow-pastel: #FFF5BA;      /* Giallo tenue */
    --blue-pastel: #C7CEEA;        /* Azzurro polvere */
    --text-dark: #4A4E69;          /* Testo grigio scuro tenue */
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}


/* Contenitore per affiancare Logo e Titolo */
.logo {
    display: flex !important;
    flex-direction: row !important; /* Forza l'allineamento orizzontale */
    align-items: center !important;  /* Centra verticalmente logo e testo */
    gap: 12px;                      /* Spazio tra il logo e la scritta */
}

/* Azzera i margini dell'H1 che lo mandavano a capo */
.logo h1 {
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1;
}

/* Dimensione del Logo */
.logo-img {
    height: 60px !important;
    width: auto !important;
    display: inline-block !important;
    max-height: 60px;         /* Impedisce che sgrani o ingrandisca */
    object-fit: contain;
    display: block;
}


/* ==========================================================================
   INTESTAZIONE & NAVIGAZIONE ORIGINALE
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.5rem;
    color: #D96B81;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-btn.active, .nav-btn:hover {
    background-color: var(--primary-pastel);
    color: var(--white);
}

/* ==========================================================================
   GESTIONE PAGINE
   ========================================================================== */
.page-section {
    display: none;
    padding: 2rem 1rem;
    animation: fadeIn 0.4s ease-in-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #C05C72;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.divider {
    border: none;
    height: 2px;
    background: var(--accent-pastel);
    margin: 3rem 0;
}

/* ==========================================================================
   SEZIONE HOME
   ========================================================================== */
.hero-banner {
    width: 100%;
    height: 350px;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('images/sfondo_home.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    border-radius: var(--radius);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #3e86cf;
}

.hero-title {
    font-size: 2.5rem;
    color: #326da8;
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1.5rem;
}

.closing-text {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    color: #B25268;
}

/* ==========================================================================
   SCHEDE INCONTRI & COUNTDOWN CON SCALA AZZURRI
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-incontro {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    background-color: #f8f9fa; /* Sfondo neutro se l'immagine è verticale */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.card-img {
    width: 100%;
    max-height: 380px; /* Limita l'altezza massima per non rendere la card troppo alta */
    object-fit: contain; /* Mostra TUTTA l'immagine adattandola */
    display: block;
}

.badge-iscrizioni {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #E63946;
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
}

.badge-data {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(182, 221, 232, 0.9);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.countdown-container {
    margin: 1rem 0;
    text-align: center;
    background: var(--bg-main);
    padding: 0.5rem;
    border-radius: 8px;
}

.countdown-boxes {
    display: flex;
    justify-content: space-around;
    margin-top: 0.4rem;
}

.cd-box {
    padding: 0.4rem 0.2rem;
    border-radius: 6px;
    width: 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1A365D;
}

/* Scala di Azzurro dal più scuro (giorni) al più chiaro (secondi) */
.cd-box.cd-d { background: #90E0EF; }
.cd-box.cd-h { background: #ADE8F4; }
.cd-box.cd-m { background: #CAF0F8; }
.cd-box.cd-s { background: #E0F7FA; }

/* Scala di Ambra/Giallo dal più scuro (giorni) al più chiaro (secondi) */
/*.cd-box.cd-d { background: #FFB703; }  Ambra Intenso (Giorni) */
/*.cd-box.cd-h { background: #FFC300; }  Giallo Ambrato (Ore) */
/*.cd-box.cd-m { background: #FFD60A; }  Giallo Brillante (Minuti) */
/*.cd-box.cd-s { background: #FFF3B0; }  Giallo Pastello Chiaro (Secondi) */

.cd-box span { font-weight: bold; font-size: 1rem; }
.cd-box small { font-size: 0.65rem; }

/* ==========================================================================
   SLIDER DETTAGLIO & FRECCE SEMI-TRASPARENTI PROFESSIONALI
   ========================================================================== */

/* Contenitore Dettagli Evento - Stile "Centro d'Attrazione" */
.slider-dettaglio-container {
    /* Mantiene la disposizione affiancata (orizzontale) */
    display: flex;
    flex-direction: row;
    align-items: center; /* Allinea verticalmente al centro immagine e testo */
    gap: 2rem;
    
    /* Sfondo sfumato neutro in tinta con il sito */
    background: linear-gradient(135deg, #FFF2D9 0%, #FFF2D9 100%);
    
    /* Bordo e ombreggiatura per mettere in evidenza la sezione */
    border: 2px solid rgba(75, 78, 109, 1);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(217, 107, 129, 0.12);
    
    padding: 2rem;
    margin: 30px auto;
}

/* Adattamento automatico per smartphone: sotto i 768px torna in colonna */
@media (max-width: 768px) {
    .slider-dettaglio-container {
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* Evidenziare la disponibilità posti (7 di 12) per creare urgenza */
.slider-dettaglio-container .posti-info {
    background-color: #ffffff;
    padding: 10px 18px;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    color: #D96B81;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 10px 0;
}

.slider-left {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5); /* Sfondo chiaro per incorniciare il volantino */
    border-radius: 8px;
    padding: 10px;
}

.slider-left img {
    max-width: 100%;
    height: auto;
    max-height: 500px; /* Consente alla locandina verticale di mostrarsi interamente */
    object-fit: contain;
    border-radius: 8px;
}

/* Frecce Semi-Trasparenti Professionali */
.slider-arrow {
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #2B2D42;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.08);
}

.prev-btn { left: 12px; }
.next-btn { right: 12px; }

.slider-right { flex: 1; }

.badge-iscrizioni-inline {
    display: inline-block;
    background-color: #E63946;
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.posti-box {
    background: #F8F9FA;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 0.8rem 0;
    border: 1px solid #E9ECEF;
}

.progress-bar-wrapper {
    background: #E9ECEF;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin: 0.5rem 0 0.3rem 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}


#posti-testo {
    display: none;
}

.posti-status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.didascalia-posti {
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-dote {
    background-color: #2cc107;
    color: #1B4332;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    display: inline-block;
}



/* Layout Lista Dettagli */
.dettagli-list { 
    list-style: none; 
    margin: 1rem 0; 
    padding: 0;
}

.dettagli-list li { 
    display: flex;
    align-items: center;  /* Centra perfettamente l'icona con il testo */
    gap: 10px;            /* Spazio tra l'icona e il testo */
    margin-bottom: 0.8rem;
    flex-wrap: wrap;      /* Permette al badge "Dote Famiglia" di andare a capo se necessario */
}

/* Dimensione e Stile delle Icone (30px) */
.dettagli-icon {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    flex-shrink: 0;       /* Impedisce all'icona di schiacciarsi */
}

/* Layout per il Titolo della Descrizione con Icona */
.descrizione-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.descrizione-header h4 {
    margin: 0 !important;
}




.contatti-rapidi-buttons { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

/* ==========================================================================
   CALENDARIO DEL MESE VERO ED ELEGANTE
   ========================================================================== */
.calendario-layout { display: flex; gap: 2rem; }

.cal-left { flex: 1; }

.month-calendar-wrapper {
    background: var(--white);
    padding: 1.2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.month-header h3 { color: #C05C72; }

.btn-cal-nav {
    background: var(--accent-pastel);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 6px;
    font-size: 0.85rem;
    position: relative;
    cursor: default;
}

.cal-day-cell.other-month { opacity: 0.3; }

.cal-day-cell.has-event {
    background: #FFF3B0;
    cursor: pointer;
    border: 2px solid #FFD166;
    font-weight: bold;
}

.cal-day-cell.has-event:hover {
    background: var(--primary-pastel);
    color: white;
}

.cal-event-icon-img {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.cal-right {
    flex: 1.2;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.locandina-wrapper img {
    max-width: 100%;
    max-height: 380px;
    margin-top: 1rem;
    border-radius: 8px;
}

/* ==========================================================================
   LA MIA STORIA
   ========================================================================== */
.storia-grid { display: flex; gap: 2rem; align-items: center; }
.storia-img-col { flex: 1; }
.profilo-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.storia-text-col { flex: 1.5; }


/* Contenitore principale che affianca Foto e Testo */
.storia-container {
    display: flex !important;
    align-items: center;       /* Allinea verticalmente foto e testo al centro */
    gap: 40px;                 /* Spazio tra la foto e il testo */
    margin: 20px 0;
}

/* Gestione della Foto con bordo sfumato */
.storia-img-wrapper {
    position: relative;
    flex-shrink: 0;            /* Impedisce alla foto di rimpicciolirsi */
    padding: 12px;             /* Spessore della sfumatura */
    border-radius: 20px;
    background: linear-gradient(135deg, #FFDE59, #7ED957, #00C2CB, #FF66C4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.storia-img {
    display: block;
    width: 320px;              /* Regola la larghezza della foto */
    height: auto;
    border-radius: 12px;
    border: 4px solid #FFFFFF;
    object-fit: cover;
}

/* Gestione del Blocco Testo */
.storia-testo {
    flex: 1;                   /* Occupa tutto lo spazio rimanente a destra */
}

/* Adattamento per dispositivi mobili (Smartphone) */
@media (max-width: 768px) {
    .storia-container {
        flex-direction: column; /* Su schermi piccoli rimette il testo sotto la foto */
        text-align: center;
    }
    
    .storia-img {
        width: 100%;
        max-width: 280px;
    }
}


/* ==========================================================================
   I LABORATORI & DETTAGLI TECNICI
   ========================================================================== XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  */
/*.card-lab {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}*/

.card-lab:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.subtitle-lab { font-weight: 600; color: #A85A6C; margin-bottom: 0.8rem; }

.dettaglio-lab-layout { display: flex; gap: 2rem; margin-top: 1rem; }
.lab-main-content { width: 65%; }
.lab-sidebar { width: 35%; }

.detail-banner-img { width: 100%; border-radius: 8px; margin: 1rem 0; }
.emoji-list { list-style: none; margin-top: 0.5rem; }
.emoji-list li { margin-bottom: 0.4rem; }

.box-richiesta-info {
    background: var(--secondary-pastel);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

/* Cornice Dettagli Tecnici Pulita ma distinta */
.sticky-card {
    position: sticky;
    top: 90px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--blue-pastel);
}

.tech-specs { list-style: none; margin-top: 1rem; }
.tech-specs li { margin-bottom: 0.8rem; }

/* ==========================================================================
   GALLERIA
   ========================================================================== */
.evento-galleria-block { margin-bottom: 2rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.8rem;
}

.gallery-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover { opacity: 0.8; }

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active { display: flex; }
.lightbox-content img { max-width: 80vw; max-height: 80vh; border-radius: 8px; transition: filter 0.3s ease; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; cursor: pointer; }
.lightbox-arrow { background: none; border: none; color: white; font-size: 2rem; cursor: pointer; padding: 1rem; }

/* ==========================================================================
   CONTATTI (LAYOUT SPLIT 50% / 50%)
   ========================================================================== */
.contatti-split-layout { display: flex; gap: 2rem; align-items: flex-start; }
.faq-half { flex: 1; width: 50%; }
.contatti-half { flex: 1; width: 50%; background: var(--white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.faq-item { background: var(--white); margin-bottom: 0.5rem; border-radius: 8px; overflow: hidden; }
.faq-question { padding: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; background: var(--accent-pastel); }
.faq-answer { padding: 1rem; display: none; }
.faq-item.active .faq-answer { display: block; }

.social-section { text-align: center; /* Allinea il testo h4 al centro */ margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--accent-pastel); }
.social-links { justify-content: center; /* Centra i pulsanti Facebook e Instagram orizzontalmente */ display: flex; gap: 1rem; margin-top: 0.5rem; }
.social-icon { align-items: center;    /* <-- AGGIUNTO: allinea vert. icona e testo al centro */
    gap: 0.5rem;             /* <-- AGGIUNTO: separa l'icona dal testo */ display: inline-flex; /* Assicura un allineamento perfetto tra icona e testo */ padding: 0.6rem 1.2rem; border-radius: 20px; text-decoration: none; color: white; font-weight: bold; }
.social-icon i {
    display: inline-block;
    line-height: 1;
}
.social-icon.fb { background: #3b5998; }
.social-icon.ig { background: #e1306c; }

.tel-info { margin: 1rem 0; font-weight: bold; }
.cta-contatti-btns { display: flex; flex-direction: column; gap: 0.8rem; }
.email-copy-wrapper { display: flex; justify-content: space-between; align-items: center; background: var(--bg-main); padding: 0.5rem 1rem; border-radius: 8px; }

/* ==========================================================================
   PULSANTI GENERALI
   ========================================================================== */
.btn {
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary { background: var(--primary-pastel); color: white; }
.btn-secondary { background: var(--secondary-pastel); color: var(--text-dark); }
.btn-whatsapp { background: #25D366; color: white; text-decoration: none; }
.btn-whatsapp-lg { background: #25D366; color: white; text-decoration: none; font-size: 1rem; padding: 0.8rem 1.2rem; border-radius: 20px; text-align: center; }
.btn-copy { background: var(--blue-pastel); color: var(--text-dark); }
.btn-back { background: var(--accent-pastel); margin-bottom: 1rem; }

/* ==========================================================================
   FOOTER & LEGALI
   ========================================================================== */
footer {
    background: var(--white);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #E0E0E0;
    font-size: 0.9rem;
}

.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--text-dark); text-decoration: none; }
.legal-page { background: var(--white); padding: 2rem; border-radius: var(--radius); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 0.8rem; }
    .nav-links { justify-content: center; }
    .slider-dettaglio-container, .calendario-layout, .storia-grid, .dettaglio-lab-layout, .contatti-split-layout { flex-direction: column; }
    .faq-half, .contatti-half, .lab-main-content, .lab-sidebar { width: 100%; }
    .sticky-card { position: static; }
}

/* Styling e animazione del rettangolo evento */
.event-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* Rende l'intero rettangolo visivamente cliccabile */
  border-radius: 8px; /* Opzionale, per smussare gli angoli */
  overflow: hidden;
}

/* Animazione Hover sul Rettangolo (si solleva leggermente e crea un'ombra) */
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Sottolineatura del titolo al passaggio del mouse sul titolo o sulla card */
.event-title {
  display: inline-block;
  transition: color 0.3s ease;
}

.event-card:hover .event-title,
.event-title:hover {
  text-decoration: underline;
}

/* Styling e illuminazione del Pulsante "Vedi Dettagli Evento" */
.btn-details {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff; /* Colore base del pulsante */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Effetto Illuminato sul Pulsante (sia quando parli sul pulsante, sia su tutta la card) */
.event-card:hover .btn-details,
.btn-details:hover {
  background-color: #0056b3; /* Colore più acceso/scuro */
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.8); /* Effetto illuminazione Glow */
}

/* Styling e Animazione della Card principale */
.card-incontro {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Sollevamento della scheda quando ci passi sopra con il mouse */
.card-incontro:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Quando si passa il mouse sulla card, il pulsante si illumina in rilievo */
.card-incontro:hover {
   /* background-color: #000000;  Tonalità più luminosa/intensa */
    box-shadow: 0 6px 60px rgba(0, 86, 179, 0.4);
    transform: translateY(-22px);
}

/* Styling Base del Pulsante */
.btn-dettagli {
    width: 100%;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #FFAA00;
    color: #000000 !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: none;
}



/* Quando passi direttamente sopra il pulsante, diventa più profondo/intenso */
.btn-dettagli:hover {
    background-color: #E67E00 !important;
    box-shadow: 0 8px 18px rgba(0, 86, 179, 0.5) !important;
    transform: translateY(-3px) !important;
}

/* Effetto PRESSIONE / INCISIONE al click del mouse */
.btn-dettagli:active {
    transform: translateY(2px) scale(0.98) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) inset !important;
}

.slider-dettaglio-container {
    /* Crea uno spazio vuoto sopra l'elemento quando viene raggiunto via scroll */
    scroll-margin-top: 100px; 
}



/* Allineamento Icona + Titolo nei Laboratori */
.lab-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    margin-bottom: 8px;
}

.lab-title-icon {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.lab-header h3 {
    margin: 0 !important;
}

/* Stile Base della Card */
.card-lab {
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 12px;
    padding: 20px;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

/* 1. MANI IN SCENA (Lilla) */
.card-lab-1 {
    border-color: #C8A2C8 !important;
}
.card-lab-1 .btn-conosci {
    background-color: #C8A2C8 !important;
    border-color: #C8A2C8 !important;
    color: #FFFFFF !important;
}
.card-lab-1 .btn-conosci:hover {
    background-color: #B587B5 !important;
}

/* 2. FASCIA 3 - 6 ANNI (Giallo Arancio Chiaro) */
.card-lab-2 {
    border-color: #FFC069 !important;
}
.card-lab-2 .btn-conosci {
    background-color: #FFC069 !important;
    border-color: #FFC069 !important;
    color: #222222 !important;
}
.card-lab-2 .btn-conosci:hover {
    background-color: #FFA940 !important;
}

/* 3. PER NIDI E SCUOLE (Verde Salvia) */
.card-lab-3 {
    border-color: #8A9A86 !important;
}
.card-lab-3 .btn-conosci {
    background-color: #8A9A86 !important;
    border-color: #8A9A86 !important;
    color: #FFFFFF !important;
}
.card-lab-3 .btn-conosci:hover {
    background-color: #758571 !important;
}