/*
Theme Name: SkilledHub Custom Theme
Version: 4.7.0
Text Domain: skilledhub
Description: Tema custom ultra-leggero con iniezioni dei colori del logo, sliders, Hamburger mobile, box Articoli e stili interni completi per singoli Corsi e Docenti.
*/

/* ==========================================================================
   PALETTE COLORI UFFICIALE (ESTRATTA DAL LOGO HUB ACADEMY)
   ========================================================================== */
:root {
    --brand-primary: #0241a7;      
    --brand-dark: #111116;         
    --brand-accent-pink: #ff3366;  
    --brand-accent-yellow: #ffcc00;
    --brand-accent-blue: #0066ff;  
    --brand-bg-light: #FEF9E3;     
    --brand-bg-purple: #F3EDFF;    
    --card-border-radius: 12px;
}

/* ==========================================================================
   1. RESET, STRUTTURA GLOBALE E CARICAMENTO FONT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    color: var(--brand-dark); 
    background-color: #ffffff; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

body.menu-mobile-active { overflow: hidden !important; }
.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 30px; }
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
img { max-width: 100%; display: block; }

/* ==========================================================================
   2. SITE HEADER
   ========================================================================== */
.site-header { background-color: #ffffff; padding: 35px 0 25px 0; border-bottom: 1px solid #f2f2f2; position: relative; z-index: 1000; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo img { display: block; }

.main-navigation ul { display: flex; list-style: none; gap: 35px; }
.main-navigation ul li { position: relative; }
.main-navigation ul li a { font-size: 15px; font-weight: 600; color: var(--brand-dark); text-transform: capitalize; letter-spacing: 0.2px; display: inline-flex; align-items: center; padding: 5px 0; }
.main-navigation ul li a::before { content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 8px; flex-shrink: 0; transition: transform 0.2s ease; }
.main-navigation ul li a:hover::before { transform: scale(1.15); }

.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current_page_item a::after {
    content: ""; position: absolute; bottom: calc(100% - 2px); left: 6px; width: 1px; height: 45px; background-color: var(--brand-dark); transform: rotate(14deg); transform-origin: bottom center; z-index: 10;
}

.sh-menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 19px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; outline: none; }
.hamburger-line { width: 100%; height: 3px; background-color: var(--brand-dark); border-radius: 4px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease; transform-origin: center; }

.sh-menu-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sh-menu-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.sh-menu-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   3. SEZIONE HERO & FILTRI
   ========================================================================== */
.hero-section { padding: 100px 0; }
.hero-top { text-align: center; margin-bottom: 50px; }
.hero-top h1 { line-height: 1.1; font-weight: 700; letter-spacing: -2px; white-space: pre-line; margin: 0; }
.hero-bottom-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-desc-col p { line-height: 1.8; margin: 0; text-align: left; }
.hero-img-col img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; }

.archive-header-hero { padding: 70px 0; text-align: center; }
.archive-header-hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 10px; }
.archive-header-hero p { font-size: 16px; opacity: 0.85; }

.filter-search-bar { background-color: #f8f9fa; padding: 25px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.filter-form { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.filter-field-group { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-width: 220px; }
.filter-field-group label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #555; letter-spacing: 0.5px; }

.filter-field-group select { 
    width: 100%; padding: 12px 15px; border: 1px solid #dcdcdc; border-radius: 8px; background-color: #fff; font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--brand-dark); outline: none; cursor: pointer; transition: border-color 0.2s ease;
}
.filter-field-group select:focus { border-color: var(--brand-primary); }

.filter-buttons-group { display: flex; align-items: center; gap: 15px; }
.btn-filter-action { background-color: var(--brand-dark); color: #ffffff; border: 1px solid var(--brand-dark); padding: 12px 35px; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.25s ease; }
.btn-filter-action:hover { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-filter-reset { font-size: 14px; font-weight: 600; color: var(--brand-accent-pink); text-decoration: underline; }

/* ==========================================================================
   4. INTESTAZIONI SEZIONI E CONTROLLI SLIDER
   ========================================================================== */
.section-common { padding: 90px 0; }
.section-header-wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 50px; width: 100%; }
.title-line-wrapper { display: flex; align-items: center; gap: 20px; flex-grow: 1; }
.section-common h2 { font-weight: 700; color: var(--brand-dark); white-space: nowrap; margin: 0; flex-shrink: 0; }
.title-horizontal-line { height: 6px; flex-grow: 1; border-radius: 4px; display: block; min-width: 50px; }

.btn-discover-wrap { font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 12px 60px; border: 1px solid var(--brand-dark); border-radius: 50px; background: #ffffff; min-width: 230px; }
.btn-discover-wrap .arrow { font-size: 20px; font-weight: 400; display: inline-block; }
.btn-discover-wrap:hover { background-color: var(--brand-dark); color: #ffffff; }
.btn-discover-wrap:hover .arrow { transform: translateX(6px); }

.sh-carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.sh-carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--brand-dark); background: #ffffff; font-size: 22px; font-weight: 300; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s ease; padding-bottom: 4px; }
.sh-carousel-btn:hover { background-color: var(--brand-primary); color: #ffffff; border-color: var(--brand-primary); }

/* ==========================================================================
   5. COMPORTAMENTI ISOLATI SEZIONALI: GRIGLIE VS CAROSELLI
   ========================================================================== */
.formazione-grid, .news-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 25px !important; }
.docenti-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 25px !important; }

.sh-carousel-wrapper { width: 100%; overflow: hidden; position: relative; padding: 10px 0; }
.sh-carousel-track { transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform; }

.sh-carousel-track.formazione-grid { display: flex !important; gap: 25px !important; }
.sh-carousel-track.docenti-grid { display: flex !important; gap: 25px !important; }

/* FIX CAROSELLO: La larghezza elastica e i margini si applicano esplicitamente ai tag di legame */
.sh-carousel-track .course-card-link-wrapper { flex: 0 0 calc(25% - 19px) !important; }
.sh-carousel-track .docente-card-link-wrapper { flex: 0 0 calc(33.333% - 17px) !important; }

/* ==========================================================================
   6. CARD STRUTTURALI CORSI (A DUE SEZIONI COLORATE)
   ========================================================================== */
.course-card-link-wrapper { display: block; outline: none; text-decoration: none; }
.course-card { border-radius: var(--card-border-radius); overflow: hidden; display: flex; flex-direction: column; position: relative; padding: 0 !important; border: none; background-color: transparent !important; height: 100%; }
.course-card-link-wrapper:hover .course-card { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(17, 17, 22, 0.1); }

.course-image-wrap { width: 100%; height: 170px; position: relative; margin-bottom: 0 !important; border-radius: var(--card-border-radius) var(--card-border-radius) 0 0; overflow: hidden; }
.course-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.course-card-bottom { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; border-radius: 0 0 var(--card-border-radius) var(--card-border-radius); }
.course-content { flex-grow: 1; display: flex; flex-direction: column; margin-bottom: 22px; }
.course-type-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }

.course-content h3 { font-weight: 600; line-height: 1.55 !important; margin-bottom: 8px; }
.course-subtitle { font-size: 13px; opacity: 0.85; font-weight: 500; line-height: 1.65 !important; }
.course-card-footer { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }

.bg-mod-online { background-color: var(--brand-primary) !important; }
.bg-mod-online h3, .bg-mod-online .course-subtitle, .bg-mod-online .course-card-footer { color: #ffffff !important; }
.bg-mod-online .course-type-badge { color: rgba(255, 255, 255, 0.7) !important; }

.bg-mod-ibrido { background-color: var(--brand-accent-pink) !important; }
.bg-mod-ibrido h3, .bg-mod-ibrido .course-subtitle, .bg-mod-ibrido .course-card-footer { color: #ffffff !important; }
.bg-mod-ibrido .course-type-badge { color: rgba(255, 255, 255, 0.7) !important; }

.bg-mod-presenza { background-color: var(--brand-accent-yellow) !important; }
.bg-mod-presenza h3, .bg-mod-presenza .course-subtitle, .bg-mod-presenza .course-card-footer { color: var(--brand-dark) !important; }
.bg-mod-presenza .course-card-footer { border-top-color: rgba(17, 17, 22, 0.12) !important; }
.bg-mod-presenza .course-type-badge { color: rgba(17, 17, 22, 0.65) !important; }

.bg-mod-fallback { background-color: #f4f6fa; }
.bg-mod-fallback h3 { color: var(--brand-dark); }
.bg-mod-fallback .course-card-footer { border-top-color: rgba(0, 0, 0, 0.06); color: #555; }

/* ==========================================================================
   7. BOX DI ANTEPRIMA ARTICOLI NATIVI (NEWS)
   ========================================================================== */
.news-card { background: #ffffff; border-radius: var(--card-border-radius); border: 1px solid #eef0f5; box-shadow: 0 4px 15px rgba(17, 17, 22, 0.02); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(2, 65, 167, 0.07); border-color: rgba(2, 65, 167, 0.1); }

.news-card-image-wrap { width: 100%; height: 185px; position: relative; overflow: hidden; background: #f4f6fa; }
.news-card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-image-wrap img { transform: scale(1.04); }

.news-card-category-badge { position: absolute; bottom: 14px; left: 14px; background-color: var(--brand-primary); color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 4px; letter-spacing: 0.6px; z-index: 2; box-shadow: 0 4px 10px rgba(2, 65, 167, 0.15); }
.news-card-content-wrap { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.news-card-meta-inline { display: flex; gap: 16px; font-size: 12px; font-weight: 600; color: #718096; margin-bottom: 14px; align-items: center; }
.news-meta-date, .news-meta-time { display: inline-flex; align-items: center; gap: 5px; }

.news-card-title { font-weight: 600; line-height: 1.45 !important; margin-bottom: 10px; }
.news-card-title a { color: var(--brand-dark); }
.news-card-title a:hover { color: var(--brand-primary); }
.news-card-excerpt { font-size: 14px; color: #4a5568; line-height: 1.65 !important; margin-bottom: 22px; }

.news-card-read-link { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--brand-primary); letter-spacing: 0.5px; margin-top: auto; display: inline-flex; align-items: center; transition: color 0.2s ease, transform 0.2s ease; }
.news-card:hover .news-card-read-link { color: var(--brand-accent-pink); transform: translateX(4px); }
.news-fallback-box { width: 100%; height: 100%; background: linear-gradient(135deg, #e2e5ec 0%, #edf0f5 100%); }

/* ==========================================================================
   8. BOX DI ANTEPRIMA DEL CATALOGO E SLIDER DOCENTI
   ========================================================================== */
.docenti-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: flex-start; }
.docente-card-link-wrapper { display: block; outline: none; text-decoration: none; height: 100%; }

.docente-card { 
    background: #ffffff !important; padding: 0 !important; border-radius: var(--card-border-radius) !important; text-align: center; border: 1px solid #eef0f4 !important; box-shadow: 0 4px 15px rgba(17,17,22,0.02) !important; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.docente-card-link-wrapper:hover .docente-card { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(2, 65, 167, 0.08) !important; border-color: rgba(2, 65, 167, 0.15) !important; }

.docente-card img, .docente-archive-avatar-wrap img { width: 100% !important; height: 230px !important; object-fit: cover !important; border-radius: 0 !important; margin-bottom: 0 !important; transition: transform 0.4s ease; }
.docente-card-link-wrapper:hover .docente-card img { transform: scale(1.03); }

.docente-card span, .docente-card-bottom-info span { font-size: 18px !important; font-weight: 600 !important; display: block !important; color: var(--brand-dark) !important; padding: 20px 20px 4px 20px; line-height: 1.3; text-align: center; }
.docente-card p, .docente-archive-role-text { font-size: 13px !important; color: #66666c !important; line-height: 1.45 !important; padding: 0 20px 24px 20px; margin: 0; text-align: center; }

.docente-card-bottom-info { padding: 0 0 20px 0; flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.docente-card-discover-link { font-size: 12px !important; font-weight: 700 !important; color: var(--brand-primary) !important; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px; transition: color 0.2s ease; display: inline-block; }
.docente-card-link-wrapper:hover .docente-card-discover-link { color: var(--brand-accent-pink) !important; }

/* ==========================================================================
   9. REINTEGRO ESSENZIALE: INTERNALS DEL POST SINGOLO (CORSO & DOCENTE)
   ========================================================================== */
/* --- Layout Singolo Corso --- */
.single-formazione-main { background-color: #ffffff; padding-bottom: 100px; }
.course-single-hero { background-color: var(--brand-bg-light); padding: 70px 0 60px 0; border-bottom: 1px solid rgba(2, 65, 167, 0.1); margin-bottom: 60px; }
.course-hero-badge { font-size: 12px; font-weight: 700; text-transform: uppercase; background-color: var(--brand-primary); color: #ffffff; padding: 6px 14px; border-radius: 4px; display: inline-block; margin-bottom: 15px; letter-spacing: 0.5px; }
.course-single-hero h1 { font-size: 42px; font-weight: 700; line-height: 1.2; color: var(--brand-dark); margin-bottom: 10px; }
.course-hero-subtitle { font-size: 18px; color: #444444; margin-bottom: 30px; font-weight: 500; }
.course-hero-spec-bar { display: flex; gap: 40px; background: #ffffff; padding: 15px 30px; border-radius: 8px; display: inline-flex; box-shadow: 0 4px 20px rgba(2, 65, 167, 0.04); border: 1px solid rgba(2, 65, 167, 0.08); }
.spec-item { display: flex; align-items: center; gap: 12px; }
.spec-icon { font-size: 24px; }
.spec-text small { display: block; font-size: 11px; color: #666666; text-transform: uppercase; font-weight: 600; }
.spec-text strong { font-size: 14px; color: var(--brand-dark); }

.course-single-body-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: flex-start; }
.course-single-content { font-size: 16px; line-height: 1.8; color: #333333; }
.course-wysiwyg-text p { margin-bottom: 25px; }
.course-wysiwyg-text h2 { font-size: 26px; color: var(--brand-dark); font-weight: 700; margin: 40px 0 20px 0;}
.course-wysiwyg-text h3 { font-size: 20px; color: var(--brand-dark); font-weight: 700; margin: 35px 0 15px 0;}

.course-linked-docenti-section { margin-top: 60px; padding-top: 40px; border-top: 2px dashed #eee; }
.linked-section-title { font-size: 22px; font-weight: 700; margin-bottom: 25px; color: var(--brand-dark); }
.course-docenti-layout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.mini-docente-card-profile { display: flex; gap: 20px; background: #fdfdfd; padding: 15px; border-radius: 10px; border: 1px solid #f0f0f2; align-items: center; }
.mini-doc-avatar-wrap { width: 75px; height: 75px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee; }
.mini-doc-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mini-doc-bio-info h5 { font-size: 16px; font-weight: 600; margin-bottom: 2px; color: var(--brand-dark); }
.mini-doc-bio-info h5 a:hover { color: var(--brand-primary); }
.mini-doc-role-text { font-size: 12px; color: #666; margin-bottom: 8px; line-height: 1.3; }
.mini-doc-view-link { font-size: 12px; font-weight: 600; color: var(--brand-primary); }

.course-single-sidebar { position: sticky; top: 40px; }
.sidebar-sticky-card { background: #ffffff; border-radius: 12px; border: 1px solid rgba(2, 65, 167, 0.08); overflow: hidden; box-shadow: 0 12px 35px rgba(2, 65, 167, 0.03); }
.sidebar-image-wrap img { width: 100%; height: 220px; object-fit: cover; }
.sidebar-box-info { padding: 30px; }
.sidebar-box-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 20px; border-bottom: 2px solid var(--brand-primary); padding-bottom: 8px; color: var(--brand-dark); }
.sidebar-box-info ul { list-style: none; margin-bottom: 30px; }
.sidebar-box-info ul li { font-size: 14px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; display: flex; justify-content: space-between; }
.sidebar-price-tag { font-weight: 700; color: var(--brand-primary); }

.btn-course-cta { display: block; background-color: var(--brand-primary); color: #ffffff; text-align: center; padding: 14px; border-radius: 8px; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.btn-course-cta:hover { background-color: var(--brand-dark); }
.btn-course-cta-secondary { display: block; background-color: transparent; color: var(--brand-dark); border: 1px solid var(--brand-dark); text-align: center; padding: 13px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.btn-course-cta-secondary:hover { background-color: rgba(2, 65, 167, 0.04); border-color: var(--brand-primary); color: var(--brand-primary); }

/* --- Layout Singolo Docente --- */
.single-docente-profile-main { background-color: #ffffff; padding-bottom: 100px; }
.docente-profile-hero-section { background-color: var(--brand-bg-purple); padding: 60px 0; border-bottom: 1px solid rgba(17, 17, 22, 0.05); }
.docente-hero-flex-layout { display: flex; align-items: center; gap: 40px; }
.docente-hero-avatar-box { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.05); flex-shrink: 0; }
.docente-hero-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.docente-hero-identity-box h1 { font-size: 36px; font-weight: 700; color: var(--brand-dark); margin-bottom: 5px; }
.docente-professional-title-badge { font-size: 14px; font-weight: 500; color: var(--brand-primary); background: #ffffff; padding: 4px 12px; border-radius: 4px; display: inline-block; border: 1px solid rgba(2, 65, 167, 0.15); }
.docente-profile-content-grid { display: grid; grid-template-columns: 1fr 420px; gap: 60px; margin-top: 60px; align-items: flex-start; }
.docente-col-title-headline { font-size: 22px; font-weight: 700; margin-bottom: 25px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-dark); color: var(--brand-dark); }
.docente-wysiwyg-biography-text p { font-size: 16px; line-height: 1.8; color: #444444; margin-bottom: 22px; }

.docente-courses-vertical-stack-list { display: flex; flex-direction: column; gap: 18px; }
.teacher-linked-course-row-item { display: flex; gap: 20px; background: #ffffff; padding: 18px; border-radius: 12px; border: 1px solid #eef0f4; border-left: 4px solid var(--brand-primary); align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.02); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.teacher-linked-course-row-item:hover { transform: translateX(6px); border-left-color: var(--brand-accent-pink); box-shadow: 0 12px 24px rgba(2, 65, 167, 0.08); }
.teacher-linked-course-img-thumb { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f0f0f2; }
.teacher-linked-course-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.teacher-linked-course-text-details { flex-grow: 1; }
.teacher-linked-course-text-details h6 { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; color: var(--brand-dark); }
.teacher-linked-course-text-details h6 a:hover { color: var(--brand-primary); }
.teacher-linked-course-sub { font-size: 12px; color: #666666; display: block; margin-bottom: 8px; }
.teacher-linked-course-meta-pills { display: flex; gap: 12px; }
.teacher-linked-course-meta-pills span { background-color: #f4f6fa; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #555555; display: inline-flex; align-items: center; }

/* ==========================================================================
   10. INTERFACCIA: MODULO CONTATTI & INPUT FIELDS
   ========================================================================== */
.sh-custom-contact-form input[type="text"],
.sh-custom-contact-form input[type="email"],
.sh-custom-contact-form input[type="tel"],
.sh-custom-contact-form select,
.sh-custom-contact-form textarea {
    font-size: 14px; color: var(--brand-dark); outline: none; border: 1px solid #dcdcdc; border-radius: 8px; font-family: 'Poppins', sans-serif; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sh-custom-contact-form input[type="text"]:focus,
.sh-custom-contact-form input[type="email"]:focus,
.sh-custom-contact-form input[type="tel"]:focus,
.sh-custom-contact-form select:focus,
.sh-custom-contact-form textarea:focus {
    border-color: var(--brand-primary) !important; box-shadow: 0 4px 12px rgba(37, 59, 140, 0.06) !important;
}

/* ==========================================================================
   11. RESTYLING CORRETTO DEL FOOTER (MOCKUP ACCENTED #253B8C)
   ========================================================================== */
.site-footer { font-family: 'Poppins', sans-serif !important; }
.footer-legal-menu-list { display: flex; list-style: none; gap: 15px; padding: 0; margin: 0; align-items: center; flex-wrap: wrap; }
.footer-legal-menu-list li { position: relative; font-size: 13px; font-weight: 400; }
.footer-legal-menu-list li:not(:last-child)::after { content: "|"; margin-left: 15px; opacity: 0.3; color: #FFFFFF; display: inline-block; }
.footer-legal-menu-list li a { opacity: 0.85; color: #FFFFFF !important; transition: all 0.2s ease; }
.footer-legal-menu-list li a:hover { opacity: 1; color: var(--brand-accent-yellow) !important; text-decoration: none; }

/* ==========================================================================
   12. INTEGRAZIONE RESPONSIVE COMPLETA
   ========================================================================== */
@media (max-width: 991px) {
    .formazione-grid, .docenti-grid, .news-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .sh-carousel-track .course-card-link-wrapper { flex: 0 0 calc(50% - 10px) !important; }
    .sh-carousel-track .docente-card-link-wrapper { flex: 0 0 calc(50% - 10px) !important; }
    
    .course-single-body-grid, .docente-profile-content-grid, .docenti-wrap { grid-template-columns: 1fr; gap: 40px; }
    .course-single-sidebar { position: static; }
    .hero-bottom-grid, .docente-hero-flex-layout { grid-template-columns: 1fr; }
    .section-header-wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
    .title-line-wrapper { width: 100%; }
    .title-horizontal-line { flex-grow: 1; width: auto; }
    .course-docenti-layout-grid { grid-template-columns: 1fr; }
    .sh-pagination-wrap { margin-top: 40px; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .btn-filter-action { width: 100%; border-radius: 8px; }
    .contatti-info-sidebar { margin-bottom: 30px; }
    
    .footer-wrap { flex-direction: column; text-align: center; justify-content: center; gap: 15px; }
    .footer-legal-menu-list { justify-content: center; }
}

@media (max-width: 767px) {
    .formazione-grid, .docenti-grid, .news-grid { grid-template-columns: 1fr !important; gap: 25px !important; }
    .sh-carousel-track .course-card-link-wrapper, .sh-carousel-track .docente-card-link-wrapper { flex: 0 0 100% !important; }
    
    .btn-discover-wrap { width: 100%; justify-content: center; }
    .course-single-hero h1 { font-size: 32px; }
    .docente-hero-identity-box h1 { font-size: 28px; }
    .course-hero-spec-bar { flex-direction: column; gap: 15px; display: flex; width: 100%; }
    .archive-header-hero h1 { font-size: 30px; }

    .sh-menu-toggle { display: flex; }
    .main-navigation { display: block !important; position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background-color: #ffffff; box-shadow: -10px 0 40px rgba(17, 17, 22, 0.08); padding: 110px 30px 40px 30px; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 998; }
    .main-navigation.is-open { right: 0; }
    .main-navigation ul { flex-direction: column; gap: 25px; }
    .main-navigation ul li a { font-size: 18px; width: 100%; padding: 8px 0; }
    .main-navigation ul li.current-menu-item a::after { display: none !important; }
    .main-navigation ul li.current-menu-item a { color: var(--brand-primary); font-weight: 700; }
}

/* ==========================================================================
   13. INFOGRAFICA RESPONSIVE PER LA SEZIONE NUMERI IN MOVIMENTO
   ========================================================================== */
.section-stats-css {
    position: relative;
    z-index: 5;
}

@media (max-width: 991px) {
    .stats-grid-layout {
        grid-template-columns: repeat(2, 1fr) !important; /* Si scompone a due colonne su tablet */
        gap: 40px 20px !important;
    }
}

@media (max-width: 575px) {
    .stats-grid-layout {
        grid-template-columns: 1fr !important; /* Colonna singola su telefoni piccoli */
        gap: 35px !important;
    }
    .stat-number {
        font-size: 42px !important;
    }
}

/* ==========================================================================
   14. MICRO-ICONE E TRANSIZIONI DI COMPLIANCE SEZIONE STATISTICHE
   ========================================================================== */
.stat-box-item {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* Micro-effetto hover per esaltare il dinamismo del blocco infografico */
.stat-box-item:hover {
    transform: translateY(-4px);
}

.stat-icon-holder svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-box-item:hover .stat-icon-holder svg {
    transform: scale(1.08) rotate(2deg);
}

@media (max-width: 991px) {
    .stat-icon-holder svg {
        width: 36px !important;
        height: 36px !important;
    }
}