/* Container principale desktop */
.aree-attivita-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 600px;
    margin: 0 auto;
}

/* Stile comune per tutti i cerchi */
.circle-item {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #0088CC; /* Colore richiesto */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.circle-item:hover {
    background-color: #006699; /* Blu leggermente più scuro all'hover */
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

.circle-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.circle-content i {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.circle-content span {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    word-wrap: break-word;
}

/* Cerchio Centrale con Logo */
.circle-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background-color: #ffffff;
    border: 8px solid #f8f9fa;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    z-index: 1;
}

.circle-center:hover {
    transform: translate(-50%, -50%) scale(1.04);
    background-color: #ffffff;
}

.circle-center img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* Posizionamento dei 5 cerchi attorno al centro (Desktop) */

/* 1. TURISMO SCOLASTICO (In alto al centro) - FIX HOVER INCLUSO */
.circle-pos-1 { 
    top: 0;   
    left: 50%; 
    transform: translateX(-50%); 
}
.circle-pos-1:hover { 
    transform: translateX(-50%) scale(1.08); /* Mantiene la centratura orizzontale */
}

/* 2. GESTIONE BENI CULTURALI E AMBIENTALI (In alto a destra) */
.circle-pos-2 { 
    top: 25%;  
    right: 2%; 
}
.circle-pos-2:hover { 
    transform: scale(1.08); 
}

/* 3. PROGETTAZIONE E VALORIZZAZIONE TERRITORIALE (In basso a destra) */
.circle-pos-3 { 
    bottom: 5%; 
    right: 12%; 
}
.circle-pos-3:hover { 
    transform: scale(1.08); 
}

/* 4. CAMPAGNE DI COMUNICAZIONE AMBIENTALE (In basso a sinistra) */
.circle-pos-4 { 
    bottom: 5%; 
    left: 12%; 
}
.circle-pos-4:hover { 
    transform: scale(1.08); 
}

/* 5. EDITORIA (In alto a sinistra) */
.circle-pos-5 { 
    top: 25%;  
    left: 2%; 
}
.circle-pos-5:hover { 
    transform: scale(1.08); 
}

/* Adattamento Responsive (Mobile / Tablet) */
@media (max-width: 767px) {
    .aree-attivita-container {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 10px 0;
    }

    .circle-item {
        position: static;
        transform: none !important;
        width: 135px;
        height: 135px;
    }

    .circle-pos-1:hover,
    .circle-pos-2:hover,
    .circle-pos-3:hover,
    .circle-pos-4:hover,
    .circle-pos-5:hover {
        transform: scale(1.05) !important;
    }

    .circle-center {
        order: -1; /* Mantiene il logo in primo piano/cima su mobile */
        width: 100%;
        max-width: 280px;
        height: 110px;
        border-radius: 20px;
    }

    /* Stile per lo sfondo SVG con le linee di collegamento */
.lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Rimane sotto i cerchi */
    pointer-events: none; /* Non interferisce con il click sui cerchi */
}

/* Opzionale: Effetto al passaggio del mouse sulle linee */
.lines-bg line {
    opacity: 0.6;
    transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

.aree-attivita-container:hover .lines-bg line {
    opacity: 0.8;
}

/* Nascondi le linee su schermi piccoli (Mobile) dove i cerchi diventano una griglia/lista */
@media (max-width: 767px) {
    .lines-bg {
        display: none;
    }
}

/* Card CTA stile Pulsantone */
.cta-card-button {
    background-color: #ffffff;
    border-color: #e9ecef !important;
    transition: all 0.3s ease-in-out;
}

.cta-card-button:hover {
    background-color: #f8f9fa;
    border-color: #0088CC !important; /* Colore brand al passaggio del mouse */
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.15) !important;
    transform: translateY(-2px);
}

.cta-card-button:hover .btn-primary {
    background-color: #006699 !important;
    border-color: #006699 !important;
}

/* Freccia che si sposta leggermente in hover */
.cta-card-button:hover .fa-arrow-right {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* ==========================================================================
   Quick Sub-Navigation Component
   ========================================================================== */

.quick-nav-wrapper {
    position: relative;
    z-index: 10;
}

/* Base Link */
.quick-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    color: #444444;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    height: 100%;
}

/* Icon Styling */
.quick-nav-link .quick-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--bs-primary, #0088cc);
    transition: color 0.25s ease-in-out;
    flex-shrink: 0;
}

.quick-nav-link .quick-nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover State */
.quick-nav-link:hover {
    color: var(--bs-primary, #0088cc);
    background-color: #ffffff;
    border-color: var(--bs-primary, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quick-nav-link:hover .quick-nav-icon {
    color: var(--bs-primary, #0088cc);
}

/* Active State (Sezione Attiva) */
.quick-nav-link.active {
    background-color: var(--bs-primary, #0088cc);
    border-color: var(--bs-primary, #0088cc);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.quick-nav-link.active .quick-nav-icon {
    color: #ffffff !important;
}

/* Mobile Adjustments */
@media (max-width: 575.98px) {
    .quick-nav-link {
        padding: 0.55rem 0.4rem;
        font-size: 0.78rem;
    }
    
    .quick-nav-link .quick-nav-icon {
        margin-right: 5px;
        font-size: 0.8rem;
    }
}




}