/**
 * Custom CSS per Programma GOL - Regione Calabria
 * Basato su Bootstrap Italia 2.17.1
 *
 * Questo file contiene solo personalizzazioni specifiche.
 * Gli stili di base sono forniti da Bootstrap Italia.
 */

/* === Reset spazi === */
html {
    margin: 0;
    padding: 0;
}

/* === Background personalizzato === */
body {
    background:
        linear-gradient(135deg, rgba(0, 33, 65, 0.05) 0%, rgba(0, 102, 204, 0.03) 100%),
        url('../images/sfondo.jpg'),
        #f5f6f7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

/* === Layout con larghezza ristretta (80% come lavorogiovani) === */
main > .container,
.it-footer .container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* === Top Bar === */
.top-bar {
    background: #002d5c;
    padding: 8px 0;
    border-bottom: 2px solid #0066CC;
}

/* === Header con Loghi === */
.main-header {
    background: #0059b3;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.main-header .container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.header-logo-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.header-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-header.scrolled .header-logo {
    width: 45px;
    height: 45px;
}

.header-title {
    color: white;
    transition: all 0.3s ease;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.main-header.scrolled .header-title h1 {
    font-size: 1.4rem;
}

.header-title p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.main-header.scrolled .header-title p {
    font-size: 0.8rem;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logos img {
    height: 60px;
    background: white;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-header.scrolled .header-logos img {
    height: 40px;
}

/* === Responsive header === */
@media (max-width: 768px) {
    .header-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    .header-logos img {
        height: 45px;
    }
    .main-header.scrolled .header-logos img {
        height: 35px;
    }
}

/* === Main content senza sfondo === */
main {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

main > .container {
    background: transparent;
    padding: 2rem 1.5rem;
}

/* === Hero section compatta === */
.hero-compact {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 89, 179, 0.12) 100%);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 10px;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-title {
    color: #002141;
    text-shadow: none;
    font-weight: 700;
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin: 0;
}

/* Responsive hero compatta */
@media (max-width: 768px) {
    .hero-compact {
        padding: 0.75rem 1rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }
}

/* === Griglia servizi custom - affiancamento forzato === */
.services-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.service-col {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Da 768px in su: 2 colonne affiancate */
@media (min-width: 768px) {
    .services-grid-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        justify-items: center;
    }
}

/* Da 992px in su: 3 colonne affiancate */
@media (min-width: 992px) {
    .services-grid-2col {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* === Card personalizzate === */
.card-teaser {
    border: 1px solid rgba(0, 102, 204, 0.18);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.92) 100%);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 33, 65, 0.12), 0 2px 6px rgba(0, 33, 65, 0.08);
}

.card-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 33, 65, 0.2) 0%, rgba(0, 102, 204, 0.3) 50%, rgba(255, 215, 0, 0.4) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-teaser:hover::before {
    transform: scaleX(1);
}

/* Stato normale (non selezionato) - opacità aumentata */
.card-teaser {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.92) 100%);
    border-color: rgba(0, 102, 204, 0.18);
}

/* Stato hover/focus (selezionato) - sfondo opaco 100% */
.card-teaser:hover,
.card-teaser:focus-within {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-color: rgba(0, 102, 204, 0.3);
    border-width: 1px;
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.12),
                0 6px 18px rgba(0, 33, 65, 0.08),
                0 0 0 3px rgba(0, 102, 204, 0.06) !important;
}

/* Effetto glow sul box selezionato */
.card-teaser:hover,
.card-teaser:focus-within {
    box-shadow:
        0 0 0 3px rgba(0, 102, 204, 0.06),
        0 12px 35px rgba(0, 102, 204, 0.12),
        0 6px 18px rgba(0, 33, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.card-teaser .card-body {
    padding: 1rem 1.5rem;
}

/* === Varianti colore card - Palette accessibile WCAG AA con alto contrasto === */

/* Blu istituzionale - Tirocini Extracurriculari */
.card-teaser.card-blue {
    border-left: 5px solid #0052A3;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(207, 232, 252, 0.7) 100%);
    border-color: rgba(0, 82, 163, 0.25);
}
.card-teaser.card-blue::before {
    background: linear-gradient(90deg, #0052A3 0%, #003D7A 100%);
}
.card-teaser.card-blue .service-icon {
    background: linear-gradient(135deg, rgba(0, 82, 163, 0.2) 0%, rgba(0, 61, 122, 0.28) 100%);
    color: #003D7A;
    border-color: rgba(0, 82, 163, 0.4);
}
.card-teaser.card-blue .category {
    background: linear-gradient(135deg, rgba(0, 82, 163, 0.18) 0%, rgba(0, 61, 122, 0.25) 100%);
    color: #003D7A;
    border-color: rgba(0, 82, 163, 0.4);
}

/* Verde - Recall Profili */
.card-teaser.card-green {
    border-left: 5px solid #006B45;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(200, 235, 210, 0.7) 100%);
    border-color: rgba(0, 107, 69, 0.25);
}
.card-teaser.card-green::before {
    background: linear-gradient(90deg, #006B45 0%, #004D32 100%);
}
.card-teaser.card-green .service-icon {
    background: linear-gradient(135deg, rgba(0, 107, 69, 0.2) 0%, rgba(0, 77, 50, 0.28) 100%);
    color: #004D32;
    border-color: rgba(0, 107, 69, 0.4);
}
.card-teaser.card-green .category {
    background: linear-gradient(135deg, rgba(0, 107, 69, 0.18) 0%, rgba(0, 77, 50, 0.25) 100%);
    color: #004D32;
    border-color: rgba(0, 107, 69, 0.4);
}

/* Arancione scuro - Recupero Attestati */
.card-teaser.card-orange {
    border-left: 5px solid #B54700;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 228, 196, 0.7) 100%);
    border-color: rgba(181, 71, 0, 0.25);
}
.card-teaser.card-orange::before {
    background: linear-gradient(90deg, #B54700 0%, #8A3600 100%);
}
.card-teaser.card-orange .service-icon {
    background: linear-gradient(135deg, rgba(181, 71, 0, 0.2) 0%, rgba(138, 54, 0, 0.28) 100%);
    color: #8A3600;
    border-color: rgba(181, 71, 0, 0.4);
}
.card-teaser.card-orange .category {
    background: linear-gradient(135deg, rgba(181, 71, 0, 0.18) 0%, rgba(138, 54, 0, 0.25) 100%);
    color: #8A3600;
    border-color: rgba(181, 71, 0, 0.4);
}

/* Viola - Gestione Tirocini */
.card-teaser.card-purple {
    border-left: 5px solid #4A2275;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(230, 210, 245, 0.7) 100%);
    border-color: rgba(74, 34, 117, 0.25);
}
.card-teaser.card-purple::before {
    background: linear-gradient(90deg, #4A2275 0%, #361A57 100%);
}
.card-teaser.card-purple .service-icon {
    background: linear-gradient(135deg, rgba(74, 34, 117, 0.2) 0%, rgba(54, 26, 87, 0.28) 100%);
    color: #361A57;
    border-color: rgba(74, 34, 117, 0.4);
}
.card-teaser.card-purple .category {
    background: linear-gradient(135deg, rgba(74, 34, 117, 0.18) 0%, rgba(54, 26, 87, 0.25) 100%);
    color: #361A57;
    border-color: rgba(74, 34, 117, 0.4);
}

/* Teal - Orienta Calabria */
.card-teaser.card-teal {
    border-left: 5px solid #00675B;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(178, 223, 219, 0.7) 100%);
    border-color: rgba(0, 103, 91, 0.25);
}
.card-teaser.card-teal::before {
    background: linear-gradient(90deg, #00675B 0%, #004D44 100%);
}
.card-teaser.card-teal .service-icon {
    background: linear-gradient(135deg, rgba(0, 103, 91, 0.2) 0%, rgba(0, 77, 68, 0.28) 100%);
    color: #004D44;
    border-color: rgba(0, 103, 91, 0.4);
}
.card-teaser.card-teal .category {
    background: linear-gradient(135deg, rgba(0, 103, 91, 0.18) 0%, rgba(0, 77, 68, 0.25) 100%);
    color: #004D44;
    border-color: rgba(0, 103, 91, 0.4);
}

/* Hover/Focus per varianti colorate - sfondo opaco 100% con colori più intensi */
.card-teaser.card-blue:hover,
.card-teaser.card-blue:focus-within {
    border-left-color: #003D7A;
    border-left-width: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #cfe8fc 100%);
    box-shadow: 0 12px 35px rgba(0, 82, 163, 0.18), 0 6px 18px rgba(0, 61, 122, 0.12) !important;
}

.card-teaser.card-green:hover,
.card-teaser.card-green:focus-within {
    border-left-color: #004D32;
    border-left-width: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #c8ebd2 100%);
    box-shadow: 0 12px 35px rgba(0, 107, 69, 0.18), 0 6px 18px rgba(0, 77, 50, 0.12) !important;
}

.card-teaser.card-orange:hover,
.card-teaser.card-orange:focus-within {
    border-left-color: #8A3600;
    border-left-width: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #ffe4c4 100%);
    box-shadow: 0 12px 35px rgba(181, 71, 0, 0.18), 0 6px 18px rgba(138, 54, 0, 0.12) !important;
}

.card-teaser.card-purple:hover,
.card-teaser.card-purple:focus-within {
    border-left-color: #361A57;
    border-left-width: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #e6d2f5 100%);
    box-shadow: 0 12px 35px rgba(74, 34, 117, 0.18), 0 6px 18px rgba(54, 26, 87, 0.12) !important;
}

.card-teaser.card-teal:hover,
.card-teaser.card-teal:focus-within {
    border-left-color: #004D44;
    border-left-width: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #b2dfdb 100%);
    box-shadow: 0 12px 35px rgba(0, 103, 91, 0.18), 0 6px 18px rgba(0, 77, 68, 0.12) !important;
}

/* Focus visibile per accessibilità - colori distintivi più scuri */
.card-teaser.card-blue:focus-within { outline-color: #0052A3; }
.card-teaser.card-green:focus-within { outline-color: #006B45; }
.card-teaser.card-orange:focus-within { outline-color: #B54700; }
.card-teaser.card-purple:focus-within { outline-color: #4A2275; }
.card-teaser.card-teal:focus-within { outline-color: #00675B; }

/* Badge categoria sopra */
.card-teaser .category-top {
    margin-bottom: 1rem;
}

/* Header con icona e titolo affiancati */
.card-teaser .card-header-custom {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-teaser .category {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12) 0%, rgba(0, 89, 179, 0.15) 100%);
    color: #0066cc;
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(0, 102, 204, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 102, 204, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Badge quando il box è selezionato */
.card-teaser:hover .category {
    background: linear-gradient(135deg, rgba(0, 33, 65, 0.18) 0%, rgba(0, 102, 204, 0.22) 100%);
    color: #002141;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
    border-color: rgba(0, 102, 204, 0.35);
}

.card-teaser .card-title {
    color: #495057;
    font-weight: 700;
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    flex: 1;
}

/* Titolo più scuro quando selezionato */
.card-teaser:hover .card-title {
    color: #002141;
}

.card-teaser .card-subtitle {
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.card-teaser:hover .card-subtitle {
    color: #435a70;
}

.card-teaser .card-text {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.card-teaser:hover .card-text {
    color: #495057;
}

/* === Icone per le card === */
.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.12) 0%, rgba(73, 80, 87, 0.15) 100%);
    color: #495057;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.12);
    transition: all 0.4s ease;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Icona quando il box è selezionato (hover) */
.card-teaser:hover .service-icon {
    transform: scale(1.15) rotate(8deg);
    background: linear-gradient(135deg, rgba(0, 33, 65, 0.18) 0%, rgba(0, 102, 204, 0.22) 100%);
    color: #002141;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.18),
                0 0 0 2px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.35);
}

/* === Logo per card Orienta Calabria === */
.service-logo {
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.service-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.card-teaser:hover .service-logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 102, 204, 0.4));
}

/* === Personalizzazione pulsanti === */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #002141 0%, #003366 100%);
    border: none;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 33, 65, 0.25);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #003d7a 0%, #0066cc 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 33, 65, 0.35);
}

/* Pulsante disabled con contrasto WCAG AA (4.5:1) */
.btn-primary.disabled,
.btn-primary:disabled {
    background: #4a5568;
    color: #ffffff !important;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline-primary {
    color: #6c757d;
    border: 2px solid #6c757d;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #002141 0%, #003366 100%);
    border-color: #002141;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 33, 65, 0.3);
}

/* Pulsanti quando il box padre è in hover */
.card-teaser:hover .btn-outline-primary {
    color: #002141;
    border-color: #002141;
    animation: pulse-border 2s ease-in-out infinite;
}

.card-teaser:hover .btn-primary {
    animation: pulse-shadow 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #002141;
    }
    50% {
        border-color: #0066cc;
    }
}

@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 33, 65, 0.25);
    }
    50% {
        box-shadow: 0 6px 18px rgba(0, 102, 204, 0.4);
    }
}

.btn-outline-secondary {
    color: #435a70;
    border: 2px solid #435a70;
}

.btn-outline-secondary:hover {
    background-color: #435a70;
    border-color: #435a70;
    color: #ffffff;
}

/* === Personalizzazione footer === */
.it-footer {
    background: #003366;
    color: #ffffff;
    margin-top: 4rem;
    position: relative;
}

.it-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700 0%, #0066cc 50%, #ffd700 100%);
}

/* Barra principale */
.it-footer .it-footer-main {
    background: #003366;
}

/* Barra inferiore più scura */
.it-footer .it-footer-bottom {
    background: #001a33;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Menu footer nella barra inferiore */
.footer-nav {
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu .footer-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.25rem 0;
}

/* Copyright */
.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.3px;
}

.it-footer a {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    position: relative;
}

.it-footer a:hover {
    color: #ffd700;
    text-decoration: none;
}

.it-footer h2,
.it-footer h3,
.it-footer h4 {
    color: #ffffff;
    font-weight: 600;
}


/* === Footer compatto === */
.footer-compact .it-footer-main {
    padding: 0;
}

.footer-compact .it-footer-main .row {
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.footer-row-custom {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.footer-compact .it-footer-main .col,
.footer-compact .it-footer-main .col-auto {
    flex-shrink: 0;
}

.footer-compact .list-inline {
    white-space: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
}

.footer-compact .list-inline-item {
    display: inline-block !important;
}

.footer-compact .list-inline::-webkit-scrollbar {
    height: 3px;
}

.footer-compact .list-inline::-webkit-scrollbar-thumb {
    background-color: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.footer-link:hover {
    color: #ffd700;
    text-decoration: none;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Logo footer compatto */
.footer-compact .it-footer-main img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-compact .it-footer-main img:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

/* Responsive footer compatto */
@media (max-width: 768px) {
    .footer-compact .it-footer-main .row {
        gap: 0.5rem;
        flex-wrap: nowrap !important;
    }

    .footer-link {
        font-size: 0.75rem;
        padding: 0.15rem 0;
    }

    .footer-compact .it-footer-main img {
        max-height: 35px !important;
    }

    .footer-row-custom {
        padding-top: 1rem;
        padding-bottom: 0.75rem;
    }

    .footer-compact h4 {
        font-size: 0.8rem !important;
    }

    .footer-subtitle {
        font-size: 0.85rem !important;
    }

    .footer-compact .list-inline {
        gap: 0.5rem !important;
    }
}

/* === Alert personalizzato === */
.alert-info {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 33, 65, 0.08) 100%);
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    color: #002141;
}

.alert-info i {
    color: #0066cc;
}

/* === Pagina Orienta Calabria - Design Moderno === */
.orienta-page-content {
    background: #ffffff;
    padding: 4rem 5rem;
    border-radius: 12px;
    box-shadow:
        -10px 0 25px -5px rgba(0, 0, 0, 0.08),
        10px 0 25px -5px rgba(0, 0, 0, 0.08),
        0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.orienta-hero {
    padding: 1rem 0 1rem;
}

.orienta-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.orienta-main-logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 89, 179, 0.15));
}

.orienta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #002141;
    letter-spacing: -0.5px;
}

.orienta-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 400;
}

.orienta-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #0059b3 50%, transparent 100%);
    margin: 3rem 0;
    opacity: 0.3;
}

/* Download Section */
.orienta-download-section {
    padding: 2rem 0;
}

.orienta-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.orienta-intro-text .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #495057;
}

/* Version Badge */
.orienta-version-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #0059b3;
}

.version-icon {
    font-size: 2.5rem;
    color: #0059b3;
}

.version-info {
    display: flex;
    flex-direction: column;
}

.version-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-date {
    font-size: 1.5rem;
    color: #002141;
    font-weight: 700;
}

/* Update Note */
.orienta-update-note {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 12px;
    border-left: 4px solid #ffa000;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(255, 160, 0, 0.15);
}

.update-note-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #e65100;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-note-header i {
    font-size: 1.25rem;
}

.update-note-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #5d4037;
    margin: 0;
}

.update-note-text strong {
    color: #e65100;
    font-weight: 600;
}

/* Documentation Section */
.orienta-documentation-section {
    padding: 2rem 0;
}

.documentation-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #002141;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.documentation-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.documentation-card:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #0059b3;
    box-shadow: 0 8px 25px rgba(0, 89, 179, 0.2);
    transform: translateY(-3px);
}

.documentation-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.documentation-card:hover .documentation-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.4);
}

.documentation-info {
    flex: 1;
}

.documentation-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: #002141;
    margin-bottom: 0.5rem;
}

.documentation-desc {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.orienta-btn-manual {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    padding: 1rem 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.orienta-btn-manual:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.4);
    color: #ffffff;
}

/* Files List */
.orienta-files-list {
    margin-bottom: 3rem;
}

.files-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #002141;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.file-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.file-item-featured {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ffd700;
}

.file-item-featured:hover {
    background: linear-gradient(135deg, #ffecb3 0%, #ffe082 100%);
}

.file-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    color: #6c757d;
    flex-shrink: 0;
}

.file-item-featured .file-icon {
    color: #ffa000;
}

.file-info {
    flex: 1;
}

.file-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #0059b3;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.file-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002141;
    margin-bottom: 0.25rem;
}

.file-desc {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Download Buttons */
.orienta-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.orienta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.orienta-btn i {
    font-size: 1.25rem;
}

.orienta-btn-primary {
    background: linear-gradient(135deg, #0059b3 0%, #003d7a 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 89, 179, 0.3);
}

.orienta-btn-primary:hover {
    background: linear-gradient(135deg, #006dd1 0%, #0059b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 89, 179, 0.4);
    color: #ffffff;
}

.orienta-btn-large {
    padding: 1.5rem 2.5rem;
    font-size: 1.25rem;
}

.orienta-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.orienta-btn-secondary {
    background: #f8f9fa;
    color: #002141;
    border: 2px solid #dee2e6;
}

.orienta-btn-secondary:hover {
    background: #e9ecef;
    border-color: #0059b3;
    color: #0059b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 89, 179, 0.15);
}

.orienta-btn-back {
    background: transparent;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.orienta-btn-back:hover {
    background: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
}

/* Info Section */
.orienta-info-section {
    padding: 2rem 0;
}

.info-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #002141;
    margin-bottom: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    background: #ffffff;
    border-color: #0059b3;
    box-shadow: 0 8px 20px rgba(0, 89, 179, 0.1);
    transform: translateY(-5px);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0059b3 0%, #003d7a 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #002141;
    margin-bottom: 1rem;
}

.info-card-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
}

.info-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #6c757d;
    font-size: 1rem;
}

.info-card-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0059b3;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
    .orienta-page-content {
        padding: 3rem 2.5rem;
    }

    .orienta-main-logo {
        max-width: 300px;
    }

    .orienta-title {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .orienta-btn-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .orienta-page-content {
        padding: 2rem 1.5rem;
        box-shadow:
            -4px 0 10px -3px rgba(0, 0, 0, 0.1),
            4px 0 10px -3px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.05);
    }

    .orienta-hero {
        padding: 1rem 0 2rem;
    }

    .orienta-main-logo {
        max-width: 250px;
    }

    .orienta-title {
        font-size: 1.75rem;
    }

    .orienta-subtitle {
        font-size: 1.1rem;
    }

    .orienta-divider {
        margin: 2rem 0;
    }

    .orienta-intro-text .lead {
        font-size: 1rem;
    }

    .orienta-version-badge {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .version-icon {
        font-size: 2rem;
    }

    .version-date {
        font-size: 1.25rem;
    }

    .orienta-update-note {
        padding: 1.25rem 1.5rem;
    }

    .update-note-header {
        font-size: 1rem;
    }

    .update-note-text {
        font-size: 0.95rem;
    }

    .documentation-title {
        font-size: 1.4rem;
    }

    .documentation-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .documentation-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .documentation-name {
        font-size: 1.2rem;
    }

    .documentation-desc {
        font-size: 0.95rem;
    }

    .orienta-btn-manual {
        width: 100%;
        justify-content: center;
    }

    .files-title {
        font-size: 1.25rem;
    }

    .file-item {
        padding: 1rem;
        gap: 1rem;
    }

    .file-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .file-name {
        font-size: 1rem;
    }

    .orienta-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .orienta-btn-large {
        padding: 1.25rem 1.75rem;
        font-size: 1.1rem;
    }

    .info-section-title {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .info-card-title {
        font-size: 1.1rem;
    }
}

/* === Callout personalizzato (per pagina Orienta) === */
.callout.note {
    border-left: 4px solid #002141;
    background-color: rgba(0, 33, 65, 0.05);
}

.callout.note .callout-title {
    color: #002141;
    font-weight: 600;
}

/* === List group personalizzato === */
.list-group-item {
    border-color: rgba(0, 33, 65, 0.1);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(0, 33, 65, 0.02);
    transform: translateX(5px);
}

.list-group-item i.fa-star {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.badge.bg-primary {
    background: linear-gradient(135deg, #002141 0%, #0066cc 100%) !important;
    padding: 0.35em 0.75em;
    font-weight: 600;
}

/* === Cookie Banner personalizzato === */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #002141 0%, #003366 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    /* Rimosso opacity per garantire contrasto WCAG AA (4.5:1) */
}

.cookie-text a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #ffed4e;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #27ae60;
    color: white;
}

.cookie-btn-accept:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* === Animazioni === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-teaser {
    animation: fadeInUp 0.6s ease-out;
}

.card-teaser:nth-child(2) {
    animation-delay: 0.1s;
}

.card-teaser:nth-child(3) {
    animation-delay: 0.2s;
}

.card-teaser:nth-child(4) {
    animation-delay: 0.3s;
}

/* === Responsive === */
@media (max-width: 1200px) {
    main > .container {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 992px) {
    main > .container {
        padding: 1.5rem 1rem;
    }

    .card-teaser .card-title {
        font-size: 1.15rem;
    }

    .card-teaser .card-text {
        font-size: 0.85rem;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .service-logo {
        width: 100px;
        height: 50px;
    }

    .card-teaser .card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 1rem;
    }

    main > .container {
        padding: 1.25rem 1rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-text {
        min-width: auto;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .card-teaser .card-body {
        padding: 1.15rem;
    }

    .card-teaser .card-title {
        font-size: 1.2rem;
    }

    .service-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .service-logo {
        width: 90px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .service-logo {
        width: 80px;
        height: 40px;
    }

    .card-teaser .card-title {
        font-size: 1.1rem;
    }

    .card-teaser .card-body {
        padding: 1rem;
    }

    .card-teaser .card-title {
        font-size: 1.05rem;
    }

    .card-teaser .card-text {
        font-size: 0.825rem;
    }

    .btn {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
}

/* === Smooth scrolling === */
html {
    scroll-behavior: smooth;
}

/* === Skip link per accessibilità (WCAG 2.4.1) === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #002141;
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* === Focus styles per accessibilità === */
.btn:focus,
a:focus {
    outline: 2px solid #002141;
    outline-offset: 2px;
}

.btn:focus-visible,
a:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

/* === Micro-interazioni === */
.it-right-zone img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.it-right-zone img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.list-group-item .fa-file,
.list-group-item .fa-star {
    transition: transform 0.3s ease;
}

.list-group-item:hover .fa-file {
    transform: translateX(5px);
}

/* === Effetti di profondità === */
.card-teaser {
    will-change: transform;
}

.card-teaser .card-body {
    position: relative;
    z-index: 1;
}

/* === Miglioramento link === */
.it-footer a {
    position: relative;
    display: inline-block;
}

.it-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.it-footer a:hover::after {
    width: 100%;
}

/* === Print styles === */
@media print {
    body {
        background: white;
    }

    .it-header-wrapper,
    .it-footer,
    .btn,
    #cookieBanner {
        display: none;
    }

    main > .container {
        background: white;
        box-shadow: none;
        padding: 0;
    }

    .card-teaser {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
