/* ============================================================ */
/* RESET & BASE */
/* ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colori primari */
    --color-primary: #4A1942;
    --color-primary-dark: #2D0D28;
    --color-primary-light: #6B2B5F;
    
    /* Colori secondari */
    --color-secondary: #C76B8A;
    --color-secondary-dark: #B04F72;
    --color-secondary-light: #E8C9A5;
    
    /* Colori neutri */
    --color-dark: #2D2A32;
    --color-gray: #8A8595;
    --color-light: #F9F5F0;
    --color-white: #FFFFFF;
    
    /* Font */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spaziature */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Border radius */
    --radius: 8px;
    --radius-lg: 16px;
    
    /* Ombre */
    --shadow: 0 4px 20px rgba(74, 25, 66, 0.10);
    --shadow-hover: 0 8px 40px rgba(74, 25, 66, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.7;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================ */
/* TIPOGRAFIA */
/* ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    background: rgba(199, 107, 138, 0.15);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-desc {
    color: var(--color-gray);
    font-size: 1.1rem;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

/* ============================================================ */
/* BOTTONI */
/* ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* ============================================================ */
/* HEADER / MENU */
/* ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-dark);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--color-primary);
    background: rgba(74, 25, 66, 0.08);
}

.nav-menu > li > a.active {
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    z-index: 100;
    list-style: none;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeDown 0.3s ease;
    }
    .dropdown > a .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    .dropdown:hover > a .fa-chevron-down {
        transform: rotate(180deg);
    }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li a {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(74, 25, 66, 0.06);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-hover);
        padding: var(--spacing-md);
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-nav.open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu > li > a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: var(--spacing-md);
        padding-top: 0;
        padding-bottom: 0;
        background: transparent;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown > a .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .dropdown.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }
}

/* ============================================================ */
/* HERO */
/* ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-xl) 0;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--color-secondary);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.page-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    padding: 140px 0 60px;
    color: var(--color-white);
    text-align: center;
}

.page-hero h1 {
    color: var(--color-white);
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* ============================================================ */
/* LOGO ROTONDO DELLA SCUOLA - NELL'HERO */
/* ============================================================ */
.school-logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-secondary);
    box-shadow: 0 0 30px rgba(199, 107, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    transition: all 0.3s ease;
}

.school-logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(199, 107, 138, 0.5);
}

.school-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .school-logo-circle {
        width: 90px;
        height: 90px;
        margin: 0 auto 15px;
    }
}

/* ============================================================ */
/* HOME - SCUOLE OVERVIEW */
/* ============================================================ */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-lg);
}

.school-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.school-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.school-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.school-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.school-card:hover .school-card-image img {
    transform: scale(1.05);
}

.school-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.school-card-body {
    padding: var(--spacing-lg);
}

.school-card-body h3 {
    margin-bottom: 0.2rem;
}

.school-location {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.school-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin: var(--spacing-md) 0;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.school-stats i {
    color: var(--color-secondary);
    margin-right: 0.3rem;
}

/* ============================================================ */
/* HOME - ABOUT PREVIEW */
/* ============================================================ */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-preview-content h2 {
    margin-bottom: var(--spacing-sm);
}

.about-preview-content p {
    margin-bottom: var(--spacing-md);
    color: var(--color-gray);
}

.about-highlights {
    margin: var(--spacing-lg) 0;
}

.about-highlights li {
    padding: 0.3rem 0;
    font-weight: 500;
}

.about-highlights i {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.about-preview-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-preview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ============================================================ */
/* HOME - CORSI IN EVIDENZA */
/* ============================================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

.course-item {
    background: var(--color-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.course-item:hover {
    border-color: var(--color-secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.course-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.course-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.course-item p {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* ============================================================ */
/* CORSI - PAGINE DETTAGLIO (Roma e Viterbo) */
/* ============================================================ */
.corsi-griglia {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.corso-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--color-secondary);
    transition: all 0.3s ease;
}

.corso-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.corso-card .icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.corso-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.corso-card .eta {
    display: inline-block;
    background: var(--color-light);
    padding: 3px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-gray);
    margin: 5px 0 10px;
}

.corso-card .eta i {
    margin-right: 4px;
    color: var(--color-secondary);
}

.corso-card ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.corso-card ul li {
    margin: 3px 0;
}

/* ============================================================ */
/* CORSI - COMPACT (Roma e Viterbo - anteprima home) */
/* ============================================================ */
.corsi-roma-compact,
.corsi-viterbo-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.corso-roma-compact,
.corso-vt-compact {
    background: var(--color-light);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.corso-roma-compact:hover,
.corso-vt-compact:hover {
    border-color: var(--color-secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.corso-roma-compact i,
.corso-vt-compact i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: block;
}

.corso-roma-compact h4,
.corso-vt-compact h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--color-dark);
}

.corso-roma-compact p {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin: 0;
}

/* ============================================================ */
/* SEDI - LISTA (anteprima home) */
/* ============================================================ */
.sedi-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.sede-item {
    background: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-secondary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sede-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.sede-item .sede-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.sede-item:hover .sede-img {
    transform: scale(1.03);
}

.sede-item h4 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.sede-item p {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin: 4px 0;
}

.sede-item p i {
    margin-right: 6px;
    color: var(--color-secondary);
}

/* ============================================================ */
/* SEDI - PAGINA COMPLETA (con immagini, senza mappe) */
/* ============================================================ */
.sedi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.sede-full {
    background: var(--color-white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--color-secondary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sede-full:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.sede-full .sede-img-full {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.sede-full:hover .sede-img-full {
    transform: scale(1.02);
}

.sede-full h3 {
    margin-bottom: 2px;
}

.sede-full p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: var(--color-dark);
}

.sede-full .badge {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sede-full a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sede-full a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ============================================================ */
/* SEDI - SOTTOTITOLO E TAG INSEGNANTI */
/* ============================================================ */
.sede-subtitle {
    color: var(--color-secondary) !important;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: -5px;
    margin-bottom: 12px;
    display: block;
}

.tag-insegnante {
    display: inline-block;
    background: var(--color-light);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-dark);
    margin: 2px 4px 2px 0;
    transition: all 0.3s ease;
}

.tag-insegnante:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.staff-sede {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.staff-sede .icon-modern {
    margin-right: 4px;
}

/* ============================================================ */
/* STAFF - CARDS COMPLETE */
/* ============================================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.staff-card {
    background: var(--color-white);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.staff-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-light);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-secondary);
}

.staff-card h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.staff-card .ruolo {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.staff-card p {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 5px;
}

/* ============================================================ */
/* STAFF - COMPACT (Roma e Viterbo - anteprima home) */
/* ============================================================ */
.staff-roma-compact,
.staff-viterbo-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.staff-roma-compact-item,
.staff-vt-compact-item {
    background: var(--color-white);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.staff-roma-compact-item:hover,
.staff-vt-compact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.staff-roma-compact-item .avatar-img-sm,
.staff-vt-compact-item .avatar-img-sm {
    margin-bottom: 10px;
}

.staff-roma-compact-item strong,
.staff-vt-compact-item strong {
    display: block;
    font-size: 1rem;
    color: var(--color-dark);
}

.staff-roma-compact-item span,
.staff-vt-compact-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 2px;
}

/* ============================================================ */
/* STAFF - VITERBO PAGINA COMPLETA */
/* ============================================================ */
.staff-vt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.staff-vt-card {
    background: var(--color-white);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.staff-vt-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-light);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.staff-vt-card h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.staff-vt-card .ruolo {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
}

/* ============================================================ */
/* INSEGNANTI - PAGINA COMPLETA */
/* ============================================================ */
.insegnanti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.insegnante-card {
    background: var(--color-white);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.insegnante-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.insegnante-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-light);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.insegnante-card h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.insegnante-card .ruolo {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.insegnante-card .sede {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-top: 3px;
    display: block;
}

.insegnante-card p {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 5px;
}

/* ============================================================ */
/* CHI SIAMO - BIOGRAFIE */
/* ============================================================ */
.bio-grid {
    display: grid;
    gap: 40px;
    align-items: start;
}

.bio-grid img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================ */
/* VITERBO - CARATTERISTICHE */
/* ============================================================ */
.caratteristiche {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.caratteristica {
    background: var(--color-light);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
}

.caratteristica i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.caratteristica h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.caratteristica p {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 5px;
}

/* ============================================================ */
/* VITERBO - LA SCUOLA (info-grid) */
/* ============================================================ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.info-grid img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    padding: 10px;
    background: var(--color-white);
    border: 1px solid var(--color-light);
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .info-grid img {
        margin-top: 20px;
    }
}

/* ============================================================ */
/* VIDEO YOUTUBE - RESPONSIVE */
/* ============================================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    background: var(--color-dark);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================ */
/* ORARI - TABELLE */
/* ============================================================ */
.orari-table,
.orari-vt {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.orari-table th,
.orari-vt th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.orari-table td,
.orari-vt td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0ece8;
}

.orari-table tr:last-child td,
.orari-vt tr:last-child td {
    border-bottom: none;
}

.orari-table tr:hover td,
.orari-vt tr:hover td {
    background: var(--color-light);
}

.orari-note {
    margin-top: 20px;
    background: var(--color-light);
    padding: 20px;
    border-radius: 12px;
    color: var(--color-gray);
}

.orari-vt .insegnante {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 1px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 3px;
}

.orari-vt small {
    display: block;
    font-size: 0.7rem;
    color: var(--color-gray);
}

@media (max-width: 600px) {
    .orari-table,
    .orari-vt {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .orari-table th,
    .orari-table td,
    .orari-vt th,
    .orari-vt td {
        padding: 8px 10px;
    }
}

/* ============================================================ */
/* ORARI - PDF SCARICABILI */
/* ============================================================ */
.orari-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.orari-pdf-card {
    background: var(--color-white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-secondary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.orari-pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.orari-pdf-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.orari-pdf-card .indirizzo {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.orari-pdf-card .indirizzo i {
    margin-right: 6px;
    color: var(--color-secondary);
}

.orari-pdf-card .badge-sede {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.orari-pdf-card .btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.orari-pdf-card .btn-pdf:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.orari-pdf-card .btn-pdf i {
    font-size: 1.1rem;
}

.orari-note-bottom {
    margin-top: 30px;
    padding: 20px;
    background: var(--color-light);
    border-radius: 12px;
    text-align: center;
    color: var(--color-gray);
}

.orari-note-bottom a {
    color: var(--color-primary);
    font-weight: 600;
}

@media (max-width: 600px) {
    .orari-pdf-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* CONTATTI RAPIDI (HOME) */
/* ============================================================ */
.quick-contact {
    background: var(--color-primary);
    color: var(--color-white);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.contact-card-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    margin-bottom: 0.2rem;
}

.contact-card p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-card a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.contact-card a:hover {
    color: var(--color-secondary);
}

.contact-card .btn-outline {
    color: var(--color-white);
    border-color: var(--color-white);
    margin-top: var(--spacing-sm);
}

.contact-card .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ============================================================ */
/* CONTATTI - PAGINA COMPLETA */
/* ============================================================ */
.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contatti-info {
    background: var(--color-light);
    padding: 30px;
    border-radius: 16px;
}

.contatti-info h3 {
    font-size: 1.2rem;
    margin-top: 20px;
}

.contatti-info h3:first-child {
    margin-top: 0;
}

.contatti-info p {
    margin: 5px 0;
    color: var(--color-dark);
}

.contatti-info a {
    color: var(--color-primary);
    font-weight: 600;
}

.contatti-form {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contatti-form label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
}

.contatti-form input,
.contatti-form select,
.contatti-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-top: 5px;
}

.contatti-form input:focus,
.contatti-form select:focus,
.contatti-form textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
}

.contatti-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contatti-form .btn {
    margin-top: 15px;
}

@media (max-width: 768px) {
    .contatti-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* SOCIAL - PAGINA CONTATTI - SEMPRE VISIBILI */
/* ============================================================ */
.social-contatti {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.social-contatti .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.social-contatti .social-icon:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 25, 66, 0.3);
}

.divider-contatti {
    border: none;
    border-top: 1px solid var(--color-light);
    margin: 20px 0;
}

/* ============================================================ */
/* NEWSLETTER */
/* ============================================================ */
.newsletter {
    background: var(--color-light);
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    margin-bottom: 0.2rem;
}

.newsletter-inner p {
    color: var(--color-gray);
    margin-bottom: var(--spacing-md);
}

.newsletter-form .form-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-note {
    font-size: 0.8rem !important;
    color: var(--color-gray) !important;
    margin-top: var(--spacing-sm) !important;
}

/* ============================================================ */
/* FOOTER - RESPONSIVE */
/* ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    margin-bottom: var(--spacing-sm);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 0.3rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--color-secondary);
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contacts li i {
    color: var(--color-secondary);
    width: 20px;
}

.footer-contacts li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contacts li a:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-secondary);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-lg);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--color-secondary);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-contacts li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    .footer-grid {
        gap: var(--spacing-md);
    }
}

/* ============================================================ */
/* MAPPE */
/* ============================================================ */
.map-placeholder {
    background: #e9e5e0;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    margin-top: 10px;
    font-size: 0.9rem;
}

.map-container-lg {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container-lg iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

/* ============================================================ */
/* ANIMAZIONI SCROLL */
/* ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================ */
/* ICONE MODERNE - UNIFICATE */
/* ============================================================ */
.icon-modern {
    color: var(--color-secondary);
    font-size: 1rem;
    width: 1.2em;
    text-align: center;
    margin-right: 6px;
    transition: all 0.3s ease;
}

.icon-modern-sm {
    color: var(--color-secondary);
    font-size: 0.7rem;
    margin-right: 4px;
}

.icon-modern-contact {
    color: var(--color-secondary);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

.icon-modern-lg {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

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

.list-modern li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.list-modern li:last-child {
    border-bottom: none;
}

.list-modern li .icon-modern {
    width: 28px;
    margin-right: 12px;
    flex-shrink: 0;
    color: var(--color-secondary);
}

.list-modern li strong {
    margin-right: 4px;
}

.tag {
    display: inline-block;
    background: var(--color-light);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--color-gray);
    margin: 3px 5px 3px 0;
}

.tag i {
    margin-right: 4px;
    color: var(--color-secondary);
}

.sede-icon {
    color: var(--color-secondary);
    width: 20px;
    margin-right: 8px;
    text-align: center;
}

/* ============================================================ */
/* AVATAR CON FOTO */
/* ============================================================ */
.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
    border: 3px solid var(--color-secondary);
    transition: all 0.3s ease;
    background: var(--color-light);
}

.avatar-img:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
}

.avatar-img-sm {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
    border: 3px solid var(--color-secondary);
    transition: all 0.3s ease;
    background: var(--color-light);
}

.avatar-img-sm:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
}

/* ============================================================ */
/* PAGINE LEGALI - PRIVACY, COOKIE, INFORMATIVE */
/* ============================================================ */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 35px;
    color: var(--color-primary);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    color: var(--color-dark);
}

.legal-content h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    color: var(--color-dark);
}

.legal-content p,
.legal-content li {
    color: var(--color-dark);
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 5px;
}

.legal-content ol {
    padding-left: 20px;
    line-height: 1.8;
}

.legal-content ol li {
    margin-bottom: 5px;
}

.legal-content strong {
    color: var(--color-primary);
}

.legal-content a {
    color: var(--color-primary);
    font-weight: 600;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}

/* ============================================================ */
/* TABELLE NELLE PAGINE LEGALI */
/* ============================================================ */
.legal-content .table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal-content table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.legal-content table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0ece8;
}

.legal-content table tr:hover td {
    background: var(--color-light);
}

.legal-content table tr:last-child td {
    border-bottom: none;
}

/* ============================================================ */
/* BADGE NELLE PAGINE LEGALI */
/* ============================================================ */
.legal-content .badge {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 25px;
    }
    .legal-content table {
        font-size: 0.8rem;
    }
    .legal-content table th,
    .legal-content table td {
        padding: 8px 10px;
    }
}

/* ============================================================ */
/* FORM - SUCCESS / ERROR */
/* ============================================================ */
.success-box {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-box {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-box i,
.error-box i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

/* ============================================================ */
/* RESPONSIVE - TABLET & MOBILE */
/* ============================================================ */
@media (max-width: 992px) {
    .about-preview-grid {
        grid-template-columns: 1fr;
    }

    .about-preview-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    .schools-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .newsletter-form .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input[type="email"] {
        min-width: unset;
    }

    .corsi-roma-compact,
    .corsi-viterbo-compact {
        grid-template-columns: 1fr 1fr;
    }

    .sedi-grid,
    .sedi-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .corsi-roma-compact,
    .corsi-viterbo-compact {
        grid-template-columns: 1fr;
    }

    .sedi-grid,
    .sedi-list {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .school-card-image {
        height: 180px;
    }

    .hero {
        min-height: 70vh;
    }
}

/* ============================================================ */
/* STAMPA */
/* ============================================================ */
@media print {
    .site-header,
    .hero-buttons,
    .btn,
    .newsletter,
    .social-links {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
        background: #fff;
        color: #000;
    }

    .hero-overlay {
        display: none;
    }

    .section-padding {
        padding: 20px 0;
    }

    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .footer-grid {
        border-bottom: none;
    }
}

/* ============================================================ */
/* PREFERENZA PER RIDUZIONE MOVIMENTO */
/* ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================ */
/* HIGH CONTRAST MODE */
/* ============================================================ */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #4A1942;
        --color-secondary: #C76B8A;
        --color-gray: #333;
    }

    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }

    .btn-outline {
        border: 2px solid #000;
    }
}

/* ============================================================ */
/* INSEGNANTI - LINK CLICCABILI */
/* ============================================================ */

.insegnante-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.insegnante-link:hover .insegnante-card {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.insegnante-link .insegnante-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* ============================================================ */
/* INSEGNANTI - PAGINE PERSONALI */
/* ============================================================ */

.insegnante-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    margin-top: 30px;
    align-items: start;
}

.insegnante-profile .foto {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.insegnante-profile .foto img {
    width: 100%;
    height: auto;
    display: block;
}

.insegnante-profile .info h1 {
    margin-bottom: 5px;
}

.insegnante-profile .info .ruolo {
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.insegnante-profile .info .sede {
    color: var(--color-gray);
    margin-bottom: 20px;
    display: block;
}

.insegnante-profile .info .biografia {
    color: var(--color-dark);
    line-height: 1.8;
}

.insegnante-profile .info .biografia h3 {
    font-size: 1.1rem;
    margin-top: 25px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-light);
    padding-bottom: 5px;
}

.insegnante-profile .info .biografia h3:first-of-type {
    margin-top: 0;
}

.insegnante-profile .info .biografia ul {
    list-style: disc;
    padding-left: 20px;
    margin: 5px 0 15px;
}

.insegnante-profile .info .biografia ul li {
    margin: 3px 0;
}

.insegnante-profile .info .biografia .badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 15px;
}

.insegnante-profile .info .biografia .badge-list span {
    background: var(--color-light);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

.insegnante-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.insegnante-link:hover .insegnante-card {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.insegnante-link .insegnante-card {
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--color-gray);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--color-primary);
}

/* Responsive per pagine insegnanti */
@media (max-width: 768px) {
    .insegnante-profile {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .insegnante-profile .foto {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ============================================================ */
/* BADGE LIST - PAGINE INSEGNANTI */
/* ============================================================ */

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 15px;
}

.badge-list .badge-item {
    background: var(--color-light);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

.badge-list .badge-item i {
    margin-right: 4px;
    color: var(--color-secondary);
}